summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Removed confusing reference to sys (GH-31638)Miss Islington (bot)2022-03-081-3/+3
| | | | | (cherry picked from commit 28f84c72b6cee145f9c00e9b999656e9a2517e49) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
* [3.10] docs: Don't use code formatting for emphasis (GH-30519) (GH-31764)Jelle Zijlstra2022-03-081-1/+1
| | | | | (cherry picked from commit badb637c8ce91625122d5f4d71276bfe1a8ed5e9) Co-authored-by: William Andrea <william.j.andrea@gmail.com>
* [3.10] bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612) ↵Erlend Egeberg Aasland2022-03-086-69/+67
| | | | | (GH-31753) (cherry picked from commit 4d95fa1ac5d31ff450fb2f31b55ce1eb99d6efcb)
* bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly (GH-29468)Miss Islington (bot)2022-03-083-1/+19
| | | | | | Co-authored-by: Marco Ribeiro <marcoffee@users.noreply.github.com> (cherry picked from commit 36dd7396fcd26d8bf9919d536d05d7000becbe5b) Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
* Removed ambiguity in __init_subclass__ docs (GH-31540)Miss Islington (bot)2022-03-081-1/+1
| | | | | (cherry picked from commit ab014978aef303ac60465c9010505d798dc34df8) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
* bpo-46494: Mention the typing_extensions pkg in typing docs (GH-31260)Miss Islington (bot)2022-03-081-0/+4
| | | | | (cherry picked from commit 8debeed3075bf4d7e568e65da16bec63cf276f4f) Co-authored-by: Meer Suri <46469858+meersuri@users.noreply.github.com>
* importlib.metadata: Remove empty footnote section (GH-30451)Miss Islington (bot)2022-03-081-3/+0
| | | | | (cherry picked from commit 13331a12c3c4d5007e2ab61514ba1d76cedd8b84) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* bpo-45680: Improve docs on subscriptions w.r.t. `GenericAlias` objects ↵Miss Islington (bot)2022-03-081-20/+30
| | | | | | | (GH-29479) (cherry picked from commit 50731297a9b6d57eec3b3f89522785b23f7b3e71) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736)Miss Islington (bot)2022-03-073-14/+156
| | | | | (cherry picked from commit 176835c3d5c70f4c1b152cc2062b549144e37094) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 ↵Steve Dower2022-03-074-3/+5
| | | | and CVE-2019-12900 (GH-31732)
* bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly ↵Steve Dower2022-03-0711-4/+26
| | | | uses the install path during repair (GH-31727)
* [3.10] Update grammar_grapher with the new forced (&&) directive (GH-31704) ↵Luca Chiodini2022-03-071-0/+3
| | | | | | | (GH-31719) (cherry picked from commit 7f07b5ee9c2d17f837c44440bf066c73f92dac14) Co-authored-by: Luca Chiodini <luca@chiodini.org>
* [3.10] bpo-46940: Don't override existing AttributeError suggestion ↵Pablo Galindo Salgado2022-03-074-15/+48
| | | | | | | | | | | | | | | information (GH-31710) (GH-31724) When an exception is created in a nested call to PyObject_GetAttr, any external calls will override the context information of the AttributeError that we have already placed in the most internal call. This will cause the suggestions we create to nor work properly as the attribute name and object that we will be using are the incorrect ones. To avoid this, we need to check first if these attributes are already set and bail out if that's the case.. (cherry picked from commit 3b3be05a164da43f201e35b6dafbc840993a4d18) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-43292: Fix file leak in `ET.iterparse()` when not exhausted (GH-31696)Miss Islington (bot)2022-03-074-7/+20
| | | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 496c428de3318c9c5770937491b71dc3d3f18a6a) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* bpo-14156: Make argparse.FileType work correctly for binary file modes when ↵Miss Islington (bot)2022-03-063-17/+110
| | | | | | | | | argument is '-' (GH-13165) Also made modes containing 'a' or 'x' act the same as a mode containing 'w' when argument is '-' (so 'a'/'x' return sys.stdout like 'w', and 'ab'/'xb' return sys.stdout.buffer like 'wb'). (cherry picked from commit eafec26ae5327bb23b6dace2650b074c3327dfa0) Co-authored-by: MojoVampire <shadowranger+github@gmail.com>
* Lib/typing.py copy edits originating from GH-31061 (GH-31684)Miss Islington (bot)2022-03-051-3/+3
| | | | | (cherry picked from commit 2031149b9a7dfab5f5bad63f417e19f4fc2b9661) Co-authored-by: Matt Bogosian <eb3f73+github+com@yaymail.com>
* bpo-38738: Fix formatting of True and False in the threading documentation ↵Miss Islington (bot)2022-03-041-8/+8
| | | | | | | | | (GH-31678) * Fix formatting of True and False in the threading documentation * Update threading.rst (cherry picked from commit 46a116c1c9f6b60a3d35ab9a419f8eee5de2542e) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631)Miss Islington (bot)2022-03-044-13/+8
| | | | | (cherry picked from commit cedd2473a9bebe07f3ced4f341cf58a2fef07b03) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
* [3.10] bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan ↵Victor Stinner2022-03-044-11/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-31675) * bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662) Disable undefined behavior sanitizer (UBSAN) on faulthandler_sigfpe(). (cherry picked from commit 4173d677a1d7c72bb32d292fbff1b4cf073d615c) * bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672) Disable undefined behavior sanitizer (UBSan) on faulthandler._read_null(). (cherry picked from commit 65b92ccdec2ee4a99e54aaf7ae2d9bbc2ebfe549) * bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673) If Python is built with UBSan, test_hashlib skips tests on the _sha3 extension which currently has undefined behaviors. This change allows to run test_hashlib to check for new UBSan regression, but the known _sha3 undefined behavior must be fixed. (cherry picked from commit 6d0d7d2b8c1e04fd51c6cb29cc09a41b60b97b7b) * bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674) If Python is built with UBSan, test_ctypes now skips test_shorts(). This change allows to run test_ctypes to check for new UBSan regression, but the known test_shorts() undefined behavior must be fixed. (cherry picked from commit ad1b04451d3aca2c6fa6dbe2891676a4e0baac49)
* bpo-6634: [doc] clarify that sys.exit() does not always exit the interpreter ↵Miss Islington (bot)2022-03-031-5/+3
| | | | | | | (GH-31639) (cherry picked from commit 10117f1d8cb49ce95493555c06050faf636ccee7) Co-authored-by: vidhya <96202776+Vidhyavinu@users.noreply.github.com>
* bpo-46831: Update __build_class__ comment (GH-31522)Miss Islington (bot)2022-03-031-3/+2
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 81d968b7c30d5b41f3f28b297b7ee5345d569509) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* bpo-46643: Fix stringized P.args/P.kwargs with get_type_hints (GH-31238)Miss Islington (bot)2022-03-033-1/+15
| | | | | (cherry picked from commit 75d2d945b4e28ca34506b2d4902367b61a8dff82) Co-authored-by: Gregory Beauregard <greg@greg.red>
* bpo-21910: Clarify docs for codecs writelines method (GH-31245)Miss Islington (bot)2022-03-031-2/+3
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit a8c87a239ee1414d6dd0b062fe9ec3e5b0c50cb8) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
* [3.10] bpo-45492: Corrected documentation for co_names in inspect library ↵Irit Katriel2022-03-021-2/+3
| | | | | | | | | doc (GH-31456). (GH-31645) (cherry picked from commit 3257d49d236e5f3453fe9d2fd8338bcdfe9756b7) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
* [3.10] bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) (GH-31634)Victor Stinner2022-03-0214-49/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor sanitiser skip tests into test.support (GH-30889) * Refactor sanitizer skip tests into test.support (cherry picked from commit b1cb8430504931f7854eac5d32cba74770078a4e) * Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897) (cherry picked from commit a27505345e34d462139f5f8b6b5e7c9a59955150) * bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) Skip tests on ASAN and/or MSAN builds: * multiprocessing tests * test___all__ * test_concurrent_futures * test_decimal * test_peg_generator * test_tools (cherry picked from commit 9204bb72a2da5885facc747e63d2bd2d654606fe) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-42982: update pbkdf2 example & add another link (GH-30966) (#30968)Miss Islington (bot)2022-03-011-5/+7
| | | | | | | Automerge-Triggered-By: GH:gpshead (cherry picked from commit ace0aa2a2793ba4a2b03e56c4ec375c5470edee8) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Add missing "to" to two tp_flags notes (GH-31624)Miss Islington (bot)2022-03-011-2/+2
| | | | | (cherry picked from commit 422fdb37172c145043d4f1276adad43ff375f0d5) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* bpo-26897: Clarify Popen stdin, stdout, stderr file object docs (GH-30231)Miss Islington (bot)2022-02-251-14/+16
| | | | | (cherry picked from commit dd69f734218ac5d3a551227069ac53ee09b0cd3e) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* Update dict/OrderedDict differences with code equivalents. (GH-31563)Miss Islington (bot)2022-02-251-6/+23
| | | | | (cherry picked from commit 26aba295a9c1bcb0812fe44bd7e68ddd1d8a6828) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) ↵Victor Stinner2022-02-253-17/+20
| | | | | | | | | | | | | | | (GH-31578) Rename the private undocumented float.__set_format__() method to float.__setformat__() to fix a typo introduced in Python 3.7. The method is only used by test_float. The change enables again test_float tests on the float format which were previously skipped because of the typo. The typo was introduced in Python 3.7 by bpo-20185 in commit b5c51d3dd95bbfde533655fb86ac0f96f771ba7b. (cherry picked from commit 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6)
* bpo-46756: Fix authorization check in urllib.request (GH-31353)Miss Islington (bot)2022-02-253-8/+30
| | | | | | | | | Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which allowed to bypass authorization. For example, access to URI "example.org/foobar" was allowed if the user was authorized for URI "example.org/foo". (cherry picked from commit e2e72567a1c94c548868f6ee5329363e6036057a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34429: Noted TemporaryFile behavior on non-Posix/non-Cygwin systems ↵Miss Islington (bot)2022-02-251-0/+3
| | | | | | | (GH-31547) (cherry picked from commit 53ecf9e08d35801807daf74492c090a325f995b7) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
* bpo-46820: Refactor tests for ambiguous end of numerical literal (GH-31494)Miss Islington (bot)2022-02-251-89/+25
| | | | | (cherry picked from commit 98c3bea4d1c7335135e60946d0ec8cd5031fb6c0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)Miss Islington (bot)2022-02-231-2/+2
| | | | | | | Fix PyFrame_GetBack() and PyFrame_GetCode() return type in the documentation. (cherry picked from commit 78859e58e4e016286e648d1dc155e0f6cebfa6ff) Co-authored-by: Victor Stinner <vstinner@python.org>
* Inherit asyncio proactor datagram transport from asyncio.DatagramTransport ↵Miss Islington (bot)2022-02-233-1/+5
| | | | | | | | | (GH-31512) (GH-31514) (cherry picked from commit cff4d5c5d29528299ec1ac5b3b3a6f7735577c01) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* Minor fixes to C API docs (GH-31501)Miss Islington (bot)2022-02-234-24/+28
| | | | | | | | | | | | | | | | | | | * C API docs: move PyErr_SetImportErrorSubclass docs It was in the section about warnings, but it makes more sense to put it with PyErr_SetImportError. * C API docs: document closeit argument to PyRun_AnyFileExFlags It was already documented for PyRun_SimpleFileExFlags. * textual fixes to unicode docs * Move paragraph about tp_dealloc into tp_dealloc section * __aiter__ returns an async iterator, not an awaitable (cherry picked from commit 43cf44ddcce6b225f959ea2a53e4817244ca6054) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)Miss Islington (bot)2022-02-236-62/+133
| | | | | (cherry picked from commit 1935e1cc284942bec8006287c939e295e1a7bf13) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499)Miss Islington (bot)2022-02-223-1/+22
| | | | | | | | Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* [3.10] bpo-20923 : [doc] Explain ConfigParser 'valid section name' and ↵Miss Islington (bot)2022-02-221-0/+3
| | | | | | | | | | .SECTCRE (GH-31413) (GH-31506) (cherry picked from commit bba8008f99d615a02984422a3825082bb5621f5a) Co-authored-by: vidhya <96202776+Vidhyavinu@users.noreply.github.com> Automerge-Triggered-By: GH:iritkatriel
* [3.10] bpo-36557: Updated wording for using/windows (GH-31457) (GH-31504)Miss Islington (bot)2022-02-221-2/+2
| | | | | | | | (cherry picked from commit 9a0d941df4c3e1efb8b3017cd2c2de17e582fd5c) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> Automerge-Triggered-By: GH:iritkatriel
* bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" ↵Miss Islington (bot)2022-02-223-0/+15
| | | | | | | | | | | (GH-31479) (GH-31493) Fix parsing a numeric literal immediately (without spaces) followed by "not in" keywords, like in "1not in x". Now the parser only emits a warning, not a syntax error. (cherry picked from commit 090e5c4b946b28f50fce445916c5d3ec45c8f45f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-46732: fix __bool__ docstring (GH-31301) (GH-31473)Miss Islington (bot)2022-02-212-1/+3
| | | | | | (cherry picked from commit 0a222db2bca63070f429c0e613707da1bdfaf0e0) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31472)Miss Islington (bot)2022-02-213-8/+16
| | | | | | | | | | | | | | | | | | | Curly brackets were never allowed in namespace URIs according to RFC 3986, and so-called namespace-validating XML parsers have the right to reject them a invalid URIs. libexpat >=2.4.5 has become strcter in that regard due to related security issues; with ET.XML instantiating a namespace-aware parser under the hood, this test has no future in CPython. References: - https://datatracker.ietf.org/doc/html/rfc3968 - https://www.w3.org/TR/xml-names/ Also, test_minidom.py: Support Expat >=2.4.5 (cherry picked from commit 2cae93832f46b245847bdc252456ddf7742ef45e) Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
* bpo-46232: Fix parsing of certs with bit string in DN (GH-30351)Miss Islington (bot)2022-02-212-7/+21
| | | | | (cherry picked from commit be095f6c32188bba02079d086ac8639ea37cec3c) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-39327: Close file descriptors as soon as possible in shutil.rmtree ↵Miss Islington (bot)2022-02-213-2/+13
| | | | | | | | | | | (GH-31384) It fixes the "Text File Busy" OSError when using 'rmtree' on a windows-managed filesystem in via the VirtualBox shared folder (and possible other scenarios like a windows-managed network file system). (cherry picked from commit b77158b4da449ec5b8f682816a79d004fd65ed07) Co-authored-by: Lital Natan <litaln@gmail.com>
* [docs] Correct typos in SSLContext.sni_callback (GH-30623) (GH-31421)Miss Islington (bot)2022-02-211-3/+3
| | | | | | Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de> (cherry picked from commit f80a97b492f41afd3c42bb2bd6da7b2828dca215) Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
* [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642) (GH-31030)Erlend Egeberg Aasland2022-02-213-66/+79
| | | | | | | | | | | * [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642). (cherry picked from commit 3eb3b4f270757f66c7fb6dcf5afa416ee1582a4b) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> * Fix test_func_return_too_large_int GH-27613 (bpo 44839) was not backported, so exceptions differ between main (3.11) and older versions.
* bpo-46672: fix `NameError` in `asyncio.gather` if type check fails ↵Miss Islington (bot)2022-02-203-1/+17
| | | | | | | | | | (GH-31187) (GH-31440) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 4ab8167b9c60d1a04b2e3116d0c52db254b68cda) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] replace `self` param with more appropriate `cls` in classmethods ↵Andrew Svetlov2022-02-201-2/+2
| | | | | | | | | (GH-31402) (GH-31446) (cherry picked from commit a3fcca4af1cb418dc802feb75100ecc1a286afaa) Co-authored-by: Josh Smith <cmyuiosu@gmail.com> Co-authored-by: Josh Smith <cmyuiosu@gmail.com>
* [3.10] Raise TypeError if SSLSocket is passed to asyncio transport-based ↵Andrew Svetlov2022-02-203-10/+22
| | | | | | | methods (GH-31442). (GH-31443) (cherry picked from commit 1f9d4c93af380d00bf2e24bc5f5ce662d41504aa) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>