summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-42360: Add advice to help avoid pickling issues. (GH-23305)Raymond Hettinger2020-11-201-0/+3
|
* Fix wrong availability for signal.SIGCHLD (#23285)Zhang Maiyun2020-11-201-1/+1
| | | I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows.
* bpo-35498: Added slice support to PathLib parents attribute. (GH-11165)Joshua Cannon2020-11-206-0/+42
| | | Added slice support to the `pathlib.Path.parents` sequence. For a `Path` `p`, slices of `p.parents` should return the same thing as slices of `tuple(p.parents)`.
* bpo-42212: Check if generated files are up-to-date in GitHub Actions (GH-23042)Filipe Laíns2020-11-201-0/+28
| | | | | See https: //github.com/python/core-workflow/issues/380 Signed-off-by: Filipe Laíns <lains@archlinux.org>
* bpo-42403: Use @staticmethod in importlib (GH-23395)Victor Stinner2020-11-204-2356/+2355
| | | | | | | | | | | | | Use @staticmethod on methods using @classmethod but don't use their cls parameter on the following classes: * BuiltinImporter * FrozenImporter * WindowsRegistryFinder * PathFinder Leave methods using @_requires_builtin or @_requires_frozen unchanged, since this decorator requires the wrapped method to have an extra parameter (cls or self).
* bpo-1635741: Convert _sre types to heap types and establish module state ↵Erlend Egeberg Aasland2020-11-204-483/+374
| | | | (PEP 384) (GH-23393)
* bpo-1635741: Enhance _datetime error handling (GH-23139)Mohamed Koubaa2020-11-201-117/+103
|
* bpo-42333: Port _ssl extension module to heap types (GH-23392)Christian Heimes2020-11-203-336/+363
| | | All types in _ssl module are now heap types.
* bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)Christian Heimes2020-11-2024-62/+72
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)Terry Jan Reedy2020-11-204-6/+13
| | | Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None.
* bpo-42345: Add whatsnew and versionchanged for typing.Literal in 3.9 (GH-23386)kj2020-11-192-0/+35
| | | | | | * Whatsnew entry in 3.9 same as the one in 3.10. * versionchanged for typing.Literal docs Needs backport to 3.9.
* bpo-42345: Fix hash implementation of typing.Literal (GH-23383)Yurii Karabas2020-11-193-4/+9
| | | | | | | Fix hash implementation of `typing.Literal`. Update docs regarding `typing.Litaral` caching. Base implementation was done in PR #23294.
* bpo-1635741: Port _posixshmem extension module to multiphase initialization ↵Christian Heimes2020-11-192-13/+10
| | | | | (GH-23404) Signed-off-by: Christian Heimes <christian@python.org>
* bpo-1635741: Fix _struct for build bot error (GH-23402)Dong-hee Na2020-11-191-1/+1
| | | Automerge-Triggered-By: GH:tiran
* bpo-1635741: Port gc module to multiphase initialization (GH-23377)Christian Heimes2020-11-192-45/+42
| | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-1635741: Port _struct to multiphase initialization (GH-23398)Christian Heimes2020-11-193-238/+271
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-42403: Simplify importlib external bootstrap (GH-23397)Victor Stinner2020-11-196-4546/+4503
| | | | | | | Simplify the importlib external bootstrap code: importlib._bootstrap_external now uses regular imports to import builtin modules. When it is imported, the builtin __import__() function is already fully working and so can be used to import builtin modules like sys.
* bpo-42403: Fix pyflakes warnings in importlib (GH-23396)Victor Stinner2020-11-193-4/+0
| | | Remove unused imports and unused local variables.
* bpo-1635741: Port spwd to multiphase initialization (GH-23390)Christian Heimes2020-11-192-27/+58
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-1635741: Port _queue to multiphase initialization (GH-23376)Christian Heimes2020-11-192-37/+37
| | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360)Christian Heimes2020-11-193-66/+72
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-1635741: Port _random to multiphase initialization (GH-23359)Christian Heimes2020-11-192-45/+50
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-42375: subprocess DragonFlyBSD build update. (GH-23320)David CARLIER2020-11-192-4/+5
| | | Same as FreeBSD, file descriptors in /dev/fd id from 0 to 63.
* bpo-42345: Add whatsnew for typing.Literal in 3.10 (GH-23385)kj2020-11-191-0/+26
|
* bpo-42381: Document walrus-related syntax changes in whatsnew (GH-23382)Lysandros Nikolaou2020-11-181-0/+3
| | | Automerge-Triggered-By: GH:lysnikolaou
* bpo-1635741: Port _warnings to the multi-phase init (GH-23379)Victor Stinner2020-11-182-40/+32
| | | | Port the _warnings extension module to the multi-phase initialization API (PEP 489).
* [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769)Andre Delfino2020-11-182-3/+3
|
* bpo-1635741: Convert _imp to multi-phase init (GH-23378)Victor Stinner2020-11-184-81/+122
| | | | | | | | | | | | Convert the _imp extension module to the multi-phase initialization API (PEP 489). * Add _PyImport_BootstrapImp() which fix a bootstrap issue: import the _imp module before importlib is initialized. * Add create_builtin() sub-function, used by _imp_create_builtin(). * Initialize PyInterpreterState.import_func earlier, in pycore_init_builtins(). * Remove references to _PyImport_Cleanup(). This function has been renamed to finalize_modules() and moved to pylifecycle.c.
* bpo-39573: Remove What's new entry for Py_SIZE() (GH-23375)Miro Hrončok2020-11-181-11/+0
| | | A follow up for 0e2ac21dd4960574e89561243763eabba685296a
* bpo-42085: Add documentation for Py_TPFLAGS_HAVE_AM_SEND (GH-23374)Vladimir Matveev2020-11-181-0/+8
| | | | | Updated docs to include `Py_TPFLAGS_HAVE_AM_SEND`. News section should not be necessary. Automerge-Triggered-By: GH:asvetlov
* bpo-39573: Convert Py_TYPE() and Py_SIZE() back to macros (GH-23366)Victor Stinner2020-11-185-26/+35
| | | | | | | | | This change partically reverts commit ad3252bad905d41635bcbb4b76db30d570cf0087 and the commit fe2978b3b940fe2478335e3a2ca5ad22338cdf9c. Many third party C extension modules rely on the ability of using Py_TYPE() to set an object type: "Py_TYPE(obj) = type;" or to set an object type using: "Py_SIZE(obj) = size;".
* bpo-42336: Improve PCbuild batch files (GH-23275)Steve Dower2020-11-189-24/+60
|
* bpo-40998: Address compiler warnings found by ubsan (GH-20929)Christian Heimes2020-11-184-5/+13
| | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-1635741: Port _hashlib to multiphase initialization (GH-23358)Christian Heimes2020-11-182-36/+3
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-1635741: Port symtable module to multiphase initialization (GH-23361)Christian Heimes2020-11-182-45/+51
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40998: Fix a refleak in create_filter() (GH-23365)Victor Stinner2020-11-181-3/+5
|
* bpo-42398: Fix "make regen-all" race condition (GH-23362)Victor Stinner2020-11-183-26/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a race condition in "make regen-all" when make -jN option is used to run jobs in parallel. The clinic.py script now only use atomic write to write files. Moveover, generated files are now left unchanged if the content does not change, to not change the file modification time. The "make regen-all" command runs "make clinic" and "make regen-importlib" targets: * "make regen-importlib" builds object files (ex: Modules/_weakref.o) from source files (ex: Modules/_weakref.c) and clinic files (ex: Modules/clinic/_weakref.c.h) * "make clinic" always rewrites all clinic files (ex: Modules/clinic/_weakref.c.h) Since there is no dependency between "clinic" and "regen-importlib" Makefile targets, these two targets can be run in parallel. Moreover, half of clinic.py file writes are not atomic and so there is a race condition when "make regen-all" runs jobs in parallel using make -jN option (which can be passed in MAKEFLAGS environment variable). Fix clinic.py to make all file writes atomic: * Add write_file() function to ensure that all file writes are atomic: write into a temporary file and then use os.replace(). * Moreover, write_file() doesn't recreate or modify the file if the content does not change to avoid modifying the file modification file. * Update test_clinic to verify these assertions with a functional test. * Remove Clinic.force attribute which was no longer used, whereas Clinic.verify remains useful.
* bpo-41561: skip test_min_max_version_mismatch (GH-22308)Christian Heimes2020-11-182-0/+2
| | | | | skip test_min_max_version_mismatch when TLS 1.0 is not available Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40656: Clean up detect_socket() (GH-20148)Erlend Egeberg Aasland2020-11-181-12/+10
|
* bpo-42395: Add aclosing to __all__ (GH-23356)Tom Gringauz2020-11-171-1/+1
| | | Automerge-Triggered-By: GH:asvetlov
* bpo-42396: Add a whatsnew entry about async contextlib.nullcontext (GH-23357)Tom Gringauz2020-11-171-0/+3
| | | Automerge-Triggered-By: GH:asvetlov
* bpo-41713: Port _signal module to multi-phase init (GH-23355)Victor Stinner2020-11-172-16/+19
| | | | | | Port the _signal extension module to the multi-phase initialization API (PEP 489). Co-Authored-By: Mohamed Koubaa <koubaa.m@gmail.com>
* bpo-41625: Skip os.splice() tests on AIX (GH-23354)Victor Stinner2020-11-171-0/+8
| | | | On AIX, splice() only works with a socket, whereas the test uses a pipe.
* bpo-41686: Move _Py_RestoreSignals() to signalmodule.c (GH-23353)Victor Stinner2020-11-172-23/+23
|
* Fix: Docstrings hidden by slots. (GH-23352)Julien Palard2020-11-171-15/+6
| | | Some `__slots__` where before the docstring, hiding them.
* bpo-41625: Add a guard for Linux for splice() constants in the os module ↵Pablo Galindo2020-11-171-1/+1
| | | | (GH-23350)
* bpo-41625: Specify that Linux >= 2.6.17 *and* glibc >= 2.5 are requir… ↵Pablo Galindo2020-11-171-1/+1
| | | | | (GH-23351) …ed for splice()
* bpo-42349: Compiler clean up. More yak-shaving for PEP 626. (GH-23267)Mark Shannon2020-11-177-4656/+4752
| | | Make sure that CFG from compiler front-end is correct. Be a bit more aggressive in the compiler back-end.
* bpo-41625: Add versionadded to os.splice() constants (GH-23340)Pablo Galindo2020-11-171-0/+1
|
* bpo-41686: Refactor signal_exec() (GH-23346)Victor Stinner2020-11-171-158/+125
| | | | | | * Add signal_add_constants() function and add ADD_INT_MACRO macro. * The Python SIGINT handler is now installed at the end of signal_exec(). * Use Py_NewRef().