summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.9.8v3.9.8Łukasz Langa2021-11-0578-180/+783
|
* bpo-45762: Improve docs for ``@singledispatch``/``@singledispatchmethod`` ↵Miss Islington (bot)2021-11-052-22/+28
| | | | | | | (GH-29426) (GH-29430) (cherry picked from commit 71e8a3e76a32f5eabe20e7fa984f384ca9af6ec6) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416) ↵Miss Islington (bot)2021-11-051-1/+4
| | | | | | | (GH-29420) (cherry picked from commit 54d1e3f72ed1ad8e860888c30ee7a285b931c0d1) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS ↵Miss Islington (bot)2021-11-051-46/+20
| | | | | | | (GH-29411) (GH-29423) (cherry picked from commit e52f9bee802aa7a7fbd405dcc43bc2d1bea884d9) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.9] bpo-30570: Fix segfault on buildbots caused by stack overflow from ↵Łukasz Langa2021-11-042-12/+18
| | | | | | | recursion in tests (GH-29258) (GH-29415) (cherry picked from commit d56375a0dd4cee162081b173310298a3d32af293) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) (GH-29178)Miss Islington (bot)2021-11-043-6/+45
| | | | | | | | * Use Py_EnterRecursiveCall() in issubclass() Reviewed-by: Gregory P. Smith <greg@krypto.org> [Google] (cherry picked from commit 423fa1c1817abfa8c3d1bc308ddbbd8f28b69d68) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [3.9] bpo-45678: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug ↵Alex Waygood2021-11-043-2/+150
| | | | | | | | | | | (GH-29394) This PR fixes a bug in the 3.9 branch where ``functools.singledispatchmethod`` did not properly wrap attributes such as ``__name__``, ``__doc__`` and ``__module__`` of the target method. It also backports tests already merged into the 3.11 and 3.10 branches in #29328 and #29390. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Add generated artifacts in Mac/ to .gitignore; update copyright (GH-29408) ↵Miss Islington (bot)2021-11-042-2/+11
| | | | | | | (GH-29410) (cherry picked from commit 3167df16212e27f8aac1e5f39c0644a97b593406) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45220: Remove invalid include from resource definition files on Windows ↵Miss Islington (bot)2021-11-047-9/+0
| | | | | | | (GH-29396) (cherry picked from commit fd0c84dc28d00d68e4f43034dc41786a682390fd) Co-authored-by: Steve Dower <steve.dower@python.org>
* Remove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)Miss Islington (bot)2021-11-041-4/+3
| | | | | | ``typing.Tuple`` has been deprecated since Python 3.9, so it makes no sense to mention it so prominently in the documentation for the ``typing`` module. (cherry picked from commit 87032cfa3dc975d7442fd57dea2c6a56d31c911a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45680: ``typing`` docs: improve links to docs on ↵Miss Islington (bot)2021-11-042-4/+7
| | | | | | | ``GenericAlias``/``__class_getitem__`` (GH-29387) (cherry picked from commit e03e50377d6f8f212af60fed4ae405ebeb73237d) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.9] bpo-45578: add tests for `dis.distb` (GH-29332) (#29386)Łukasz Langa2021-11-032-0/+42
| | | | | (cherry picked from commit e346f196819aeb02a8a94205ce3e1536c4c2f105) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-45633: Fix newtypes doc typo (GH-29318) (GH-29365)Miss Islington (bot)2021-11-031-1/+1
| | | | | (cherry picked from commit 454cdb99abcda37413b15167cda564091fec2572) Co-authored-by: Dmitry Smirnov <dmitrysmirnov931@gmail.com>
* [3.9] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) (GH-29342)Serhiy Storchaka2021-11-033-6/+9
| | | | | | Literal[True, 2] is no longer equal to Literal[1, 2].. (cherry picked from commit 634984d7dbdd91e0a51a793eed4d870e139ae1e0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45406: make inspect.getmodule() return None when getabsfile() raises ↵Miss Islington (bot)2021-11-023-1/+11
| | | | | | | FileNotFoundError (GH-28824) (cherry picked from commit a459a81530de700b3d3faeb827b22ed1c9985812) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [doc] Link to section File input (GH-28941) (GH-29376)Miss Islington (bot)2021-11-021-1/+1
| | | | | (cherry picked from commit 48824fa1e26595ac97ffc96ee2c3d32ff130c420) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. ↵Miss Islington (bot)2021-11-021-1/+1
| | | | | | | | | | | (GH-28947) (GH-29374) Specify that SSLContext.set_default_verify_paths is called on ALL systems. The code of SSLContext.load_default_certs was changed in bpo-22449 to do this, this fix corrects the documentation to match that change. (cherry picked from commit 3551bf16ee5c25b6349209dd30e032f0f3b9ace3) Co-authored-by: LincolnPuzey <lincoln@puzey.dev>
* bpo-44828: Avoid leaving a zombie Save panel. (GH-29371)Ned Deily2021-11-021-1/+2
| | | Patch by Marc Culler of the Tk project.
* makefile: remove unused SGI_ABI variable (GH-29325) (GH-29370)Miss Islington (bot)2021-11-021-1/+0
| | | | | | | | | | | | SGI_ABI support was removed in [1] but this variable was never removed from the makefile. Currently, it is just a bad variable that does not get replaced by the configure script. [1] https://github.com/python/cpython/pull/3294 Signed-off-by: Filipe Laíns <lains@riseup.net> (cherry picked from commit 38982ab13629a0802ea721a5917da0b98d0d5a0a) Co-authored-by: Filipe Laíns <lains@riseup.net>
* [3.9] bpo-43158: Use configure values for building _uuid extension ↵Miss Islington (bot)2021-11-025-7/+86
| | | | | (GH-29353) (GH-29363) Co-authored-by: Christian Heimes <christian@python.org>
* [3.9] Move field width to the right field (GH-29344) (GH-29350)Miss Islington (bot)2021-10-311-2/+2
| | | Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
* bpo-45516: add protocol description to the Traversable documentation (GH-29039)Miss Islington (bot)2021-10-312-0/+42
| | | | | | | | | | | | | | | | | | | | * bpo-45516: add protocol description to the Traversable documentation Signed-off-by: Filipe Laíns <lains@riseup.net> * Update Doc/library/importlib.rst Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * Update Lib/importlib/abc.py * Update Doc/library/importlib.rst Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> (cherry picked from commit 4d03de3329ed8daa9c1107b1aedbb0fa280bddb6) Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
* [3.9] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals ↵Łukasz Langa2021-10-292-0/+6
| | | | | | | memory error (GH-29171) (GH-29324) (cherry picked from commit e2e62b3808691e15fa44b883270023e42dcad958) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45600: Enhanced / clarified the docs for os.environ and os.environb ↵Miss Islington (bot)2021-10-291-7/+8
| | | | | | | | (GH-29204) (GH-29321) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit b17cfd150f4dc2816975d304a71110a2d445eaf0) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200) ↵Miss Islington (bot)2021-10-291-0/+6
| | | | | | | (GH-29320) (cherry picked from commit 3877fc02f7a8801ba5ce0e94b6075b3fdd9778d0) Co-authored-by: Ian Fisher <ian@iafisher.com>
* [3.9] bpo-45628: Check all parts of the suffix for an extension match. ↵Miss Islington (bot)2021-10-291-2/+7
| | | | (GH-29310) (GH-29313)
* [3.9] [3.10] bpo-45502: Fix test_shelve (GH-29003) (GH-29305) (GH-29306)Serhiy Storchaka2021-10-291-72/+55
| | | | | | | Run test_shelve with all underlying dbm implementations and pickle protocols. Also make test_shelve discoverable. (cherry picked from commit b781cc3bfce7c052728b06aad9f1a467cced289d). (cherry picked from commit 6b867022d926be9fcc6f8038fb1093ba8c348ca5)
* bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29295)Miss Islington (bot)2021-10-282-44/+54
| | | | | (cherry picked from commit 66e6b3dcd3bbab06feeff2cbaf8aade7b6223d6c) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.9] bpo-45655: Add "relevant PEPs" section to typing documentation (GH-29297)Alex Waygood2021-10-282-6/+34
| | | | Backport of https://github.com/python/cpython/pull/29280 to the 3.9 branch.
* bpo-45624: make test_graphlib not depend on the iteration order of sets ↵Miss Islington (bot)2021-10-281-4/+13
| | | | | | | | | | | (GH-29233) (GH-29292) the current test depended on integer sets being iterated on in a certain fixed order. That order is different on PyPy (insertion based) and could change in CPython in the future in theory. Make the test robust against a different iteration order by sorting. (cherry picked from commit 7401694807fc6b5f7b35ff73c06f4bb852e02946) Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* bpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29289)Miss Islington (bot)2021-10-281-0/+34
| | | | | (cherry picked from commit 4dd1e84789f0bd2da83ad06d23c569bf03713a50) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29286)Miss Islington (bot)2021-10-281-2/+2
| | | | | | | It should be noted that this part of the documentation is redundant with function.rst's documentation of int. This one was correctly updated with Python 3.8. (cherry picked from commit d9c1868c25ec6466e8d8ae21fe9315a8a03836ab) Co-authored-by: Arthur Milchior <arthur@milchior.fr>
* bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func ↵Miss Islington (bot)2021-10-282-1/+3
| | | | | | | | (GH-29226) (GH-29284) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 1fb968c07a76fb2d1ec8c14a0026f1d15828f4a5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-45608: Document missing `sqlite3` DB-API attributes and methods ↵Miss Islington (bot)2021-10-281-0/+46
| | | | | | | (GH-29219) (GH-29282) (cherry picked from commit 88d8a1a340fb09c54d47f354f5fd7d4fbc5f0c78) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() ↵Miss Islington (bot)2021-10-283-9/+33
| | | | | | | | | | (GH-29246) (GH-29248) Objects that support garbage collection ("container" objects) should call PyObject_GC_UnTrack() from their destructors before clearing any fields which may point to other "container" objects. (cherry picked from commit 35e1ff38ee67ee543d9fcb268c3552c5397f9b3f) Co-authored-by: Sam Gross <colesbury@gmail.com>
* bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276)Miss Islington (bot)2021-10-283-1/+206
| | | | | | | when using the Tk 8.6.11 provided by python.org macOS installers. Patch by Marc Culler of the Tk project. (cherry picked from commit be8318be05e1a874215fa75b8845ede74b2c69b6) Co-authored-by: Ned Deily <nad@python.org>
* [3.9] bpo-39679: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug ↵Alex Waygood2021-10-283-0/+51
| | | | | | | | | | | | | (GH-29087) This commit fixes a bug in the 3.9 branch where stacking `@functools.singledispatchmethod` on top of `@classmethod` or `@staticmethod` caused an exception to be raised if the method was registered using type-annotations rather than `@method.register(int)`. Tests for this scenario were added to the 3.11 and 3.10 branches in #29034 and #29072; this commit also backports those tests to the 3.9 branch. Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44904: Fix classmethod property bug in doctest module (GH-28838)Miss Islington (bot)2021-10-284-4/+21
| | | | | | | | | | | The doctest module raised an error if a docstring contained an example that attempted to access a classmethod property. (Stacking '@classmethod' on top of `@property` has been supported since Python 3.9; see https://docs.python.org/3/howto/descriptor.htmlGH-class-methods.) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit b1302abcc8a4be5f39b4d60a1ce28032b77655b3) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45438: format of inspect.Signature with generic builtins (GH-29212)Miss Islington (bot)2021-10-273-0/+14
| | | | | | | | | | Use types.GenericAlias in inspect.formatannotation to correctly add type arguments of builtin types to the string representation of Signatures. Co-authored-by: Martin Rückl <martin.rueckl@codecentric.de> (cherry picked from commit d02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899) Co-authored-by: Martin Rueckl <enigma@nbubu.de>
* [3.9] bpo-45618: Fix documentation build by pinning Docutils version to ↵Ned Deily2021-10-272-3/+8
| | | | | | 0.17.1 (GH-29230) (GH-29241) Co-authored-by: Maciej Olko <maciej.olko@yougov.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161)Miss Islington (bot)2021-10-222-1/+3
| | | | | (cherry picked from commit f6e8b80d20159596cf641305bad3a833bedd2f4f) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX ↵Miss Islington (bot)2021-10-222-1/+2
| | | | | | | (GH-27857) (cherry picked from commit 2396fa6537d79554ac694dbd2b0b30eeb3476c80) Co-authored-by: Florin Spătar <florin.spatar@gmail.com>
* bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127)Miss Islington (bot)2021-10-222-0/+27
| | | | | | | | | | Raise RLIMIT_NOFILE in test.libregrtest. On macOS the default is often too low for our testsuite to succeed. Co-authored by reviewer: Victor Stinner (cherry picked from commit 843b890334ca30cf6af27dffe29cecd06b49f7d9) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-44344: Document that pow can return a complex number for non-complex ↵Miss Islington (bot)2021-10-211-1/+4
| | | | | | | | inputs. (GH-27853) (GH-29134) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 887a55705bb6c05a507c2886c9978a9e0cff0dd7) Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* bpo-41983: add availability info to socket docs (GH-27519) (GH-29137)Miss Islington (bot)2021-10-211-0/+4
| | | | | | | | * add availability info to AF_PACKET section * add availability for AF_QIPCRTR as well (cherry picked from commit 51375388bee7287be2d942906b48c8cf3f691e8b) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-45160: Ttk optionmenu only set variable once (GH-28291) (GH-29132)Miss Islington (bot)2021-10-213-1/+18
| | | | | (cherry picked from commit add46f84769a7e6fafa50954f79b7c248231fa4e) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* [3.9] bpo-44174: [Enum] add name-mangling reference (GH-29128)Ethan Furman2021-10-211-2/+2
|
* bpo-34451: Document prompt and output toggle feature in html tutorial ↵Miss Islington (bot)2021-10-211-0/+7
| | | | | | | (GH-27105) (GH-29120) (cherry picked from commit 5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c) Co-authored-by: Thomas <thmsdnnr@gmail.com>
* [3.9] bpo-42517: [ENUM] update docs for changes coming in 3.11 (GH-29113)Ethan Furman2021-10-201-2/+11
|
* bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as ↵Miss Islington (bot)2021-10-203-0/+28
| | | | | | | | | | | str (GH-28323) (GH-29112) An object implementing the os.PathLike protocol can represent a file system path as a str or bytes object. Therefore, _infer_return_type function should infer os.PathLike[str] object as str type and os.PathLike[bytes] object as bytes type. (cherry picked from commit 6270d3eeaf17b50abc4f8f4d97790d66179638e4) Co-authored-by: Kyungmin Lee <rekyungmin@gmail.com>