https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
c7a0fd2 bpo-46820: Refactor tests for ambiguous end of numerical literal (GH-31494) (cherry picked from commit 98c3bea4d1c7335135e60946d0ec8cd5031fb6c0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 25 February 2022, 08:49:55 UTC
b0de629 bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535) Fix PyFrame_GetBack() and PyFrame_GetCode() return type in the documentation. (cherry picked from commit 78859e58e4e016286e648d1dc155e0f6cebfa6ff) Co-authored-by: Victor Stinner <vstinner@python.org> 23 February 2022, 19:12:51 UTC
6717edc Inherit asyncio proactor datagram transport from asyncio.DatagramTransport (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> 23 February 2022, 12:04:49 UTC
28d9353 Minor fixes to C API docs (GH-31501) * 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> 23 February 2022, 04:57:02 UTC
4955a9e bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) (cherry picked from commit 1935e1cc284942bec8006287c939e295e1a7bf13) Co-authored-by: Dong-hee Na <donghee.na@python.org> 23 February 2022, 02:50:38 UTC
d327517 bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499) 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> 22 February 2022, 21:09:35 UTC
a7af34d [3.10] bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .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 22 February 2022, 18:28:34 UTC
d04fb92 [3.10] bpo-36557: Updated wording for using/windows (GH-31457) (GH-31504) (cherry picked from commit 9a0d941df4c3e1efb8b3017cd2c2de17e582fd5c) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> Automerge-Triggered-By: GH:iritkatriel 22 February 2022, 17:57:01 UTC
f20ac2e bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" (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> 22 February 2022, 10:00:50 UTC
c596ecb [3.10] bpo-46732: fix __bool__ docstring (GH-31301) (GH-31473) (cherry picked from commit 0a222db2bca63070f429c0e613707da1bdfaf0e0) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 21 February 2022, 17:18:48 UTC
7da97f6 bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31472) 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> 21 February 2022, 16:16:09 UTC
633d0f9 bpo-46232: Fix parsing of certs with bit string in DN (GH-30351) (cherry picked from commit be095f6c32188bba02079d086ac8639ea37cec3c) Co-authored-by: Christian Heimes <christian@python.org> 21 February 2022, 09:37:26 UTC
95d6271 bpo-39327: Close file descriptors as soon as possible in shutil.rmtree (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> 21 February 2022, 08:07:46 UTC
a2e13ec [docs] Correct typos in SSLContext.sni_callback (GH-30623) (GH-31421) 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> 21 February 2022, 00:17:56 UTC
ba457fe [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642) (GH-31030) * [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. 21 February 2022, 00:13:04 UTC
f1916cd bpo-46672: fix `NameError` in `asyncio.gather` if type check fails (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> 20 February 2022, 15:28:42 UTC
fa621a7 [3.10] replace `self` param with more appropriate `cls` in classmethods (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> 20 February 2022, 13:45:13 UTC
dde0488 [3.10] Raise TypeError if SSLSocket is passed to asyncio transport-based methods (GH-31442). (GH-31443) (cherry picked from commit 1f9d4c93af380d00bf2e24bc5f5ce662d41504aa) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 20 February 2022, 12:45:02 UTC
ea3e042 Improve discussion about how __getattr__ is invoked. (GH-31435) (GH-31437) 20 February 2022, 05:25:57 UTC
75c5dbc Counter doc mentions three methods, but lists four (GH-30706) Was probably caused by the addition of the `total()` method (cherry picked from commit 99331fcf175b03b6b82451ac9aa953b476ab48e0) Co-authored-by: Charles Brunet <charles.brunet@optelgroup.com> 19 February 2022, 02:45:56 UTC
103f3ca bpo-46603: improve coverage of `typing._strip_annotations` (GH-31063) (cherry picked from commit 25c0b9d243b64ccd2eeab483089eaf7e4b4d5834) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 19 February 2022, 02:15:56 UTC
e05e3d2 [3.10] bpo-46784: Add newly exported expat symbols to the namespace. (GH-31397) (GH-31420) The libexpat 2.4.1 upgrade from introduced the following new exported symbols: * `testingAccountingGetCountBytesDirect` * `testingAccountingGetCountBytesIndirect` * `unsignedCharToPrintable` * `XML_SetBillionLaughsAttackProtectionActivationThreshold` * `XML_SetBillionLaughsAttackProtectionMaximumAmplification` We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h) (The newer libexpat upgrade has no new symbols). Automerge-Triggered-By: GH:gpshead (cherry picked from commit 6312c1052c0186b4596fc45c42fd3ade9f8f5911) Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com> Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com> 19 February 2022, 00:53:49 UTC
6eb3477 bpo-46777: Fix incorrect use of directives in asyncio documentation (GH-31388) (cherry picked from commit 2923d87ca258b9d421e8147b12f0d98295ee3f8e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 18 February 2022, 09:30:36 UTC
feb4455 docs: Link `match` statement in tutorial (GH-31396) Add a link to the `match` statement from its section in the tutorial. Automerge-Triggered-By: GH:Mariatta (cherry picked from commit 35f55cc5c690a97853f1b544aac53574ab755b54) Co-authored-by: William Andrea <william.j.andrea@gmail.com> 18 February 2022, 04:15:00 UTC
095ffe7 Fix mistake in barry_as_FLUFL test (GH-31392) Use assertEqual(), not assertTrue(lineno, 2) (cherry picked from commit 5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66) Co-authored-by: Patrick Reader <_@pxeger.com> 18 February 2022, 02:11:34 UTC
cb7551d bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022) (GH-31296) Co-authored-by: Cyril Jouve <jv.cyril@gmail.com> 17 February 2022, 21:58:02 UTC
68e80c4 [3.10] Update html.parser.rst (GH-30678) (GH-31385) This PR for the documentation of the [html.parser](https://docs.python.org/3/library/html.parser.html) module will - fix a terminology mistake (‘start of a tag’ -> ‘start tag of an element’); - mention the parameter names of the `HTMLParser.handle_*` methods where missing. (cherry picked from commit 2945f5a7c51200bfc5c493ccb626fc414e1385b1) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Automerge-Triggered-By: GH:merwok 17 February 2022, 12:41:07 UTC
a481be0 [3.10] Become a CODEOWNER for typing (GH-31374) (GH-31382) (cherry picked from commit 6f1efd19a70839d480e4b1fcd9fecd3a8725824b) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Automerge-Triggered-By: GH:JelleZijlstra 17 February 2022, 04:09:06 UTC
a17d59a [3.10] bpo-46333: Honor `module` parameter in ForwardRef (GH-30536) (GH-31379) The `module` parameter carries semantic information about the forward ref. Forward refs are different if they refer to different module even if they have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods. Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 6e7b813195f9bd6a2a15c1f00ef2c0180f6c751a) Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com> Automerge-Triggered-By: GH:JelleZijlstra 17 February 2022, 03:53:03 UTC
d4e4ef1 [3.10] bpo-46724: Use `JUMP_ABSOLUTE` for all backward jumps. (GH-31326) (GH-31354) 16 February 2022, 11:26:02 UTC
3d407b9 bpo-46762: Fix an assert failure in f-strings where > or < is the last character if the f-string is missing a trailing right brace. (GH-31365) (cherry picked from commit ffd9f8ff84ed53c956b16d027f7d2926ea631051) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> 16 February 2022, 11:16:05 UTC
5b63ba3 Update the OMG link (GH-30383) (cherry picked from commit 04215a427232e55efdc1adcda50a15197f518ca9) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com> Co-authored-by: David Gilbertson <gilbertson.david@gmail.com> 15 February 2022, 17:17:00 UTC
72c4646 bpo-46741: Update `asyncio.protocols.BufferedProtocol` docstring (GH-31327) (GH-31362) The docstring for `BufferedProtocol` states that the class is still an "experimental API", but it has been considered stable since 3.8. (cherry picked from commit 1d81fdc4c004511c25f74db0e04ddbbb8a04ce6d) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 15 February 2022, 17:14:09 UTC
ac55cea [3.10] bpo-46728: fix docstring of combinations_with_replacement for consistency (GH-31293) (GH-31350) 15 February 2022, 10:24:04 UTC
b271953 bpo-46436: Fix command-line option -d/--directory in module http.server (GH-30701) Fix command-line option -d/--directory in http.server main function that was ignored when combined with --cgi. Automerge-Triggered-By: GH:merwok (cherry picked from commit 2d080347d74078a55c47715d232d1ab8dc8cd603) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Co-authored-by: Géry Ogam <gery.ogam@gmail.com> 14 February 2022, 20:12:30 UTC
543242a Fix the signature of multiprocessing.set_executable (GH-31276) Automerge-Triggered-By: GH:merwok (cherry picked from commit 4f9386661d51b78348395e78710f3bfbee9fd1de) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Co-authored-by: Géry Ogam <gery.ogam@gmail.com> 14 February 2022, 20:11:02 UTC
a414cb3 Update __main__.rst (GH-30896) The reference to `venv` appears in the paragraph below, instead of above. Fixed the documentation. (cherry picked from commit 4e4e7c2684b80350e82d82e4feeda5de24d362b9) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com> Co-authored-by: David Gilbertson <gilbertson.david@gmail.com> 14 February 2022, 20:10:34 UTC
c5a987b doc: use colon for all color's rangs (GH-28998) (#31336) (cherry picked from commit 6b9f27dd0b5da53b1fd648494879d857572bec80) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com> Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com> 14 February 2022, 20:10:05 UTC
8282532 bpo-38619: Update the documentation for UUID.hex (GH-29830) Explicitly state that it is lowercase. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 5d53cf30f9cb3758849e859db5d4602cb7c521f7) Co-authored-by: 180909 <wjh180909@gmail.com> 14 February 2022, 19:20:48 UTC
5574cac Fix minor grammar error (GH-31325) "an" followed by consonant should be "a" (cherry picked from commit 0d29e7a06f98e8312b699d4531d27b76add1249f) Co-authored-by: Scott Noyes <snoyes@gmail.com> 14 February 2022, 19:09:57 UTC
a606c6a Fix a typo in Doc/faq/programming.rst (GH-31243) is not longer used -> is no longer used (cherry picked from commit ff5a16759744ee0a43c5d1c209f47e256abc7718) Co-authored-by: Cooper Lees <me@cooperlees.com> 14 February 2022, 19:08:39 UTC
841c77d [3.10] bpo-46747: Add missing key parameters in the bisect docs (GH-31323) (GH-31329) Added *key* parameter to `bisect.bisect()` and `bisect.insort()` in bisect module docs. (cherry picked from commit 96084f4256d2d523b0a4d7d900322b032326e3ed) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 14 February 2022, 16:51:16 UTC
6a7dd3f Corrections to format precision description. (GH-31291) * `precision` field is a decimal integer * clarify that stated limitations are on presentation type rather than input value type. Especially misleading is "precision is not allowed for integer values", since integer value input to a format like `.1f` is fine. * regarding max field size, replace "non-number" with "string", which is the only non-numeric presentation type Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit 1d6ce67c29aa2166ef326952cb605b908fb4f987) Co-authored-by: John Belmonte <john@neggie.net> 14 February 2022, 00:21:32 UTC
44666c3 bpo-45447: Add entry to What's new 3.10 (GH-31304) (cherry picked from commit 2d98433549be358d1c192e30e51b8d345d618cc7) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 13 February 2022, 06:31:03 UTC
5698e0b bpo-45447: Add entry to What's new 3.9 (GH-31305) (cherry picked from commit cef91ca80c41749824eca1d4b2c99731e3d5f64c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 13 February 2022, 06:30:25 UTC
9fabcfb bpo-45447: Add syntax highlighting for `.pyi` files in IDLE (GH-28950) Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues. Add util.py to contain objects that are used in multiple idlelib modules and have no dependencies on any of them. Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 50cf4991c49e19f917305dd7b9c71085c11edddb) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 13 February 2022, 00:52:37 UTC
b7a65c9 bpo-45948: Remove constructor discrepancy in C version of ElementTree.XMLParser (GH-31152) Both implementations accept target=None now. (cherry picked from commit 168fd6453b5de15236116f9261d64601d92571ac) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> 12 February 2022, 08:50:11 UTC
f2fbfbe bpo-46483: [doc] pathlib classes no longer support parameterized generics (GH-31281) Remove pathlib classes from the list in stdtypes.rst of classes that can be parameterized at runtime. (cherry picked from commit e0bc8ee945af96f9395659bbe3cc30b082e7a361) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 11 February 2022, 21:04:01 UTC
1f5fe99 bpo-46615: Don't crash when set operations mutate the sets (GH-31120) Ensure strong references are acquired whenever using `set_next()`. Added randomized test cases for `__eq__` methods that sometimes mutate sets when called. (cherry picked from commit 4a66615ba736f84eadf9456bfd5d32a94cccf117) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> 11 February 2022, 20:44:17 UTC
8b8673f [3.10] bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696) (GH-31262) (cherry picked from commit 0ef08530124c5ca13a9394f4ac18bee8e6c66409) 11 February 2022, 11:25:25 UTC
1124ab6 bpo-46246: add missing __slots__ to importlib.metadata.DeprecatedList (GH-30452) Confirmed with @jaraco that this indeed needs a fix. A question that came up while I was digging into the code: I think `SelectableGroups` could similarly use `__slots__ = ()`, since its purpose seems only for convenience around `dict`, not to have attributes of its own. Automerge-Triggered-By: GH:jaraco (cherry picked from commit dd76b3f7d332dd6eced5cbc2ad2adfc397700b3d) Co-authored-by: Arie Bovenberg <a.c.bovenberg@gmail.com> 11 February 2022, 01:18:23 UTC
14284b0 [3.10] Allow the parser to avoid nested processing of invalid rules (GH-31252). (GH-31257) (cherry picked from commit 390459de6db1e68b79c0897cc88c0d562693ec5c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> 10 February 2022, 14:38:31 UTC
9f51454 [3.10] Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253) (GH-31255) (cherry picked from commit 012e77eb5c3ba3d411f5967a7f368ebdb42ab88c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 10 February 2022, 13:27:15 UTC
9b23f8f [3.10] bpo-46707: Avoid potential exponential backtracking in some syntax errors (GH-31241). (GH-31242) (cherry picked from commit b71dc71905ab674ccaa4a56230d17a28f61c325c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> 10 February 2022, 03:54:47 UTC
7445949 bpo-43532: add version added to KW_ONLY (GH-31235) Minor missing version note mentioned at the end of (and affected me independently before reading that note). Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit 5a3f97291eea96037cceee097ebc00bba44bc9ed) Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com> 09 February 2022, 21:18:52 UTC
42f87d4 bpo-45863: tarfile: don't zero out header fields unnecessarily (GH-29693) Numeric fields of type float, notably mtime, can't be represented exactly in the ustar header, so the pax header is used. But it is helpful to set them to the nearest int (i.e. second rather than nanosecond precision mtimes) in the ustar header as well, for the benefit of unarchivers that don't understand the pax header. Add test for tarfile.TarInfo.create_pax_header to confirm correct behaviour. (cherry picked from commit bf2d44ffb06e8f49aacc6b1c140a6717df5cf897) Co-authored-by: Joshua Root <jmr@macports.org> 09 February 2022, 17:31:12 UTC
d29bbc2 bpo-46685: cover `TypeError` of `ForwardRef(1)` in `test_typing` (GH-31223) (cherry picked from commit d2d1d49eaccaa83eb8873ba15f2fc9562143bc56) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 09 February 2022, 15:12:17 UTC
c2735b7 bpo-46678: Fix Invalid cross device link in Lib/test/support/import_helper.py (GH-31204) (GH-31207) In `Lib/test/support/import_helper.py`, the function `make_legacy_pyc` makes a call to `os.rename` which can fail when the source and target live on different devices. This happens (for example) when `PYTHONPYCACHEPREFIX` is set to a directory anywhere on disk, while a ramdisk is mounted on `/tmp` (the latter of which is the default on various Linux distros). Replacing `os.rename` with `shutil.move` fixes this. Automerge-Triggered-By: GH:brettcannon (cherry picked from commit da576e08296490e94924421af71001bcfbccb317) Co-authored-by: Jason Wilkes <notarealdeveloper@gmail.com> 08 February 2022, 21:04:05 UTC
5b58db7 [3.10] bpo-46521: Fix codeop to use a new partial-input mode of the parser (GH-31010). (GH-31213) (cherry picked from commit 69e10976b2e7682c6d57f4272932ebc19f8e8859) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> 08 February 2022, 12:25:15 UTC
cbdcae5 [3.10] bpo-46676: Make ParamSpec args and kwargs equal to themselves (GH-31203) (GH-31210) (cherry picked from commit c8b62bbe46e20d4b6dd556f2fa85960d1269aa45) Co-authored-by: Gregory Beauregard <greg@greg.red> 08 February 2022, 08:41:13 UTC
9539400 [3.10] bpo-46648: Rewrite test_urllib2.test_issue16464() with a local HTTP server (GH-31186) (GH-31189) Re-enable test_issue16464() of test_urllib2, move it to urllib2_localnet and use the local HTTP server rather than an external HTTP server. (cherry picked from commit 8e98175a03fe03d62822d96007a74e5273013764) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 07 February 2022, 20:15:22 UTC
9c45390 bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130) (cherry picked from commit 3a5afc14e16370c1f4f72d43cb553298ad9a1fa4) Co-authored-by: Steve Dower <steve.dower@python.org> 07 February 2022, 17:31:32 UTC
e2eeffe [3.10] bpo-46655: allow stringized TypeAlias with get_type_hints (GH-31156). (#31175) (cherry picked from commit 77b025be4a4cd5a3bfc1b1af560cc57e8e956c98) Co-authored-by: Gregory Beauregard <greg@greg.red> 07 February 2022, 16:21:56 UTC
c1ff4cb [3.10] bpo-46611: add coverage to instance and class checks in `typing.py` (GH-31078) (GH-31182) (cherry picked from commit 067c03bf40d13393209f0138fa9c4d5980c4ff8a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 07 February 2022, 08:48:20 UTC
3ceff99 bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153) va_end() must be called before returning. (cherry picked from commit 59e004af63742361b67d1e1ae70229ff0db1059d) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 07 February 2022, 08:05:29 UTC
cb78994 Add more tests for variable substitution in generics (GH-31170) (cherry picked from commit 3da5526136034188185d6a3fdba71e2b56577ee2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 06 February 2022, 20:15:29 UTC
c88407c bpo-46648: Skip test_urllib2.test_issue16464() (GH-31161) POST requests to http://www.example.com/ fail randomly. (cherry picked from commit 1578de2fcd685c71f9c84e09bac32901dea192c1) Co-authored-by: Victor Stinner <vstinner@python.org> 06 February 2022, 14:33:01 UTC
5603db4 [3.10] bpo-46609: Update asyncio-task coroutine doc (GH-31132) @coroutine in removed in 3.11, not 3.10. 04 February 2022, 19:59:23 UTC
7b5b23c bpo-46629: Update classicAppCompat.sccd for new signing certificate (GH-31111) (cherry picked from commit 9b4e3d94a5746af093392ed8e977b26fcc1bfd11) Co-authored-by: Steve Dower <steve.dower@python.org> 04 February 2022, 16:34:12 UTC
34895f6 Optimize images by IMGbot (GH-21348) Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> (cherry picked from commit ba650af7d660084e08859dd1ee1917cccee24e88) 04 February 2022, 07:31:21 UTC
9ce0b00 bpo-46588: fix typo in test_calltip.py (GH-31119) (cherry picked from commit 222865daabfa7a8b12ca9a5e9c23b9ce217448f1) Co-authored-by: Caio Agiani <agianicaio@gmail.com> 04 February 2022, 05:11:15 UTC
91e8889 bpo-14916: use specified tokenizer fd for file input (GH-31006) @pablogsal, sorry i failed to rebase to main, so i recreated https://github.com/python/cpython/pull/22190GH-issuecomment-1024633392 > PyRun_InteractiveOne\*() functions allow to explicitily set fd instead of stdin. but stdin was hardcoded in readline call. > This patch does not fix target file for prompt unlike original bpo one : prompt fd is unrelated to tokenizer source which could be read only. It is more of a bugfix regarding the docs : actual documentation say "prompt the user" so one would expect prompt to go on stdout not a file for both PyRun_InteractiveOne\*() and PyRun_InteractiveLoop\*(). Automerge-Triggered-By: GH:pablogsal (cherry picked from commit 89b13042fcfc95bae21a49806a205ef62f1cdd73) Co-authored-by: Paul m. p. P <mail.peny@free.fr> 03 February 2022, 23:32:22 UTC
4f76b36 bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112) On Windows, one had to Tab or click on the entry box to get a cursor and be able to enter anything. (cherry picked from commit d1df81a730499cc6286d02afa6028a1e9c22bbbf) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 03 February 2022, 22:34:03 UTC
63523e7 bpo-45975: IDLE - Remove extraneous parens (GH-31107) mistakenly included in 3 files in previous PR and backported both to 3.10 and 3.9. (cherry picked from commit 916d0d822c79933f4c420f7a36f16f3eb788646b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 03 February 2022, 20:44:11 UTC
ff6948b bpo-45773: Remove invalid peephole optimizations (GH-31066) (cherry picked from commit e0433c1e70254d4d0357a9e14596929a04bdf769) Co-authored-by: Brandt Bucher <brandt@python.org> 03 February 2022, 15:54:51 UTC
a77de58 Add recipe for subslices (GH-31095) 03 February 2022, 08:12:08 UTC
f5ebec4 [3.10] bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (GH-31015) (GH-31089) Disable compiler optimization within test_peg_generator. This speed up test_peg_generator by always disabling compiler optimizations by using -O0 or equivalent when the test is building its own C extensions. A build not using --with-pydebug in order to speed up test execution winds up with this test taking a very long time as it would do repeated compilation of parser C code using the same optimization flags as CPython was built with. This speeds the test up 6-8x on gps-raspbian. Also incorporate's GH-31017's win32 conditional and flags. Co-authored-by: Kumar Aditya kumaraditya303. (cherry picked from commit 164a017e13ee96bd1ea1ae79f5ac9e25fe83994e) Co-authored-by: Gregory P. Smith <greg@krypto.org> 03 February 2022, 04:02:59 UTC
2ddc278 bpo-45975: Use walrus operator for some idlelib while loops (GH-31083) (cherry picked from commit 51a95be1d035a717ab29e98056b8831a98e61125) Co-authored-by: Nick Drozd <nicholasdrozd@gmail.com> 03 February 2022, 02:28:52 UTC
5765eaa bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086) (cherry picked from commit 89a0a90c2e0e685bc70206fc45e4413c4f4411ed) Co-authored-by: Steve Dower <steve.dower@python.org> 02 February 2022, 20:25:37 UTC
ba4d79a [3.10] bpo-45173: Note configparser deprecations will be removed in 3.12 (GH-31084) Cherry-pick of [`b06e9ba`](https://github.com/python/cpython/pull/30952/commits/b06e9ba398fafe39028c3b2dc3943266a16b1416) from https://github.com/python/cpython/pull/30952. 02 February 2022, 18:41:30 UTC
e480def Fix minor details in the Counter docs (GH-31029) (GH-31072) 02 February 2022, 05:28:07 UTC
85b421f bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069) test_ftplib now silently ignores socket errors to prevent logging unhandled threading exceptions. (cherry picked from commit 0611eafc709cbe8a2a0bdde082d25df0c5034de7) Co-authored-by: Victor Stinner <vstinner@python.org> 02 February 2022, 02:12:27 UTC
7dee93c bpo-46591: Make About IDLE doc link label clickable (GH-30251) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 53c78080573b3bae4c4e782b9f47dce48aac9688) Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com> 02 February 2022, 01:47:51 UTC
e5e1441 bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol transports (GH-30958) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 64568acbd88a88d54ac9b8215447f88280448dd5) Co-authored-by: Emiya <importz750@gmail.com> 01 February 2022, 19:30:03 UTC
519eb6a bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921) (GH-31057) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 01 February 2022, 16:29:02 UTC
8765b01 [3.10] bpo-46584: remove check for `py2.3` from `ctypes/test_python_api` (GH-31024) (GH-31054) (cherry picked from commit 913e340a323c7e61ae6e4acbb1312b4342657bec) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 01 February 2022, 14:42:37 UTC
1dcd772 bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014) (cherry picked from commit 108e66b6d23efd0fc2966163ead9434b328c5f17) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> 01 February 2022, 11:20:07 UTC
6a188d8 bpo-46482: add a test for `typing.Annotation.__new__` (GH-30821) (cherry picked from commit 4c0612ad00ba45dbea2a86f7db6d21546cf243f8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 01 February 2022, 10:27:36 UTC
3479451 bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035) * bpo-46542: test_lib2to3 uses support.infinite_recursion() Fix a Python crash in test_lib2to3 when using Python built in debug mode: limit the recursion limit. The test_all_project_files() test of test_lib2to3 now uses the test.support.infinite_recursion() context manager when processing the infinite_recursion.py file to prevent a crash when Python is built in debug mode. The two test_all_project_files() tests now use subTest() and log the refactored/parsed filename (if test_lib2to3 is run in verbose mode). * Update Lib/lib2to3/tests/data/infinite_recursion.py Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit ee0ac328d38a86f7907598c94cb88a97635b32f8) Co-authored-by: Victor Stinner <vstinner@python.org> 31 January 2022, 20:03:40 UTC
a5451c9 bpo-26552: Fixed case where failing `asyncio.ensure_future` did not close the coroutine (#30288) (#31003) 29 January 2022, 06:57:18 UTC
315a60a bpo-46560: Fix a typo in `typing.ParamSpec's` doc string (GH-30995) (cherry picked from commit ffa505b580464d9d90c29e69bd4db8c52275280a) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 28 January 2022, 18:36:16 UTC
4d191fc bpo-45925: Update Windows installer to SQLite 3.37.2 (GH-30485) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 28 January 2022, 17:13:22 UTC
95b70e2 bpo-46530: add `"thread_time"` to `test_time.test_get_clock_info` (GH-30913) (cherry picked from commit c27a33132be101e246ae2584f1826477357138d6) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 28 January 2022, 16:56:50 UTC
20f5313 bpo-46542: test_json uses support.infinite_recursion() (GH-30972) Fix test_json tests checking for RecursionError: modify these tests to use support.infinite_recursion(). (cherry picked from commit e7a6285f1be18992191599792524d3aa6aedfa55) Co-authored-by: Victor Stinner <vstinner@python.org> 28 January 2022, 00:57:07 UTC
a8912a0 bpo-29844: Remove obsolete paragraph from Tools/msi/README.txt (GH-29141) (cherry picked from commit 098a33f6a60ca2df88e03024ac9d8da507cfa5c8) 27 January 2022, 16:59:20 UTC
bfcb414 bpo-46539: Pass status of special typeforms to forward references (GH-30926) Previously this didn't matter because there weren't any valid code paths that could trigger a type check with a special form, but after the bug fix for `Annotated` wrapping special forms it's now possible to annotate something like `Annotated['ClassVar[int]', (3, 4)]`. This change would also be needed for proposed future changes, such as allowing `ClassVar` and `Final` to nest each other in dataclasses. (cherry picked from commit ced50051bb752a7c1e616f4b0c001f37f0354f32) Co-authored-by: Gregory Beauregard <greg@greg.red> 27 January 2022, 16:48:08 UTC
486a4b3 bpo-44734: Fix floating point precision in test_turtle (GH-30910) (cherry picked from commit aa78287bc6d1c4fc07ee134642eb72db67b771a0) Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com> 27 January 2022, 14:21:15 UTC
5c39e47 [3.10] bpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_cache (GH-29384) (GH-30922) Consider the following directory structure: . └── PATH1 └── namespace └── sub1 └── __init__.py And both PATH1 and PATH2 in sys path: $ PYTHONPATH=PATH1:PATH2 python3.11 >>> import namespace >>> import namespace.sub1 >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> ... While this interpreter still runs, PATH2/namespace/sub2 is created: . ├── PATH1 │ └── namespace │ └── sub1 │ └── __init__.py └── PATH2 └── namespace └── sub2 └── __init__.py The newly created module cannot be imported: >>> ... >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> import namespace.sub2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'namespace.sub2' Calling importlib.invalidate_caches() now newly allows to import it: >>> import importlib >>> importlib.invalidate_caches() >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> import namespace.sub2 >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace', '.../PATH2/namespace']) This was not previously possible. 27 January 2022, 14:00:23 UTC
89db090 bpo-44791: Fix substitution of ParamSpec in Concatenate with different parameter expressions (GH-27518) * Substitution with a list of types returns now a tuple of types. * Substitution with Concatenate returns now a Concatenate with concatenated lists of arguments. * Substitution with Ellipsis is not supported. (cherry picked from commit ecfacc362dd7fef7715dcd94f2e2ca6c622ef115) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 27 January 2022, 13:01:24 UTC
2572c67 [3.10] bpo-23556: [doc] Fix inaccuracy in documentation for raise without args. Improve tests for context in nested except handlers. (GH-29236) (GH-30953) (cherry picked from commit 08c0ed2d9c0d01ad1a5adc0787bc75e4e90cbb85) Co-authored-by: Kinshuk Dua <kinshukdua@gmail.com> Automerge-Triggered-By: GH:iritkatriel 27 January 2022, 10:51:06 UTC
back to top