Home
last modified time | relevance | path

Searched refs:dev_mode (Results 1 - 15 of 15) sorted by relevance

/third_party/python/Python/
H A Dpreconfig.c134 COPY_ATTR(dev_mode); in precmdline_get_preconfig()
148 COPY_ATTR(dev_mode); in precmdline_set_preconfig()
167 COPY_ATTR(dev_mode); in _PyPreCmdline_SetConfig()
246 /* dev_mode */ in _PyPreCmdline_Read()
247 if ((cmdline->dev_mode < 0) in _PyPreCmdline_Read()
251 cmdline->dev_mode = 1; in _PyPreCmdline_Read()
253 if (cmdline->dev_mode < 0) { in _PyPreCmdline_Read()
254 cmdline->dev_mode = 0; in _PyPreCmdline_Read()
266 assert(cmdline->dev_mode >= 0); in _PyPreCmdline_Read()
296 config->dev_mode in _PyPreConfig_InitCompatConfig()
[all...]
H A Dinitconfig.c104 * Set the dev_mode attribute of sys.flags to True\n\
639 assert(config->dev_mode >= 0); in config_check_consistency()
745 config->dev_mode = -1; in _PyConfig_InitCompatConfig()
833 config->dev_mode = 0; in PyConfig_InitIsolatedConfig()
942 COPY_ATTR(dev_mode); in _PyConfig_Copy()
1053 SET_ITEM_INT(dev_mode); in _PyConfig_AsDict()
1331 GET_UINT(dev_mode); in _PyConfig_FromDict()
2145 if (config->dev_mode) { in config_read()
2256 preconfig->dev_mode = config->dev_mode; in _PyConfig_Write()
[all...]
H A Dsysmodule.c2529 {"dev_mode", "-X dev"},
2578 SetFlagObj(PyBool_FromLong(config->dev_mode)); in set_flags_from_config()
/third_party/python/Lib/test/
H A D_test_embed_set_config.py59 'dev_mode',
184 self.set_config(dev_mode=0)
185 self.assertEqual(sys.flags.dev_mode, False)
186 self.set_config(dev_mode=1)
187 self.assertEqual(sys.flags.dev_mode, True)
H A Dtest_embed.py425 dev_mode=0, variable in InitConfigTests
430 'dev_mode',
439 'dev_mode': 0,
525 dev_mode=0, variable in InitConfigTests
957 config = dict(dev_mode=1,
965 config = dict(dev_mode=1,
977 'dev_mode': 1,
993 'dev_mode': 1,
1587 'default', # PyConfig.dev_mode=1
1599 'dev_mode'
[all...]
H A Dtest_io.py71 IOBASE_EMITS_UNRAISABLE = (hasattr(sys, "gettotalrefcount") or sys.flags.dev_mode)
/third_party/python/Include/cpython/
H A Dinitconfig.h120 int dev_mode; member
139 int dev_mode; member
/third_party/python/Include/internal/
H A Dpycore_initconfig.h104 int dev_mode; /* -X dev and PYTHONDEVMODE */ member
112 .dev_mode = -1}
/third_party/python/Lib/asyncio/
H A Dcoroutines.py13 return sys.flags.dev_mode or (not sys.flags.ignore_environment and
/third_party/python/Lib/
H A Dsubprocess.py334 dev_mode = sys.flags.dev_mode
340 if dev_mode:
346 if dev_mode:
H A D_pyio.py38 _IOBASE_EMITS_UNRAISABLE = (hasattr(sys, "gettotalrefcount") or sys.flags.dev_mode)
/third_party/python/Modules/_io/
H A Diobase.c284 if (_Py_GetConfig()->dev_mode) { in iobase_finalize()
H A Dtextio.c992 if (!_PyInterpreterState_GetConfig(interp)->dev_mode) { in io_check_errors()
/third_party/python/Programs/
H A D_testembed.c586 /* dev_mode=1 is tested in test_init_dev_mode() */ in test_init_from_config()
1141 config.dev_mode = 1; in test_init_dev_mode()
1630 config.dev_mode = 1; in test_init_warnoptions()
/third_party/python/Objects/
H A Dunicodeobject.c462 if (!_PyInterpreterState_GetConfig(interp)->dev_mode) { in unicode_check_encoding_errors()

Completed in 52 milliseconds