- 27 May, 2019 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Add a whole new documentation page: "Python Initialization Configuration" * PyWideStringList_Append() return type is now PyStatus, instead of int * PyInterpreterState_New() now calls PyConfig_Clear() if PyConfig_InitPythonConfig() fails. * Rename files: * Python/coreconfig.c => Python/initconfig.c * Include/cpython/coreconfig.h => Include/cpython/initconfig.h * Include/internal/: pycore_coreconfig.h => pycore_initconfig.h * Rename structures * _PyCoreConfig => PyConfig * _PyPreConfig => PyPreConfig * _PyInitError => PyStatus * _PyWstrList => PyWideStringList * Rename PyConfig fields: * use_module_search_paths => module_search_paths_set * module_search_path_env => pythonpath_env * Rename PyStatus field: _func => func * PyInterpreterState: rename core_config field to config * Rename macros and functions: * _PyCoreConfig_SetArgv() => PyConfig_SetBytesArgv() * _PyCoreConfig_SetWideArgv() => PyConfig_SetArgv() * _PyCoreConfig_DecodeLocale() => PyConfig_SetBytesString() * _PyInitError_Failed() => PyStatus_Exception() * _Py_INIT_ERROR_TYPE_xxx enums => _PyStatus_TYPE_xxx * _Py_UnixMain() => Py_BytesMain() * _Py_ExitInitError() => Py_ExitStatusException() * _Py_PreInitializeFromArgs() => Py_PreInitializeFromBytesArgs() * _Py_PreInitializeFromWideArgs() => Py_PreInitializeFromArgs() * _Py_PreInitialize() => Py_PreInitialize() * _Py_RunMain() => Py_RunMain() * _Py_InitializeFromConfig() => Py_InitializeFromConfig() * _Py_INIT_XXX() => _PyStatus_XXX() * _Py_INIT_FAILED() => _PyStatus_EXCEPTION() * Rename 'err' PyStatus variables to 'status' * Convert RUN_CODE() macro to config_run_code() static inline function * Remove functions: * _Py_InitializeFromArgs() * _Py_InitializeFromWideArgs() * _PyInterpreterState_GetCoreConfig()
-
- 14 May, 2019 1 kayıt (commit)
-
-
Victor Stinner yazdı
Replace global configuration variables with core_config read from the current interpreter. Cleanup dynload_hpux.c.
-
- 25 Şub, 2019 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 12 Kas, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
Rename Include/internal/ headers: * pycore_hash.h -> pycore_pyhash.h * pycore_lifecycle.h -> pycore_pylifecycle.h * pycore_mem.h -> pycore_pymem.h * pycore_state.h -> pycore_pystate.h Add missing headers to Makefile.pre.in and PCbuild: * pycore_condvar.h. * pycore_hamt.h * pycore_pyhash.h
-
- 31 Eki, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Rename Include/internal/ header files: * pyatomic.h -> pycore_atomic.h * ceval.h -> pycore_ceval.h * condvar.h -> pycore_condvar.h * context.h -> pycore_context.h * pygetopt.h -> pycore_getopt.h * gil.h -> pycore_gil.h * hamt.h -> pycore_hamt.h * hash.h -> pycore_hash.h * mem.h -> pycore_mem.h * pystate.h -> pycore_state.h * warnings.h -> pycore_warnings.h * PCbuild project, Makefile.pre.in, Modules/Setup: add the Include/internal/ directory to the search paths of header files. * Update includes. For example, replace #include "internal/mem.h" with #include "pycore_mem.h".
-
- 30 Eki, 2018 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 10 Eyl, 2018 1 kayıt (commit)
-
-
Peter Eisentraut yazdı
Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.
-
- 03 Agu, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
sys_setcheckinterval() now uses a local variable to parse arguments, before writing into interp->check_interval.
-
- 29 Nis, 2018 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
They where silenced before.
-
- 17 Mar, 2018 1 kayıt (commit)
-
-
Marcel Plch yazdı
Multi-phase initialized modules allow m_traverse to be called while the module is still being initialized, so module authors may need to account for that.
-
- 14 Ara, 2017 1 kayıt (commit)
-
-
Ivan Levkivskyi yazdı
Implement PEP 562: module __getattr__ and __dir__. The implementation simply updates module_getattro and module_dir.
-
- 19 Eyl, 2017 1 kayıt (commit)
-
-
Oren Milman yazdı
-
- 14 Eyl, 2017 2 kayıt (commit)
-
-
Eric Snow yazdı
A bunch of code currently uses PyInterpreterState.modules directly instead of PyImport_GetModuleDict(). This complicates efforts to make changes relative to sys.modules. This patch switches to using PyImport_GetModuleDict() uniformly. Also, a number of related uses of sys.modules are updated for uniformity for the same reason. Note that this code was already reviewed and merged as part of #1638. I reverted that and am now splitting it up into more focused parts.
-
Eric Snow yazdı
PR #1638, for bpo-28411, causes problems in some (very) edge cases. Until that gets sorted out, we're reverting the merge. PR #3506, a fix on top of #1638, is also getting reverted.
-
- 08 Eyl, 2017 1 kayıt (commit)
-
-
Eric Snow yazdı
* group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py).
-
- 04 Eyl, 2017 1 kayıt (commit)
-
-
Eric Snow yazdı
sys.modules is the one true source.
-
- 19 Mar, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 21 Kas, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
rather of "char *".
-
- 20 Kas, 2016 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
UTF-8 represenatation of Unicode objects.
-
Serhiy Storchaka yazdı
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
-
- 16 Kas, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
The latter function is more readable, faster and doesn't raise exceptions.
-
- 26 Eyl, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Patch by Xiang Zhang.
-
- 21 Agu, 2016 1 kayıt (commit)
-
-
Nick Coghlan yazdı
Multi-phase extension module import now correctly allows the ``m_methods`` field to be used to add module level functions to instances of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.
-
- 19 Agu, 2016 1 kayıt (commit)
-
-
Berker Peksag yazdı
PyModule_NewObject already sets md_dict to PyDict_New(): m->md_dict = PyDict_New();
-
- 06 Nis, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 24 Ara, 2015 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
macro Py_SETREF.
-
- 23 May, 2015 2 kayıt (commit)
-
-
Nick Coghlan yazdı
- missing DECREF in PyModule_FromDefAndSpec2 - missing DECREF in PyType_FromSpecAndBases2 - missing DECREF in _testmultiphase module Patch by Petr Viktorin
-
Nick Coghlan yazdı
Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles.
-
- 18 Mar, 2015 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 24 Nis, 2014 3 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
Benjamin Peterson yazdı
-
Ethan Furman yazdı
-
- 12 Şub, 2014 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
This silences a Coverity complain.
-
Serhiy Storchaka yazdı
This silences a Coverity complain.
-
- 10 Şub, 2014 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
cleaning other modules. The sys and builtins modules are cleaned last.
-
Serhiy Storchaka yazdı
cleaning other modules. The sys and builtins modules are cleaned last.
-
- 22 Kas, 2013 1 kayıt (commit)
-
-
Eric Snow yazdı
-
- 31 Tem, 2013 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
Issue #18214: Improve finalization of Python modules to avoid setting their globals to None, in most cases.
-
- 04 May, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
attributes to None. The long-term goal is for people to be able to rely on these attributes existing and checking for None to see if they have been set. Since import itself sets these attributes when a loader does not the only instances when the attributes are None are from someone overloading __import__() and not using a loader or someone creating a module from scratch. This patch also unifies module initialization. Before you could have different attributes with default values depending on how the module object was created. Now the only way to not get the same default set of attributes is to circumvent initialization by calling ModuleType.__new__() directly.
-
- 19 Tem, 2012 1 kayıt (commit)
-
-
Meador Inge yazdı
Patch by Julia Lawall.
-