summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (GH-118364) ↵Hugo van Kemenade2024-04-285-10/+10
| | | | (#118365)
* [3.12] gh-117928: Bump the minimum Sphinx version to 6.2.1 (GH-117853) (#118321)Kirill Podoprigora2024-04-261-0/+1
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-118042: Fix error in Telnet.__del__ when __init__() was not called ↵Serhiy Storchaka2024-04-261-0/+2
| | | | (GH-118274)
* [3.12] gh-118221: Always use the default row factory in sqlite3.iterdump() ↵Erlend E. Aasland2024-04-251-0/+2
| | | | | | | | | | | | | | (#118223) (#118270) sqlite3.iterdump() depends on the row factory returning resulting rows as tuples; it will fail with custom row factories like for example a dict factory. With this commit, we explicitly reset the row factory of the cursor used by iterdump(), so we always get predictable results. This does not affect the row factory of the parent connection. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-117894: prevent aclose()/athrow() being re-used after ↵Thomas Grainger2024-04-251-0/+1
| | | | | | StopIteration (GH-117851) (GH-118226) (cherry picked from commit 7d369d471cf2b067c4d795d70b75201c48b46f5b)
* [3.12] gh-118013: Use weakrefs for the cache key in `inspect._shadowed_dict` ↵Miss Islington (bot)2024-04-241-0/+9
| | | | | | (GH-118202) (#118232) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges ↵Petr Viktorin2024-04-241-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-113179) (GH-113186) (GH-118177) * GH-113171: Fix "private" (non-global) IP address ranges (GH-113179) The _private_networks variables, used by various is_private implementations, were missing some ranges and at the same time had overly strict ranges (where there are more specific ranges considered globally reachable by the IANA registries). This patch updates the ranges with what was missing or otherwise incorrect. 100.64.0.0/10 is left alone, for now, as it's been made special in [1]. The _address_exclude_many() call returns 8 networks for IPv4, 121 networks for IPv6. [1] https://github.com/python/cpython/issues/61602 * GH-65056: Improve the IP address' is_global/is_private documentation (GH-113186) It wasn't clear what the semantics of is_global/is_private are and, when one gets to the bottom of it, it's not quite so simple (hence the exceptions listed). (cherry picked from commit 2a4cbf17af19a01d942f9579342f77c39fbd23c4) (cherry picked from commit 40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69f) --------- Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
* [3.12] bpo-40944: Fix IndexError when parse emails with truncated ↵Miss Islington (bot)2024-04-231-0/+1
| | | | | | | | Message-ID, address, routes, etc (GH-20790) (GH-117974) (cherry picked from commit 1aa8bbe62f27b564cf15e2aad591c62744354a4e) Co-authored-by: Ivan Savin <acccko@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-118168: Fix Unpack interaction with builtin aliases (GH-118169) ↵Miss Islington (bot)2024-04-231-0/+4
| | | | | | | (#118178) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-59215: unittest: restore _top_level_dir at end of discovery ↵Miss Islington (bot)2024-04-231-0/+3
| | | | | | | | | | (GH-15242) (GH-117508) * gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242) (cherry picked from commit fc5f68e58ecfbc8c452e1c2f33a2a53d3f2d7ea2) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-116741: Upgrade libexpat to 2.6.2 (GH-117296) (GH-118166)Miss Islington (bot)2024-04-232-10/+11
| | | | | | | | gh-116741: Upgrade libexpat to 2.6.2 (GH-117296) Upgrade libexpat to 2.6.2 (cherry picked from commit c9829eec0883a8991ea4d319d965e123a3cf6c20) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-117995: Don't raise DeprecationWarnings for indexed nameless ↵Miss Islington (bot)2024-04-221-0/+2
| | | | | | | | | | params (GH-118001) (#118142) Filter out '?NNN' placeholders when looking for named params. (cherry picked from commit 550483b7e6c54b2a25d4db0c4ca41bd9c1132f93) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.12] GH-115874: Fix segfault in FutureIter_dealloc (GH-118114)Miss Islington (bot)2024-04-191-0/+1
| | | | | | GH-115874: Fix segfault in FutureIter_dealloc (GH-117741) (cherry picked from commit d8f350309ded3130c43f0d2809dcb8ec13112320) Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
* [3.12] gh-114053: Fix bad interaction of PEP-695, PEP-563 and ↵Alex Waygood2024-04-191-0/+4
| | | | | | ``get_type_hints`` (#118009) (#118104) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-117535: Ignore made up file name "sys" for warnings (#118014)Tian Gao2024-04-191-0/+1
|
* [3.12] gh-116932: Remove redundant NEWS entry (GH-118040) (#118041)Miss Islington (bot)2024-04-181-1/+0
| | | | Co-authored-by: lyc8503 <me@lyc8503.site>
* [3.12] gh-116932: Add note on how to report python documentation theme bugs ↵Miss Islington (bot)2024-04-181-0/+1
| | | | | | | | (GH-117989) (GH-118031) gh-116932: Add note on how to report python documentation theme bugs (GH-117989) (cherry picked from commit 468b9aeb922470c26275ce7dda1e6d570a3323f3) Co-authored-by: lyc8503 <me@lyc8503.site>
* [3.12] gh-115009: Update Windows installer to use SQLite 3.45.3 (GH-117445) ↵Mariusz Felisiak2024-04-172-4/+5
| | | | | (#118008) (cherry picked from commit de0dc68b8263da4e3e69d517f303b9b08b36f142)
* [3.12] gh-80361: Fix TypeError in email.Message.get_payload() (GH-117994) ↵Miss Islington (bot)2024-04-171-0/+2
| | | | | | | | | | (GH-117998) It was raised when the charset is rfc2231 encoded, e.g.: Content-Type: text/plain; charset*=ansi-x3.4-1968''utf-8 (cherry picked from commit deaecb88fa5da68cbffca413c63af95fd99578dd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-115009: Update macOS installer to use SQLite 3.45.3 (GH-117443) ↵Miss Islington (bot)2024-04-171-0/+1
| | | | | | | (#117981) (cherry picked from commit b9b3c455f0293be67a762f653bd22f864d15fe3c) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [3.12] gh-117313: Fix re-folding email messages containing non-standard line ↵Miss Islington (bot)2024-04-171-0/+4
| | | | | | | | | | separators (GH-117369) (GH-117971) Only treat '\n', '\r' and '\r\n' as line separators in re-folding the email messages. Preserve control characters '\v', '\f', '\x1c', '\x1d' and '\x1e' and Unicode line separators '\x85', '\u2028' and '\u2029' as is. (cherry picked from commit aec1dac4efe36a7db51f08385ddcce978814dbe3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-117503: Fix support of non-ASCII user names in ↵Serhiy Storchaka2024-04-171-0/+2
| | | | | | posixpath.expanduser() (GH-117504) (GH-117970) They are now supported in bytes paths as well as in string paths. (cherry picked from commit 51132da0c4dac13500d9bb86b2fdad42091d3fd9)
* [3.12] gh-86650: Fix IndexError when parse emails with invalid Message-ID ↵Miss Islington (bot)2024-04-171-0/+2
| | | | | | | | | | | (GH-117934) (GH-117965) In particularly, one-off addresses generated by Microsoft Outlook: https://learn.microsoft.com/en-us/office/client-developer/outlook/mapi/one-off-addresses (cherry picked from commit f74e51229c83e3265f905dc15283bfe0ec1a659e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: fsc-eriker <72394365+fsc-eriker@users.noreply.github.com>
* [3.12] gh-75171: Fix parsing invalid email address headers starting or ↵Miss Islington (bot)2024-04-171-0/+1
| | | | | | | | | ending with a dot (GH-15600) (GH-117964) (cherry picked from commit 8cc9adbfddc8e37cf7d621b12754eecb0584f5da) Co-authored-by: tsufeki <tsufeki@ymail.com> Co-authored-by: Tim Bell <timothybell@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-112844: Fix xz CPE identifier (GH-117656)Miss Islington (bot)2024-04-161-1/+1
| | | | | (cherry picked from commit d70ee13e575ae4832f2824add64dba77ce5ab7ad) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-117691: Add an appropriate stacklevel for PEP-706 tarfile ↵Miss Islington (bot)2024-04-161-0/+5
| | | | | | | | deprecation warnings (GH-117872) (GH-117930) gh-117691: Add an appropriate stacklevel for PEP-706 tarfile deprecation warnings (GH-117872) (cherry picked from commit cff0a2db00b6379f60fe273a9782f71773d0a4cb) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-77102: site: try utf-8 and locale encoding when reading .pth file (GH-117802)Inada Naoki2024-04-161-0/+3
| | | (cherry picked from commit 6dc661bc9f65e9923eafbcdbf18bcc57eebbf6a4)
* [3.12] Docs: add link roles with Sphinx extlinks (GH-117850) (#117910)Hugo van Kemenade2024-04-1531-68/+63
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-90329: Add _winapi.GetLongPathName and GetShortPathName and use in venv ↵Steve Dower2024-04-151-0/+5
| | | | to reduce warnings (GH-117817)
* [3.12] gh-91565: Replace bugs.python.org links with Devguide/GitHub ones ↵Miss Islington (bot)2024-04-151-0/+1
| | | | | | | | | | | | | (GH-91568) (GH-117890) gh-91565: Replace bugs.python.org links with Devguide/GitHub ones (GH-91568) (cherry picked from commit 3de09cadde788065a4f2d45117e789c9353bbd12) Co-authored-by: Steve (Gadget) Barnes <gadgetsteve@hotmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-117233: Detect support for several hashes at hashlib build time ↵Miss Islington (bot)2024-04-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-117234) (#117767) gh-117233: Detect support for several hashes at hashlib build time (GH-117234) Detect libcrypto BLAKE2, Shake, SHA3, and Truncated-SHA512 support at hashlib build time GH-GH- BLAKE2 While OpenSSL supports both "b" and "s" variants of the BLAKE2 hash function, other cryptographic libraries may lack support for one or both of the variants. This commit modifies `hashlib`'s C code to detect whether or not the linked libcrypto supports each BLAKE2 variant, and elides references to each variant's NID accordingly. In cases where the underlying libcrypto doesn't fully support BLAKE2, CPython's `./configure` script can be given the following flag to use CPython's interned BLAKE2 implementation: `--with-builtin-hashlib-hashes=blake2`. GH-GH- SHA3, Shake, & truncated SHA512. Detect BLAKE2, SHA3, Shake, & truncated SHA512 support in the OpenSSL-ish libcrypto library at build time. This helps allow hashlib's `_hashopenssl` to be used with libraries that do not to support every algorithm that upstream OpenSSL does. Such as AWS-LC & BoringSSL. (cherry picked from commit b8eaad30090b46f115dfed23266305b6546fb364) Co-authored-by: Will Childs-Klein <willck93@gmail.com> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* [3.12] gh-117692: Fix `AttributeError` in `DocTestFinder` on wrapped ↵Miss Islington (bot)2024-04-101-0/+2
| | | | | | | | | `builtin_or_method` (GH-117699) (#117708) * gh-117692: Fix `AttributeError` in `DocTestFinder` on wrapped `builtin_or_method` (GH-117699) (cherry picked from commit 4bb7d121bc0a3fd00a3c72cd915b5dd8fac5616e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-117534: Add checking for input parameter in iso_to_ymd (GH-117543) ↵Miss Islington (bot)2024-04-092-0/+3
| | | | | | | | | | | | | | (#117689) gh-117534: Add checking for input parameter in iso_to_ymd (GH-117543) Moves the validation for invalid years in the C implementation of the `datetime` module into a common location between `fromisoformat` and `fromisocalendar`, which improves the error message and fixes a failed assertion when parsing invalid ISO 8601 years using one of the "ISO weeks" formats. --------- (cherry picked from commit d5f1139c79525b4e7e4e8ad8c3e5fb831bbc3f28) Co-authored-by: Vlad4896 <166005126+Vlad4896@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Python 3.12.3v3.12.3Thomas Wouters2024-04-09106-245/+1101
|
* [3.12] gh-109120: Fix syntax error in handlinh of incorrect star ↵Grigoriev Semyon2024-04-041-0/+2
| | | | | | | expressions… (#117465) gh-109120: Fix syntax error in handlinh of incorrect star expressions (#117444) (cherry picked from commit c97d3af2391e62ef456ef2365d48ab9b8cdbe27b)
* [3.12] gh-117467: Add preserving of mailbox owner on flush (GH-117510) ↵Miss Islington (bot)2024-04-041-0/+2
| | | | | | | | (GH-117537) (cherry picked from commit 3f5bcc86d0764b691087e8412941e947554c93fd) Co-authored-by: Tony Mountifield <tony@mountifield.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-117267: Ensure DirEntry.stat().st_ctime still contains creation time ↵Miss Islington (bot)2024-04-031-0/+5
| | | | | | | during deprecation period (GH-117354) (cherry picked from commit 985917dc8d34e2d2f717f7a981580a8dcf18d53a) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-117110: Fix subclasses of typing.Any with custom constructors ↵Miss Islington (bot)2024-03-291-0/+1
| | | | | | | | (GH-117111) (#117357) gh-117110: Fix subclasses of typing.Any with custom constructors (GH-117111) (cherry picked from commit 8eec7ed714e65d616573b7331780b0aa43c6ed6a) Co-authored-by: 傅立业(Chris Fu) <17433201@qq.com>
* [3.12] gh-117310: Remove extra DECREF on "no ciphers" error path in ↵Miss Islington (bot)2024-03-281-0/+4
| | | | | | | | | | | | | `_ssl._SSLContext` constructor (GH-117309) (GH-117317) gh-117310: Remove extra DECREF on "no ciphers" error path in `_ssl._SSLContext` constructor (GH-117309) Remove extra self DECREF on ssl "no ciphers" error path. This doesn't come up in practice because nobody links against a broken OpenSSL library that provides nothing. (cherry picked from commit 8cb7d7ff86a1a2d41195f01ba4f218941dd7308c) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-117178: Recover lazy loading of self-referential modules ↵Miss Islington (bot)2024-03-281-0/+2
| | | | | | (GH-117179) (#117319) Co-authored-by: Chris Markiewicz <effigies@gmail.com>
* [3.12] gh-99108: Update and check HACL* version information (GH-117295) ↵Miss Islington (bot)2024-03-271-4/+4
| | | | | | | | | (GH-117302) gh-99108: Update and check HACL* version information (GH-117295) (cherry picked from commit 669ef49c7d42f35da6f7ee280102353b9b37f83e) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-66543: Fix mimetype.guess_type() (GH-117217) (GH-117256)Miss Islington (bot)2024-03-261-0/+4
| | | | | | | | | | | | | Fix parsing of the following corner cases: * URLs with only a host name * URLs containing a fragment * URLs containing a query * filenames with only a UNC sharepoint on Windows (cherry picked from commit 9654daf793b534b44a831c80f43505ab9e380f1f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch ↵Victor Stinner2024-03-263-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#117250) * gh-115122: Add --bisect option to regrtest (#115123) * test.bisect_cmd now exit with code 0 on success, and code 1 on failure. Before, it was the opposite. * test.bisect_cmd now runs the test worker process with -X faulthandler. * regrtest RunTests: Add create_python_cmd() and bisect_cmd() methods. (cherry picked from commit 1e5719a663d5b1703ad588dda4fccd763c7d3e99) * gh-115720: Show number of leaks in huntrleaks progress reports (GH-115726) Instead of showing a dot for each iteration, show: - '.' for zero (on negative) leaks - number of leaks for 1-9 - 'X' if there are more leaks This allows more rapid iteration: when bisecting, I don't need to wait for the final report to see if the test still leaks. Also, show the full result if there are any non-zero entries. This shows negative entries, for the unfortunate cases where a reference is created and cleaned up in different runs. Test *failure* is still determined by the existing heuristic. (cherry picked from commit af5f9d682c20c951b90e3c020eeccac386c9bbb0) * gh-83434: Disable XML in regrtest when -R option is used (#117232) (cherry picked from commit d52bdfb19fadd7614a0e5abaf68525fc7300e841) --------- Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203) (GH-117244)Miss Islington (bot)2024-03-261-0/+1
| | | | | | | | | | | | | | | | gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203) This fixes XML unittest fallout from the https://github.com/python/cpython/issues/115398 security fix. When configured using `--with-system-expat` on systems with older pre 2.6.0 versions of libexpat, our unittests were failing. * sax|etree: Simplify Expat version guard where simplifiable Idea by Matěj Cepl * sax|etree: Fix reparse deferral tests for vanilla Expat <2.6.0 This *does not fix* the case of distros with an older version of libexpat with the 2.6.0 feature backported as a security fix. (Ubuntu is a known example of this with its libexpat1 2.5.0-2ubunutu0.1 package) (cherry picked from commit 9f74e86c78853c101a23e938f8e32ea838d8f62e) Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
* [3.12] gh-99108: Refresh HACL*; update modules accordingly; fix namespacing ↵Gregory P. Smith2024-03-262-32/+38
| | | | | | | (GH-117237) (GH-117243) Pulls in a new update from https://github.com/hacl-star/hacl-star and fixes our C "namespacing" done by `Modules/_hacl/refresh.sh`. Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
* [3.12] gh-91227: Ignore ERROR_PORT_UNREACHABLE in proactor recvfrom() ↵Miss Islington (bot)2024-03-251-0/+1
| | | | | | | (GH-32011) (GH-117209) (cherry picked from commit f11d0d8be8af28e1368c3c7c116218cf65ddf93e) Co-authored-by: Erik Soma <stillusingirc@gmail.com>
* [3.12] gh-117084: Fix ZIP file extraction for directory entry names with ↵Serhiy Storchaka2024-03-221-0/+2
| | | | | backslashes on Windows (GH-117129) (GH-117162) (cherry picked from commit 567ab3bd15398c8c7b791f3e376ae3e3c0bbe079)
* [3.12] gh-75988: Fix issues with autospec ignoring wrapped object ↵infohash2024-03-221-0/+1
| | | | | | | | | | | | | | | | | (GH-115223) (#117119) gh-75988: Fix issues with autospec ignoring wrapped object (#115223) * set default return value of functional types as _mock_return_value * added test of wrapping child attributes * added backward compatibility with explicit return * added docs on the order of precedence * added test to check default return_value (cherry picked from commit 735fc2cbbcf875c359021b5b2af7f4c29f4cf66d)
* [3.12] gh-116333: Relax error string text expectations in SSL-related tests ↵Miss Islington (bot)2024-03-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | (GH-116334) (GH-117136) gh-116333: Relax error string text expectations in SSL-related tests (GH-116334) * Relax error string text expectations in SSL-related tests As suggested [here][1], this change relaxes the OpenSSL error string text expectations in a number of tests. This was specifically done in support of more easily building CPython [AWS-LC][2], but because AWS-LC is a fork of [BoringSSL][3], it should increase compatibility with that library as well. In addition to the error string relaxations, we also add some guards around the `tls-unique` channel binding being used with TLSv1.3, as that feature (described in [RFC 6929][4]) is [not defined][5] for TLSv1.3. [1]: https://discuss.python.org/t/support-building-ssl-and-hashlib-modules-against-aws-lc/44505/4 [2]: https://github.com/aws/aws-lc [3]: https://github.com/google/boringssl [4]: https://datatracker.ietf.org/doc/html/rfc5929GH-section-3 [5]: https://datatracker.ietf.org/doc/html/rfc8446GH-appendix-C.5 (cherry picked from commit c85d84166a84a5cb2d724012726bad34229ad24e) Co-authored-by: Will Childs-Klein <willck93@gmail.com>
* [3.12] Remove more stray backticks from NEWS files (GH-115374) (#117118)Hugo van Kemenade2024-03-212-4/+4
| | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>