summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bpo-41403: Improve error message for invalid mock target (GH-30833)backport-f7955a8-3.10Irit Katriel2022-01-233-5/+13
| | | | (cherry picked from commit f7955a82e36d4c32ebdd7b7707cdf0e6ffa7a418)
* [3.10] bpo-46474: Avoid REDoS in EntryPoint.pattern (sync with ↵Jason R. Coombs2022-01-232-2/+4
| | | | | | | importlib_metadata 4.10.1) (GH-30803) (GH-30827) (cherry picked from commit 51c3e28c8a163e58dc753765e3cc51d5a717e70d) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.10] bpo-46240: Correct the error for unclosed parentheses when the ↵Pablo Galindo Salgado2022-01-234-2/+9
| | | | | | | tokenizer is not finished (GH-30378). (GH-30819) (cherry picked from commit 70f415fb8b632247e28d87998642317ca7a652ae) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-46266: Add calendar day of week constants to __all__ (GH-30412) (GH-30424)Miss Islington (bot)2022-01-234-4/+18
| | | | | | | (cherry picked from commit e5894ca8fd05e6a6df1033025b9093b68baa718d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-41682: Skip unstable test_asyncio sendfile test on Windows (GH-30801) ↵Miss Islington (bot)2022-01-231-0/+2
| | | | | | | | | (GH-30812) (cherry picked from commit 1ded8ed8e817b8f9dae1a0ef92d97983afbc844e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-43118: Fix bug in inspect.signature around 'base.__text_signature__' ↵Miss Islington (bot)2022-01-224-2/+27
| | | | | | | | | (GH-30285) (#30765) (cherry picked from commit 881a763cfe07ef4a5806ec78f13a9bc99e8909dc) Co-authored-by: Weipeng Hong <hongweichen8888@sina.com> Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
* bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776) ↵Miss Islington (bot)2022-01-221-7/+12
| | | | | | | | | | | | | | | (#30787) Code link: https://github.com/python/cpython/blob/70c16468deee9390e34322d32fda57df6e0f46bb/Lib/http/server.pyGH-L1270 It's been this way since at least 3.4. Also improved some wording in the same section. (cherry picked from commit c8a536624e8f5d6612e3c275c5b19592583a8cf8) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46417: Fix race condition on setting type __bases__ (GH-30788) (GH-30789)Miss Islington (bot)2022-01-222-11/+21
| | | | | | | | | | | | Fix a race condition on setting a type __bases__ attribute: the internal function add_subclass() now gets the PyTypeObject.tp_subclasses member after calling PyWeakref_NewRef() which can trigger a garbage collection which can indirectly modify PyTypeObject.tp_subclasses. (cherry picked from commit f1c6ae3270913e095d24ae13ecf96f5a32c8c503) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) (#30782)Miss Islington (bot)2022-01-226-2/+25
| | | | | | | (cherry picked from commit 5a5340044ca98cbe6297668d91bccba04b102923) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] bpo-46469: Make asyncio generic classes return GenericAlias ↵Miss Islington (bot)2022-01-228-25/+28
| | | | | | | | | | | | | | | | | | | | | | | | (GH-30777) (#30784) * bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) * bpo-46469: Make asyncio generic classes return GenericAlias * 📜🤖 Added by blurb_it. * Update Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit ea5b96842e066623a53015d8b2492ed61a5baf96) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> * Fix tests Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-46442: improve and rename testExceptionCleanupNames (GH-30758)Miss Islington (bot)2022-01-211-2/+14
| | | | | | | | The test tested that explicitly deleting the local variable bound to the exception did not cause problems, but it did not test what it actually claimed to test, i.e. that the variable is deleted automatically. (cherry picked from commit 82c53229e18f5853c82cb8ab6b9af1925a0e9e58) Co-authored-by: Yellow Dusk <yellow.dusk1590@fastmail.com>
* bpo-46445: Cover multiple inheritance of `TypedDict` in `test_typing` (GH-30719)Miss Islington (bot)2022-01-211-1/+87
| | | | | (cherry picked from commit 65b88d5e01c845c0cfa3ff61bc8b2faec8f67a57) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46463: Fixes escape4chm.py script used when building the CHM ↵Miss Islington (bot)2022-01-212-4/+7
| | | | | | | documentation file (GH-30768) (cherry picked from commit 57d1855682dbeb9233ef3a531f9535c6442e9992) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-46434: Handle missing docstrings in pdb help (GH-30705)Miss Islington (bot)2022-01-214-0/+27
| | | | | (cherry picked from commit 60705cff70576482fea31dcafbf8a37cbb751ea5) Co-authored-by: Tom Sparrow <793763+sparrowt@users.noreply.github.com>
* bpo-46426: Improve tests for the dir_fd argument (GH-30668) (GH-30739)Miss Islington (bot)2022-01-213-230/+208
| | | | | | | | | | | Ensure that directory file descriptors refer to directories different from the current directory, and that src_dir_fd and dst_dir_fd refer to different directories. Add context manager open_dir_fd() in test.support.os_helper. (cherry picked from commit 54610bb448a9cf5be77d53b66169fca4c11be6cb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* no-issue: Fix documentation typos. (GH-30576)Miss Islington (bot)2022-01-212-2/+2
| | | | | (cherry picked from commit d05a66339b5e07d72d96e4c30a34cc3821bb61a2) Co-authored-by: Piotr Fusik <piotr@fusik.info>
* [3.10] bpo-41857: mention timeout argument units in select.poll() and ↵Tal Einat2022-01-212-3/+15
| | | | | | | select.depoll() doc-strings (GH-22406) (cherry picked from commit 27df7566bc19699b967e0e30d7808637b90141f6) Co-authored-by: Zane Bitter <zbitter@redhat.com>
* bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283)Miss Islington (bot)2022-01-213-1/+22
| | | | | (cherry picked from commit cfadcc31ea84617b1c73022ce54d4ae831333e8d) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-46080: fix argparse help generation exception in edge case (GH-30111)Miss Islington (bot)2022-01-203-3/+9
| | | | | | | | Fix an uncaught exception during help text generation when argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified. (cherry picked from commit 9e87c0e03fa501fb90008547983ce4c1dcaaf90c) Co-authored-by: Felix Fontein <felix@fontein.de>
* [3.10] Mark all clinic headers as generated (GH-30679). (GH-30726)Erlend Egeberg Aasland2022-01-201-5/+2
| | | | | (cherry picked from commit 71734d0b9ca584bcbdcb2fb44ae16bb2fbfcaf6e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] bpo-46339: Fix crash in the parser when computing error text for ↵Miss Islington (bot)2022-01-204-427/+19
| | | | | | | | | | | | | | multi-line f-strings (GH-30529) (GH-30542) * bpo-46339: Fix crash in the parser when computing error text for multi-line f-strings (GH-30529) Automerge-Triggered-By: GH:pablogsal (cherry picked from commit cedec19be81e6bd153678bfb28c8e217af8bda58) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> * Fix interactive mode Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-46425: Fix direct invocation of multiple test modules (GH-30666) ↵Nikita Sobolev2022-01-205-8/+7
| | | | (GH-30699)
* bpo-46437: remove useless `hasattr` from `test_typing` (GH-30704)Miss Islington (bot)2022-01-191-9/+7
| | | | | (cherry picked from commit 263c0dd16017613c5ea2fbfc270be4de2b41b5ad) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* doc: Clarify os.urandom return type (GH-30282)Miss Islington (bot)2022-01-191-1/+1
| | | | | | Other descriptions in the same file also use 'bytestring' to refer to bytes objects (cherry picked from commit 4b99803b861e58eb476a7a30e2e8aacdec5df104) Co-authored-by: Florian Bruhin <me@the-compiler.org>
* docs: correct outdated MappingProxyType docstrings (GH-30281)Miss Islington (bot)2022-01-191-3/+3
| | | | | | | | The docstrings for MappingProxyType's keys(), values(), and items() methods were never updated to reflect the changes that Python 3 brought to these APIs, namely returning views rather than lists. (cherry picked from commit 2d10fa9bc4cf83c5e5dd73decc9a138d6d247374) Co-authored-by: Joshua Bronson <jabronson@gmail.com>
* Update documentation in datetime module strftime-and-strptime-behavior fix ↵Miss Islington (bot)2022-01-191-5/+5
| | | | | | | | | | typo in '%W' format code description (GH-30232) A small change to the documentation of datetime module , in the format codes section of stftime and strptime. Changed the description of format code '%W' from 'as a decimal number' to 'a zero padded decimal number' so it's in line with the example having leading zeros. Similar to the format code '%U' above. Automerge-Triggered-By: GH:pganssle (cherry picked from commit d45cd2d20770f72a000ba6dfa9ac88dd49423c27) Co-authored-by: Evan <binary-signal@users.noreply.github.com>
* [3.10] bpo-46413: properly test `__{r}or__` code paths in ↵Miss Islington (bot)2022-01-191-0/+8
| | | | | | | | | | | `_SpecialGenericAlias` (GH-30640) (GH-30694) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 0a49148e87cca11e3820cbff2abfd316986a68c6) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Automerge-Triggered-By: GH:Fidget-Spinner
* bpo-46424: [typing] cover `Annotation[arg]` invalid usage in tests (GH-30663)Miss Islington (bot)2022-01-191-0/+4
| | | | | (cherry picked from commit 32398294fb3fcf4ee74da54722fd0221c4e6cb74) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] bpo-45680: Clarify documentation on ``GenericAlias`` objects ↵Miss Islington (bot)2022-01-191-33/+84
| | | | | | | | | | | | | | | | | | | | | | | (GH-29335) (GH-30688) The documentation on ``GenericAlias`` objects implies at multiple points that only container classes can define ``__class_getitem__``. This is misleading. This PR proposes a rewrite of the documentation to clarify that non-container classes can define ``__class_getitem__``, and to clarify what it means when a non-container class is parameterized. See also: initial discussion of issues with this piece of documentation in GH-29308, and previous BPO issue [42280](). Also improved references in glossary and typing docs. Fixed some links. Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 0eae9a2a2db6cc5a72535f61bb988cc417011640) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Automerge-Triggered-By: GH:Fidget-Spinner
* bpo-22039: [doc] clarify that there are no plans to disable deleting an ↵Miss Islington (bot)2022-01-191-2/+3
| | | | | | | | | attribute via PyObject_SetAttr (GH-30639) (GH-30684) (cherry picked from commit 3bf6315c4cabf72d64e65e6f85bf72c65137255a) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.10] bpo-46402: Promote SQLite URI tricks in sqlite3 docs (GH-30660) ↵Erlend Egeberg Aasland2022-01-182-9/+26
| | | | | | | | | | | | | | (GH-30671) * bpo-46402: Promote SQLite URI tricks in `sqlite3` docs (GH-30660) Provide some examples of URI parameters in sqlite connect(). Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> (cherry picked from commit bdf2ab1887a2edfb089a3c2a1590cf1e84ea0048) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> * Update suspicious rules
* bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142)Miss Islington (bot)2022-01-182-2/+10
| | | | | | | | This addresses [bpo-45554]() by expanding the `exitcode` documentation to also describe what `exitcode` will be in cases of normal termination, `sys.exit()` called, and on uncaught exceptions. Automerge-Triggered-By: GH:pitrou (cherry picked from commit 3852269b91fcc8ee668cd876b3669eba6da5b1ac) Co-authored-by: John Marshall <jmarshall@hey.com>
* bpo-20823: Clarify copyreg.pickle() documentation (GH-30230)Miss Islington (bot)2022-01-181-2/+2
| | | | | (cherry picked from commit 65940fa5c12a4b4a0650c7845044ffd63b94e227) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* bpo-46411: Remove unnecessary calls to sys.exc_info() in tests (GH-30638)Miss Islington (bot)2022-01-176-16/+14
| | | | | (cherry picked from commit a287b31bcb065e4122400cb59167340d25480e6d) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* bpo-46383: Fix signature of zoneinfo module_free function (GH-30607) (GH-30610)Miss Islington (bot)2022-01-172-1/+3
| | | | | | | (cherry picked from commit cfbde65df318eea243706ff876e5ef834c085e5f) Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Christian Heimes <christian@python.org>
* bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631)Miss Islington (bot)2022-01-172-2/+17
| | | | | | | | | | | | | Skip test_builtin PTY tests on non-ASCII characters if the readline module is loaded. The readline module changes input() behavior, but test_builtin is not intented to test the readline module. When the readline module is loaded, PyOS_Readline() uses the readline implementation. In some cases, the Python readline callback rlhandler() is called by readline with a string without non-ASCII characters. (cherry picked from commit ad6e640f910787e73fd00f59117fbd22cdf88c78) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-20281, bpo-29964: update datetime docs to refer %z and %Z to a ↵Miss Islington (bot)2022-01-141-7/+6
| | | | | | | pre-existing footnote (GH-30354) (cherry picked from commit 305588c67cdede4ef127ada90c1557bc1ef7c200) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Merge remote-tracking branch 'upstream/3.10' into 3.10Pablo Galindo2022-01-145-1/+40
|\
| * bpo-23183: Document the timeit output (GH-30359)Miss Islington (bot)2022-01-141-0/+7
| | | | | | | | | | | | Co-authored-by: Robert Collins <robertc@robertcollins.net> (cherry picked from commit 73140de97cbeb01bb6c9af1da89ecb9355921e91) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
| * bpo-46280: Fix tracemalloc_copy_domain() (GH-30591)Miss Islington (bot)2022-01-131-0/+3
| | | | | | | | | | | | | | Test if tracemalloc_copy_traces() failed to allocated memory in tracemalloc_copy_domain(). (cherry picked from commit 7c770d3350813a82a639fcb3babae0de2b87aaae) Co-authored-by: Victor Stinner <vstinner@python.org>
| * [3.10] bpo-40479: Fix typo, flag must be set for OpenSSL < 3.0.0 (GH-30584) ↵Miss Islington (bot)2022-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | (GH-30585) (cherry picked from commit 276c234ce0fa6732237f1b187989837324d9dea3) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
| * bpo-46070: _PyGC_Fini() untracks objects (GH-30577)Miss Islington (bot)2022-01-132-0/+29
| | | | | | | | | | | | | | | | | | | | Py_EndInterpreter() now explicitly untracks all objects currently tracked by the GC. Previously, if an object was used later by another interpreter, calling PyObject_GC_UnTrack() on the object crashed if the previous or the next object of the PyGC_Head structure became a dangling pointer. (cherry picked from commit 1a4d1c1c9b08e75e88aeac90901920938f649832) Co-authored-by: Victor Stinner <vstinner@python.org>
* | Post 3.10.2Pablo Galindo2022-01-141-1/+1
| |
* | Python 3.10.2v3.10.2Pablo Galindo2022-01-1343-333/+620
|/
* Define Py_BUILD_CORE_MODULEMiss Islington (bot)2022-01-139-249/+362
|
* bpo-46345: Add a test case for implicit `Optional` class attribute (GH-30535)Miss Islington (bot)2022-01-121-0/+6
| | | | | (cherry picked from commit 1de60155d5d01be2924e72fb68dd13d4fd00acd7) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46347: Fix PyEval_EvalCodeEx to correctly cleanup in error paths (#30553)Yury Selivanov2022-01-111-11/+5
|
* bpo-46347: Fix memory leak in PyEval_EvalCodeEx. (GH-30546)Miss Islington (bot)2022-01-112-7/+1
| | | | | | First introduced in 0332e569c12d3dc97171546c6dc10e42c27de34b (cherry picked from commit 607d8a838f29ad3c4c4e85b39f338dade5f9cafe) Co-authored-by: Yury Selivanov <yury@edgedb.com>
* [doc] Add license_url for python-docs-theme 2022.1. (GH-30527) (GH-30540)Miss Islington (bot)2022-01-112-2/+3
| | | | | | | (cherry picked from commit 6f05e1ec193c132015e9a23d1137b1731596f186) Co-authored-by: Julien Palard <julien@palard.fr> Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-46237: Fix the line number of tokenizer errors inside f-strings (GH-30463)Miss Islington (bot)2022-01-114-5/+22
| | | | | (cherry picked from commit 6fa8b2ceee38187b0ae96aee12fe4f0a5c8a2ce7) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>