summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-42212: smelly.py also checks the dynamic library (GH-23423)Victor Stinner2020-11-243-36/+124
| | | | | | | | The smelly.py script now also checks the Python dynamic library and extension modules, not only the Python static library. Make also the script more verbose: explain what it does. The GitHub Action job now builds Python with the libpython dynamic library.
* bpo-42260: Improve error handling in _PyConfig_FromDict (GH-23488)Serhiy Storchaka2020-11-241-4/+9
|
* bpo-41100: in test_platform, ignore 10.16 (GH-23485)Ned Deily2020-11-241-1/+4
|
* bpo-41100: minor build installer fixes (GH-23480)Ned Deily2020-11-241-6/+12
|
* Typo (#23482)Jesús Cea2020-11-231-1/+1
|
* Added support for negative indexes to PurePath.parents (GH-21799)Yaroslav Pankovych2020-11-237-5/+15
| | | | | | | | | | This commit also fixes up some of the overlapping documentation changed in bpo-35498, which added support for indexing with slices. Fixes bpo-21041. https://bugs.python.org/issue21041 Co-authored-by: Paul Ganssle <p.ganssle@gmail.com> Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
* Descriptor HowTo: Improve the fidelity of the member object simulation ↵Raymond Hettinger2020-11-231-11/+46
| | | | (GH-23475)
* bpo-15450: Allow subclassing of dircmp (GH-23424) (#23424)Nick Crews2020-11-235-13/+60
| | | Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
* bpo-28850: Fix PrettyPrinter.format overrides ignored for contents of small ↵Irit Katriel2020-11-233-75/+89
| | | | containers (GH-22120)
* bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)Serhiy Storchaka2020-11-224-28/+111
| | | | | | | The function accepts now the representation of the default state as empty sequence (as returned by Style.map()). The structure of the result is now the same on all platform and does not depend on the value of wantobjects.
* bpo-42435: Speed up comparison of bytes and bytearray object (GH--23461)Serhiy Storchaka2020-11-223-33/+14
| | | | | * Speed up comparison of bytes objects with non-bytes objects when option -b is specified. * Speed up comparison of bytarray objects with non-buffer object.
* Doc: fix typo in typing.Type docs (GH-23460)John Belmonte2020-11-221-1/+1
|
* bpo-42423: Accept single base class in PyType_FromModuleAndSpec() (GH-23441)Serhiy Storchaka2020-11-227-28/+17
|
* bpo-42427: Use the errno attribute of OSError instead of args[0] (GH-23449)Serhiy Storchaka2020-11-223-11/+11
|
* bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)Ram Rachum2020-11-221-2/+1
| | | Removing 'evaluate' makes it more consistent with other assertX entries.
* bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301)Ronald Oussoren2020-11-224-30/+38
| | | | | | On macOS system provided libraries are in a shared library cache and not at their usual location. This PR teaches distutils to search in the SDK, even if there was no "-sysroot" argument in the compiler flags.
* bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)Serhiy Storchaka2020-11-224-9/+11
|
* bpo-41100: Stripping '-arch arm64' didn't work after all (GH-23280)Ronald Oussoren2020-11-221-2/+2
|
* bpo-42361: Use Tcl/Tk 8.6.10 when building the installer on recent macOS ↵Ronald Oussoren2020-11-221-9/+32
| | | | | | (GH-23293) Building on older versions, and in particular macOS 10.9 still use Tk 8.6.8 because of build problems on that version of macOS.
* bpo-38443: Check that the specified universal architectures work (GH-22910)Ronald Oussoren2020-11-223-0/+34
| | | As [bpo-38443]() says the error message from configure when specifying --enable-universalsdk with a set of architectures that is not supported by the compiler is not very helpful. This PR explicitly checks if the compiler works and bails out if it doesn't.
* Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272)Richard Levasseur2020-11-212-1/+57
|
* bpo-1635741: Port select module to multiphase init (GH-23409)Christian Heimes2020-11-213-85/+110
|
* bpo-1635741: Port _posixsubprocess module to multiphase init (GH-23406)Christian Heimes2020-11-212-35/+43
|
* bpo-42425: Fix possible leak in initialization of errmap for OSError (GH-23446)Serhiy Storchaka2020-11-211-1/+3
|
* bpo-42232: mmap module add Darwin specific madvise options. (GH-23076)David CARLIER2020-11-213-0/+11
|
* bpo-42412: Fix possible leaks and check arguments in ↵Serhiy Storchaka2020-11-212-7/+22
| | | | | | | | PyType_FromModuleAndSpec() (GH-23410) * There were leaks if Py_tp_bases is used more than once or if some call is failed before setting tp_bases. * There was a crash if the bases argument or the Py_tp_bases slot is not a tuple. * The documentation was not accurate.
* bpo-40550: Fix time-of-check/time-of-action issue in ↵Filipe Laíns2020-11-213-1/+19
| | | | | | | subprocess.Popen.send_signal. (GH-20010) send_signal() now swallows the exception if the process it thought was still alive winds up not to exist anymore (always a plausible race condition despite the checks). Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-40791: Make compare_digest more constant-time. (GH-20444)Devin Jeanpierre2020-11-212-1/+2
| | | | | | | | * bpo-40791: Make compare_digest more constant-time. The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization. (This is change #1 from https://bugs.python.org/issue40791 .)
* bpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421)Quentin Hibon2020-11-211-2/+2
|
* bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)ArioA2020-11-211-1/+1
|
* bpo-36876: [c-analyzer tool] Tighten up the results and output. (GH-23431)Eric Snow2020-11-2013-109/+3202
| | | We also update the "ignored" file with a temporary list of all known globals.
* bpo-28002: Roundtrip f-strings with ast.unparse better (#19612)Shantanu2020-11-202-37/+115
| | | | | | | | | By attempting to avoid backslashes in f-string expressions. We also now proactively raise errors for some backslashes we can't avoid while unparsing FormattedValues Co-authored-by: hauntsaninja <> Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* 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.