summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36387: Refactor getenvironment() in _winapi.c. (GH-12482)Serhiy Storchaka2019-03-281-46/+34
| | | Make it doing less memory allocations and using the modern C API.
* bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's ↵Zackery Spytz2019-03-282-1/+1
| | | | | | tok_nextc() (12601) Remove the PyMem_FREE() call added in cb90c89. The buffer will be freed when PyTokenizer_Free() is called on the tokenizer state.
* bpo-36452: dictiter: track maximum iteration count (GH-12596)Thomas Perl2019-03-283-0/+16
|
* Fix NEWS entries with incorrect bpo numbers (GH-12599)Ned Deily2019-03-282-2/+2
|
* Revert "Minor doc improvement (GH-10341)" (GH-12597)Raymond Hettinger2019-03-282-3/+3
| | | This reverts commit dfd775a0b1aee51d842b20cdebd97cc52c0b32e7.
* bpo-36245: Fix more empty environment variable checks (GH-12592)Steve Dower2019-03-271-2/+2
|
* bpo-31292: Fixed distutils check --restructuredtext for include directives ↵Philipp A2019-03-274-2/+20
| | | | | | (GH-10605)
* Add missing docstrings for TarInfo objects (#12555)Raymond Hettinger2019-03-272-9/+48
|
* bpo-36443: Disable C locale coercion and UTF-8 Mode by default (GH-12589)Victor Stinner2019-03-277-46/+58
| | | | | | | | | | | | | | | | | | | | | | | | bpo-36443, bpo-36202: Since Python 3.7.0, calling Py_DecodeLocale() before Py_Initialize() produces mojibake if the LC_CTYPE locale is coerced and/or if the UTF-8 Mode is enabled by the user configuration. This change fix the issue by disabling LC_CTYPE coercion and UTF-8 Mode by default. They must now be enabled explicitly (opt-in) using the new _Py_PreInitialize() API with _PyPreConfig. When embedding Python, set coerce_c_locale and utf8_mode attributes of _PyPreConfig to -1 to enable automatically these parameters depending on the LC_CTYPE locale, environment variables and command line arguments Alternative: Setting Py_UTF8Mode to 1 always explicitly enables the UTF-8 Mode. Changes: * _PyPreConfig_INIT now sets coerce_c_locale and utf8_mode to 0 by default. * _Py_InitializeFromArgs() and _Py_InitializeFromWideArgs() can now be called with config=NULL.
* bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566)Steve Dower2019-03-273-0/+19
|
* bpo-31904: Fix test_utf8_mode on VxWorks (GH-12428)hliu02019-03-272-2/+3
| | | Python always use UTF-8 on VxWorks.
* bpo-36447, bpo-36447: Fix refleak in _PySys_InitMain() (GH-12586)Pablo Galindo2019-03-271-0/+1
| | | Fix refleak in sysmodule.c when calling SET_SYS_FROM_STRING_BORROW.
* bpo-36444: Rework _Py_InitializeFromConfig() API (GH-12576)Victor Stinner2019-03-2711-190/+207
|
* bpo-35810: Incref heap-allocated types in PyObject_Init (GH-11661)Eddie Elizondo2019-03-278-10/+89
| | | | | * Incref heap-allocated types in PyObject_Init * Add documentation and porting notes to What's New
* Doc: Fixed missing punctuation in datamodel.rst (GH-12581)Jules Lasne (jlasne)2019-03-271-14/+14
|
* bpo-32380: add "versionadded: 3.8" to singledispatchmethod (GH-12580)Inada Naoki2019-03-271-0/+3
|
* bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553)Serhiy Storchaka2019-03-276-29/+14
|
* bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom). ↵Vladimir Surjaninov2019-03-273-1/+20
| | | | (GH-12514)
* bpo-33832: Add "magic method" glossary entry (GH-7630)Andre Delfino2019-03-272-0/+8
|
* Minor doc improvement (GH-10341)Andre Delfino2019-03-272-3/+3
| | | Change "star-operator" to "* operator".
* bpo-36444: Add _PyCoreConfig._init_main (GH-12572)Victor Stinner2019-03-279-41/+42
| | | | | | | | * Add _PyCoreConfig._init_main: if equals to zero, _Py_InitializeFromConfig() doesn't call _Py_InitializeMainInterpreter(). * Add interp_p parameter to _Py_InitializeFromConfig(). * pymain_init() now calls _Py_InitializeFromConfig(). * Make _Py_InitializeCore() private.
* bpo-36444: Remove _PyMainInterpreterConfig (GH-12571)Victor Stinner2019-03-2710-417/+103
|
* bpo-36429: Fix starting IDLE with pyshell (#12548)Terry Jan Reedy2019-03-263-5/+14
| | | | | Add idlelib.pyshell alias at top; remove pyshell alias at bottom. Remove obsolete __name__=='__main__' command.
* bpo-36301: Test Python init with isolated (GH-12569)Victor Stinner2019-03-262-0/+90
| | | Add test_preinit_isolated1() and test_preinit_isolated2() test_embed.
* bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821)Tal Einat2019-03-261-8/+4
|
* bpo-36364: fix SharedMemoryManager examples (GH-12439)Pierre Glaser2019-03-261-3/+4
| | | Examples of the `multiprocessing.shared_memory` module try to import `SharedMemoryManager` from `multiprocessing.shared_memory` whereas this class is defined in `multiprocessing.managers`.
* bpo-36301: Cleanup preconfig.c and coreconfig.c (GH-12563)Victor Stinner2019-03-269-659/+622
| | | | | | | | | | | | | | | * _PyCoreConfig_Write() now updates _PyRuntime.preconfig * Remove _PyPreCmdline_Copy() * _PyPreCmdline_Read() now accepts _PyPreConfig and _PyCoreConfig optional configurations. * Rename _PyPreConfig_ReadFromArgv() to _PyPreConfig_Read(). Simplify the code. * Calling _PyCoreConfig_Read() no longer adds the warning options twice: don't add a warning option if it's already in the list. * Rename _PyCoreConfig_ReadFromArgv() to _PyCoreConfig_Read(). * Rename config_from_cmdline() to _PyCoreConfig_ReadFromArgv(). * Add more assertions on _PyCoreConfig in _PyCoreConfig_Read(). * Move some functions. * Make some config functions private.
* bpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560)Victor Stinner2019-03-262-0/+5
| | | Handle memory allocation failure.
* bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)Inada Naoki2019-03-263-9/+23
| | | https://bugs.python.org/issue36433
* Post v3.8.0a3Łukasz Langa2019-03-261-1/+1
|
* Merge tag 'v3.8.0a3'Łukasz Langa2019-03-2691-184/+875
|\ | | | | | | Python 3.8.0a3
| * v3.8.0a3v3.8.0a3Łukasz Langa2019-03-2591-184/+875
| |
* | bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551)Zackery Spytz2019-03-262-0/+2
| |
* | Document that logging registers shutdown as an atexit handler (GH-12378)Andre Delfino2019-03-261-0/+4
| |
* | Fix "the the" in the idle docs. (GH-12549)Benjamin Peterson2019-03-261-13/+11
| |
* | bpo-36301: Remove _PyCoreConfig.preconfig (GH-12546)Victor Stinner2019-03-2613-145/+179
| | | | | | | | | | | | * Replace _PyCoreConfig.preconfig with 3 new fields in _PyCoreConfig: isolated, use_environment, dev_mode. * Add _PyPreCmdline.dev_mode. * Add _Py_PreInitializeFromPreConfigInPlace().
* | bpo-36301: Add _Py_GetEnv() function (GH-12542)Victor Stinner2019-03-254-32/+34
| | | | | | | | | | * Make _PyPreConfig_GetEnv(), _PyCoreConfig_GetEnv() and _PyCoreConfig_GetEnvDup() private * _Py_get_env_flag() first parameter becomes "int use_environment"
* | bpo-34085: Improve wording on classmethod/staticmethod (#8228)Andre Delfino2019-03-251-12/+10
| | | | | | | | | | | | | | | | * bpo-34085: Improve wording on classmethod/staticmethod * Address comments from Éric * Address comments from Éric
* | bpo-36345: Add a new example in the documentation of wsgiref (#12511)Stéphane Wirtel2019-03-252-0/+34
| |
* | bpo-36301: Add _Py_GetConfigsAsDict() function (GH-12540)Victor Stinner2019-03-259-132/+177
| | | | | | | | | | | | | | * Add _Py_GetConfigsAsDict() function to get all configurations as a dict. * dump_config() of _testembed.c now dumps preconfig as a separated key: call _Py_GetConfigsAsDict(). * Make _PyMainInterpreterConfig_AsDict() private.
* | bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using ↵Pablo Galindo2019-03-255-197/+124
| | | | | | | | | | | | pgen (GH-12456) Now that the parser generator is written in Python (Parser/pgen) we can make use of it to regenerate the Lib/keyword file that contains the language keywords instead of parsing the autogenerated grammar files. This also allows checking in the CI that the autogenerated files are up to date.
* | bpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504)Stefan Krah2019-03-254-11/+24
| |
* | bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498)Raymond Hettinger2019-03-256-3/+32
| |
* | Add note to Queue.get() docs about block=True (GH-2223)Stephen Rosen2019-03-251-0/+5
|/
* bpo-36301: Add _Py_PreInitializeFromConfig() (GH-12536)Victor Stinner2019-03-256-24/+155
| | | | | | | * Initialize _PyPreConfig.dev_mode to -1. * _PyPreConfig_Read(): coreconfig has the priority over preconfig. * _PyCoreConfig_Read() now calls _PyPreCmdline_Read() internally. * config_from_cmdline() now pass _PyPreCmdline to config_read(). * Add _PyPreCmdline_Copy().
* bpo-36301: Cleanup preconfig code (GH-12535)Victor Stinner2019-03-257-187/+152
| | | | | | | | | | | | | | | Prepare code to move some _PyPreConfig parameters into _PyPreCmdline. Changes: * _PyCoreConfig_ReadFromArgv(): remove preconfig parameter, use _PyRuntime.preconfig. * Add _PyPreCmdline_GetPreConfig() (called by _PyPreConfig_Read()). * Rename _PyPreCmdline_Init() to _PyPreCmdline_SetArgv() * Factorize _Py_PreInitializeFromPreConfig() code: add pyinit_preinit(). * _PyPreConfig_Read() now sets coerce_c_locale to 2 if it must be coerced. * Remove _PyCoreConfig_ReadPreConfig(). * _PyCoreConfig_Write() now copies updated preconfig into _PyRuntime.
* bpo-35884: Add string-keys-only microbenchmark for dict access to ↵Stefan Behnel2019-03-251-12/+28
| | | | var_access_benchmark.py (GH-11905)
* bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). ↵Zackery Spytz2019-03-252-0/+2
| | | | | | | (GH-12530) Set type_attr to NULL after the assignment to stgdict->proto (like what is done with stgdict after the Py_SETREF() call) so that it is not decrefed twice on error.
* bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209)Rémi Lapeyre2019-03-253-11/+29
|
* Fix line ending (GH-12531)Raymond Hettinger2019-03-251-1/+1
|