]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
kj [Sat, 5 Dec 2020 16:02:14 +0000 (23:02 +0700)]
bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656)
Use `_PyArg_NoKeywords` instead of `_PyArg_NoKwnames` when checking the `kwds` tuple when creating `GenericAlias`. This fixes an interpreter crash when passing in keyword arguments to `GenericAlias`'s constructor.
Needs backport to 3.9.
Automerge-Triggered-By: GH:gvanrossum
Senthil Kumaran [Sat, 5 Dec 2020 13:26:24 +0000 (05:26 -0800)]
GH-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (#23638)
Zackery Spytz [Sat, 5 Dec 2020 10:34:51 +0000 (03:34 -0700)]
bpo-30459: Cast the result of PyList_SET_ITEM() to void (GH-19975)
Do the same for PyTuple_SET_ITEM().
Ned Deily [Sat, 5 Dec 2020 04:02:09 +0000 (23:02 -0500)]
bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649)
If no explicit macOS SDK was specified, setup.py should check for
Tcl and TK frameworks in /Library/Frameworks; the previous commit
inadvertently broke that test.
Brandt Bucher [Sat, 5 Dec 2020 03:45:57 +0000 (19:45 -0800)]
bpo-42536: GC track recycled tuples (GH-23623)
Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector:
- collections.OrderedDict.items
- dict.items
- enumerate
- functools.reduce
- itertools.combinations
- itertools.combinations_with_replacement
- itertools.permutations
- itertools.product
- itertools.zip_longest
- zip
Previously, they could have become untracked by a prior garbage collection.
Brett Cannon [Fri, 4 Dec 2020 23:39:21 +0000 (15:39 -0800)]
bpo-26131: Deprecate usage of load_module() (GH-23469)
Raise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning.
Pablo Galindo [Fri, 4 Dec 2020 23:19:21 +0000 (23:19 +0000)]
bpo-42545: Improve the error message in the stable API script (GH-23648)
Pablo Galindo [Fri, 4 Dec 2020 22:05:58 +0000 (22:05 +0000)]
bpo-42545: Check that all symbols in the limited ABI are exported (GH-23616)
Irit Katriel [Fri, 4 Dec 2020 21:22:03 +0000 (21:22 +0000)]
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633)
This can happen when a file was edited after it was imported.
pxinwr [Fri, 4 Dec 2020 20:19:32 +0000 (04:19 +0800)]
bpo-31904: fix test_doctest.py failures for VxWorks (GH-23419)
Fix test_doctest.py failures for VxWorks by avoiding exact error message checks. (better for everyone all around)
Irit Katriel [Fri, 4 Dec 2020 16:45:38 +0000 (16:45 +0000)]
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
Victor Stinner [Fri, 4 Dec 2020 15:23:56 +0000 (16:23 +0100)]
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
https://bugzilla.redhat.com/show_bug.cgi?id=
1866884 is fixed in gdb
10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64).
Mark Shannon [Fri, 4 Dec 2020 15:22:12 +0000 (15:22 +0000)]
bpo-42246: Don't forget the entry block when ensuring that all exits have a line number (GH-23636)
Don't forget the entry block when ensuring that all exits have a line number.
Yurii Karabas [Fri, 4 Dec 2020 15:20:53 +0000 (17:20 +0200)]
bpo-42562: Fix issue when dis failed to parse function that has no line numbers (GH-23632)
Fix issue when dis failed to parse function that has only annotations
Zackery Spytz [Thu, 3 Dec 2020 17:22:04 +0000 (10:22 -0700)]
bpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)
Victor Stinner [Thu, 3 Dec 2020 13:01:10 +0000 (14:01 +0100)]
bpo-42262: Py_NewRef() casts its argument to PyObject* (GH-23626)
Write also unit tests on Py_NewRef() and Py_XNewRef().
Victor Stinner [Thu, 3 Dec 2020 12:56:41 +0000 (13:56 +0100)]
bpo-42553: Fix test_asyncio.test_call_later() (GH-23627)
Fix test_asyncio.test_call_later() race condition: don't measure
asyncio performance in the call_later() unit test. The test failed
randomly on the CI.
Serhiy Storchaka [Thu, 3 Dec 2020 10:46:16 +0000 (12:46 +0200)]
bpo-42431: Fix outdated bytes comments (GH-23458)
Also move definitions of internal macros F_LJUST etc to private header.
Serhiy Storchaka [Thu, 3 Dec 2020 08:48:26 +0000 (10:48 +0200)]
bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
Senthil Kumaran [Thu, 3 Dec 2020 03:48:14 +0000 (19:48 -0800)]
Remove the conditional for setting query. (#23604)
FX Coudert [Thu, 3 Dec 2020 03:20:18 +0000 (04:20 +0100)]
bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)
macOS releases numbering has changed as of macOS 11 Big Sur. Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.
Pablo Galindo [Wed, 2 Dec 2020 17:57:18 +0000 (17:57 +0000)]
bpo-41625: Do not add os.splice on AIX due to compatibility issues (GH-23608)
Pablo Galindo [Wed, 2 Dec 2020 17:56:17 +0000 (17:56 +0000)]
bpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)
Mark Shannon [Wed, 2 Dec 2020 13:31:40 +0000 (13:31 +0000)]
bpo-42246: Make sure that line number is correct after a return, as required by PEP 626 (GH-23495)
Make sure that line number is correct after a return, as defined by PEP 626.
Mark Shannon [Wed, 2 Dec 2020 13:30:55 +0000 (13:30 +0000)]
bpo-42500: Fix recursion in or after except (GH-23568)
* Use counter, rather boolean state when handling soft overflows.
Pablo Galindo [Wed, 2 Dec 2020 06:07:56 +0000 (06:07 +0000)]
Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)
Pablo Galindo [Wed, 2 Dec 2020 05:16:31 +0000 (05:16 +0000)]
bpo-40939: Restore some stable API functions incorrectly deleted (GH-23606)
pxinwr [Tue, 1 Dec 2020 20:34:42 +0000 (04:34 +0800)]
bpo-31904: Fix test_netrc for VxWorks RTOS (GH-21675)
Fix test_netrc on VxWorks: create temporary directories using temp_cwd().
Victor Stinner [Tue, 1 Dec 2020 15:22:25 +0000 (16:22 +0100)]
bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)
dependabot[bot] [Tue, 1 Dec 2020 15:00:11 +0000 (09:00 -0600)]
build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23583)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.0 to v2.2.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.0...
726a6dcd0199f578459862705eed35cda05af50b )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Tue, 1 Dec 2020 14:59:12 +0000 (08:59 -0600)]
build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)
Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.2...
0781355a23dac32fd3bac414512f4b903437991a )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Andre Delfino [Tue, 1 Dec 2020 09:45:11 +0000 (06:45 -0300)]
[doc] Fix abc.update_abstractmethods markup (GH-23576)
Add link to ABCMeta while at it.
Andre Delfino [Tue, 1 Dec 2020 09:41:12 +0000 (06:41 -0300)]
Fix bz2 examples markup (#23580)
Victor Stinner [Tue, 1 Dec 2020 09:37:39 +0000 (10:37 +0100)]
bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587)
No longer use deprecated aliases to functions:
* Replace PyObject_MALLOC() with PyObject_Malloc()
* Replace PyObject_REALLOC() with PyObject_Realloc()
* Replace PyObject_FREE() with PyObject_Free()
* Replace PyObject_Del() with PyObject_Free()
* Replace PyObject_DEL() with PyObject_Free()
Victor Stinner [Tue, 1 Dec 2020 08:56:42 +0000 (09:56 +0100)]
bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() (GH-23586)
No longer use deprecated aliases to functions:
* Replace PyMem_MALLOC() with PyMem_Malloc()
* Replace PyMem_REALLOC() with PyMem_Realloc()
* Replace PyMem_FREE() with PyMem_Free()
* Replace PyMem_Del() with PyMem_Free()
* Replace PyMem_DEL() with PyMem_Free()
Modify also the PyMem_DEL() macro to use directly PyMem_Free().
pxinwr [Tue, 1 Dec 2020 08:20:50 +0000 (16:20 +0800)]
bpo-31904: Fix fifo test cases for VxWorks (GH-20254)
Raymond Hettinger [Tue, 1 Dec 2020 04:42:54 +0000 (20:42 -0800)]
bpo-38200: Add itertools.pairwise() (GH-23549)
Irit Katriel [Tue, 1 Dec 2020 01:35:25 +0000 (01:35 +0000)]
bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)
pxinwr [Mon, 30 Nov 2020 21:48:33 +0000 (05:48 +0800)]
bpo-31904: Support signal module on VxWorks (GH-23391)
Christian Heimes [Mon, 30 Nov 2020 21:34:45 +0000 (22:34 +0100)]
bpo-28468: Add platform.freedesktop_os_release() (GH-23492)
Add platform.freedesktop_os_release() function to parse freedesktop.org
os-release files.
Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Pablo Galindo [Mon, 30 Nov 2020 19:42:38 +0000 (19:42 +0000)]
Refactor the grammar to match the language specification docs (GH-23574)
James Gerity [Mon, 30 Nov 2020 19:08:26 +0000 (14:08 -0500)]
bpo-42485: [Doc] Link to PEP 617 from full grammar specification (GH-23532)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Raymond Hettinger [Mon, 30 Nov 2020 17:55:13 +0000 (09:55 -0800)]
bpo-42501: Revise the usage note for Enums with the choices (GH-23563)
Terry Jan Reedy [Mon, 30 Nov 2020 17:09:43 +0000 (12:09 -0500)]
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)
restart_subprocess is a method of self, the pyshell.InteractiveInterpreter instance. The latter does not have an interp attribute redundantly referring to itself. (The PyShell instance does have an interp attribute, referring to the InteractiveInterpreter instance.)
Andreas Poehlmann [Mon, 30 Nov 2020 16:34:15 +0000 (17:34 +0100)]
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534)
Yasser A [Mon, 30 Nov 2020 09:53:11 +0000 (01:53 -0800)]
bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)
Zackery Spytz [Mon, 30 Nov 2020 08:39:12 +0000 (01:39 -0700)]
bpo-42506: Fix unexpected output in test_format (GH-23564)
Serhiy Storchaka [Mon, 30 Nov 2020 08:24:07 +0000 (10:24 +0200)]
bpo-42142: Try to fix timeouts in ttk tests (GH-23474)
Instead of using wait_visibility() which waits event <VisibilityNotify> in dead loop
use update() which should proceed all queued events.
Raymond Hettinger [Sun, 29 Nov 2020 18:47:22 +0000 (10:47 -0800)]
bpo-42450: Minor updates to the itertools recipes (GH-23555)
Renato Cunha [Sun, 29 Nov 2020 18:23:15 +0000 (15:23 -0300)]
bpo-42406: Fix whichmodule() with multiprocessing (GH-23403)
* bpo-42406: Fix whichmodule() with multiprocessing
Signed-off-by: Renato L. de F. Cunha <renatoc@br.ibm.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Yurii Karabas [Sun, 29 Nov 2020 12:50:57 +0000 (14:50 +0200)]
bpo-42392: Remove deprecated loop parameter from docs (GH-23552)
Mark Dickinson [Sun, 29 Nov 2020 09:34:36 +0000 (09:34 +0000)]
bpo-39096: Improve description of 'e', 'f' and 'g' presentation types (#23537)
* Improve description of 'e', 'f' and 'g' presentation types
* Drop the 'E' from Scientific 'E' notation; remove >= 0 qualifications
* Fix false statement that the alternate form is valid for Decimal
* Nitpick: remove the Harvard/Oxford comma
* Add note that the decimal point is also removed if no digits follow it, except in alternate form
pxinwr [Sat, 28 Nov 2020 22:14:16 +0000 (06:14 +0800)]
bpo-31904: remove libnet dependency from detect_socket() for VxWorks (GH-23394)
Previously on VxWorks compiling socket extension module needs the libnet to link. Now VxWorks has moved the replied functions to libc. So removing libnet from setup.py.
pxinwr [Sat, 28 Nov 2020 22:06:36 +0000 (06:06 +0800)]
bpo-31904: skip some tests related to fifo on VxWorks (GH-23473)
On VxWork RTOS, FIFO must be created under directory "/fifos/". Some test cases related to fifo is invalid on VxWorks. So skip them.
pxinwr [Sat, 28 Nov 2020 22:04:50 +0000 (06:04 +0800)]
bpo-31904: add shell requirement for test_pipes (GH-23489)
VxWorks has no user space shell provided so it can't support pipes module. Also add shell requirement for running test_pipes.
pxinwr [Sat, 28 Nov 2020 21:49:47 +0000 (05:49 +0800)]
skip test_test of test_mailcap on VxWorks (GH-23507)
pxinwr [Sat, 28 Nov 2020 21:48:38 +0000 (05:48 +0800)]
skip test_getaddrinfo_ipv6_scopeid_symbolic and test_getnameinfo_ipv6_scopeid_symbolic on VxWorks (GH-23518)
Zackery Spytz [Sat, 28 Nov 2020 21:46:30 +0000 (14:46 -0700)]
Fix an error in the news entry for _posixsubprocess multiphase init (GH-23516)
Commit
035deee265c7fb227ddc87222fa48761231d8bd7 converted the
_posixsubprocess module to multiphase initialization, but the news entry
mentions the _posixshmem module.
Andre Delfino [Sat, 28 Nov 2020 21:43:22 +0000 (18:43 -0300)]
Fix dis markup (GH-23524)
Andre Delfino [Sat, 28 Nov 2020 21:42:23 +0000 (18:42 -0300)]
Fix multiprocessing markup (GH-23525)
Soumendra Ganguly [Sat, 28 Nov 2020 21:04:20 +0000 (15:04 -0600)]
bpo-41818: Fix test_master_read() so that it succeeds on all platforms that either raise OSError or return b"" upon reading from master (GH-23536)
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
pxinwr [Sat, 28 Nov 2020 20:21:30 +0000 (04:21 +0800)]
bpo-31904: Fix test_os.test_getcwd_long_path() failure for VxWorks (GH-20256)
Zackery Spytz [Sat, 28 Nov 2020 14:53:39 +0000 (07:53 -0700)]
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
Zackery Spytz [Sat, 28 Nov 2020 14:27:28 +0000 (07:27 -0700)]
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925)
Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
Wansoo Kim [Sat, 28 Nov 2020 11:37:08 +0000 (20:37 +0900)]
bpo-41241: Unnecessary Type casting in 'if condition' (GH-21396)
This is my first issue!
So, if there's anything wrong, please tell me!
Also, thank you always for all the contributors!
Automerge-Triggered-By: GH:asvetlov
Yurii Karabas [Sat, 28 Nov 2020 08:21:17 +0000 (10:21 +0200)]
bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521)
Julien Jerphanion [Sat, 28 Nov 2020 07:11:19 +0000 (07:11 +0000)]
bpo-42452: Improve colorsys.rgb_to_hls code (GH-23306)
Cache repeated sum and difference to make code slightly faster and easier to read.
Irit Katriel [Fri, 27 Nov 2020 16:38:54 +0000 (16:38 +0000)]
bpo-42474: test TracebackException comparison to non-equal instances (GH-23522)
Closes bpo-42474
Soumendra Ganguly [Fri, 27 Nov 2020 10:16:41 +0000 (04:16 -0600)]
bpo-41818: Make test_openpty() avoid unexpected success due to number of rows and/or number of columns being == 0. (GH-23526)
Volker-Weissmann [Fri, 27 Nov 2020 00:41:32 +0000 (01:41 +0100)]
bpo-17852: Doc: Fix the tutorial about closing files (GH-23135)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Shane Harvey [Thu, 26 Nov 2020 13:24:48 +0000 (05:24 -0800)]
Document optional 'task'/'asyncgen' fields in call_exception_handler (#21735)
Alex Grönholm [Thu, 26 Nov 2020 10:09:12 +0000 (12:09 +0200)]
bpo-41332: Added missing connect_accepted_socket() to AbstractEventLoop (GH-21533)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Yurii Karabas [Thu, 26 Nov 2020 07:36:37 +0000 (09:36 +0200)]
bpo-42392: Remove loop parameter from asyncio.streams (GH-23517)
Andrew Svetlov [Wed, 25 Nov 2020 17:06:12 +0000 (19:06 +0200)]
bpo-41818: test_openpty succeed on Gentoo, don't expect to fail on this platform (GH-23514)
basak [Wed, 25 Nov 2020 14:12:17 +0000 (14:12 +0000)]
Typo: fix inverted sense of statement (GH-23288)
Looks like a "not" was inadvertently omitted in commit
e6a7ea4 .
Classmethods are useful when data stored in specific instances are *not*
needed.
Automerge-Triggered-By: GH:JulienPalard
Soumendra Ganguly [Wed, 25 Nov 2020 13:41:25 +0000 (07:41 -0600)]
bpo-41818: Updated tests for the standard pty library (GH-22962)
Dong-hee Na [Wed, 25 Nov 2020 13:17:30 +0000 (22:17 +0900)]
bpo-42299: Remove formatter module (GH-23476)
Yurii Karabas [Wed, 25 Nov 2020 11:50:44 +0000 (13:50 +0200)]
bpo-42392: Improve removal of *loop* parameter in asyncio primitives (GH-23499)
* Update code after merge review from 1st1
* Use a sentinel approach for loop parameter
Remove unnecessary _get_running_loop patching
* Use more clear function name (_verify_parameter_is_marker -> _verify_no_loop)
* Add init method to _LoopBoundMixin to check that loop param wasn't used
Yurii Karabas [Wed, 25 Nov 2020 10:43:18 +0000 (12:43 +0200)]
bpo-42202: Store func annotations as a tuple (GH-23316)
Reduce memory footprint and improve performance of loading modules having many func annotations.
>>> sys.getsizeof({"a":"int","b":"int","return":"int"})
232
>>> sys.getsizeof(("a","int","b","int","return","int"))
88
The tuple is converted into dict on the fly when `func.__annotations__` is accessed first.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Raymond Hettinger [Wed, 25 Nov 2020 09:54:24 +0000 (01:54 -0800)]
Add more tests to the descriptor howto guide (GH-23506)
Julien Palard [Wed, 25 Nov 2020 09:23:17 +0000 (10:23 +0100)]
bpo-12800: tarfile: Restore fix from
011525ee9 (GH-21409)
Restore fix from
011525ee92eb1c13ad1a62d28725a840e28f8160 .
Julien Palard [Wed, 25 Nov 2020 09:18:00 +0000 (10:18 +0100)]
bpo-42238: Doc: Remove make suspicious from the CI and docs builds. (GH-23313)
It probably helped a lot a while back, but may not be as usefull
today. We'll continue monitoring it before deletion, so true
positives can be migrated to rstlint.
kj [Wed, 25 Nov 2020 04:59:59 +0000 (11:59 +0700)]
Doc: Minor fixes (GH-23422)
Raymond Hettinger [Wed, 25 Nov 2020 04:57:02 +0000 (20:57 -0800)]
Add doctests to the descriptor HowTo (GH-23500)
Hai Shi [Tue, 24 Nov 2020 22:03:31 +0000 (06:03 +0800)]
bpo-40170: Hide impl detail of Py_TRASHCAN_BEGIN macro (GH-23235)
The Py_TRASHCAN_BEGIN macro no longer accesses PyTypeObject attributes,
but now can get the condition by calling the new private
_PyTrash_cond() function which hides implementation details.
Yurii Karabas [Tue, 24 Nov 2020 18:08:54 +0000 (20:08 +0200)]
bpo-42392: Remove loop parameter form asyncio locks and Queue (#23420)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Serhiy Storchaka [Tue, 24 Nov 2020 17:35:39 +0000 (19:35 +0200)]
bpo-42370: Check element before making mouse click in ttk tests (GH-23491)
Victor Stinner [Tue, 24 Nov 2020 12:38:08 +0000 (13:38 +0100)]
bpo-42212: smelly.py also checks the dynamic library (GH-23423)
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.
Serhiy Storchaka [Tue, 24 Nov 2020 12:07:32 +0000 (14:07 +0200)]
bpo-42260: Improve error handling in _PyConfig_FromDict (GH-23488)
Ned Deily [Tue, 24 Nov 2020 06:20:35 +0000 (01:20 -0500)]
bpo-41100: in test_platform, ignore 10.16 (GH-23485)
Ned Deily [Tue, 24 Nov 2020 00:04:40 +0000 (19:04 -0500)]
bpo-41100: minor build installer fixes (GH-23480)
Jesús Cea [Mon, 23 Nov 2020 23:56:30 +0000 (00:56 +0100)]
Typo (#23482)
Yaroslav Pankovych [Mon, 23 Nov 2020 20:06:22 +0000 (22:06 +0200)]
Added support for negative indexes to PurePath.parents (GH-21799)
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>
Raymond Hettinger [Mon, 23 Nov 2020 18:56:59 +0000 (10:56 -0800)]
Descriptor HowTo: Improve the fidelity of the member object simulation (GH-23475)
Nick Crews [Mon, 23 Nov 2020 16:29:37 +0000 (09:29 -0700)]
bpo-15450: Allow subclassing of dircmp (GH-23424) (#23424)
Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
Irit Katriel [Mon, 23 Nov 2020 13:31:31 +0000 (13:31 +0000)]
bpo-28850: Fix PrettyPrinter.format overrides ignored for contents of small containers (GH-22120)
Serhiy Storchaka [Sun, 22 Nov 2020 20:48:52 +0000 (22:48 +0200)]
bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)
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.
Serhiy Storchaka [Sun, 22 Nov 2020 20:00:53 +0000 (22:00 +0200)]
bpo-42435: Speed up comparison of bytes and bytearray object (GH--23461)
* 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.
John Belmonte [Sun, 22 Nov 2020 14:54:19 +0000 (23:54 +0900)]
Doc: fix typo in typing.Type docs (GH-23460)
Serhiy Storchaka [Sun, 22 Nov 2020 11:25:02 +0000 (13:25 +0200)]
bpo-42423: Accept single base class in PyType_FromModuleAndSpec() (GH-23441)