b861ba4 | Thomas Wouters | 04 April 2023, 15:51:44 UTC | Python 3.12.0a7 | 04 April 2023, 15:52:42 UTC |
89e6a34 | T. Wouters | 04 April 2023, 14:51:30 UTC | Fix a compiler warning in _xxsubinterpretermodule.c (#103245) Fix a (correct) warning about potential uses of uninitialized memory in _xxsubinterpreter. Unlike newly allocated PyObject structs or global structs, stack-allocated structs are not initialised, and a few places in the code expect the _sharedexception struct data to be either NULL or initialised. | 04 April 2023, 14:51:30 UTC |
c00dcf0 | Erlend E. Aasland | 04 April 2023, 10:08:54 UTC | gh-103092: Isolate `_pickle` module (#102982) Co-authored-by: Mohamed Koubaa <koubaa.m@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 04 April 2023, 10:08:54 UTC |
810d365 | Ethan Furman | 04 April 2023, 00:47:40 UTC | gh-103056: [Enum] use staticmethod decorator for _gnv_ (GH-103231) _gnv_ --> _generate_next_value_ | 04 April 2023, 00:47:40 UTC |
c71756f | Brett Cannon | 03 April 2023, 23:47:48 UTC | Specify more settings for the C extension of VS Code for dev containers (GH-103229) Should help with auto-complete. | 03 April 2023, 23:47:48 UTC |
02f9920 | David Benjamin | 03 April 2023, 22:44:00 UTC | gh-100062: Remove error code tables from _ssl and err_names_to_codes (GH-100063) Prior to https://github.com/python/cpython/pull/25300, the make_ssl_data.py script used various tables, exposed in _ssl, to update the error list. After that PR, this is no longer used. Moreover, the err_names_to_codes map isn't used at all. Clean those up. This gets them out of the way if, in the future, OpenSSL provides an API to do what the code here is doing directly. (https://github.com/openssl/openssl/issues/19848) | 03 April 2023, 22:44:00 UTC |
5ffc1e5 | Ethan Furman | 03 April 2023, 21:57:42 UTC | gh-98298, gh-74730: [Enum] update docs (GH-103163) fix FlagBoundary statements add warning about reloading modules and enum identity | 03 April 2023, 21:57:42 UTC |
d3a7732 | Sadra Barikbin | 03 April 2023, 21:51:43 UTC | gh-103215: Remove redundant if stmt from `enum.EnumType._find_data_type_` (GH-103222) | 03 April 2023, 21:51:43 UTC |
24facd6 | Hugo van Kemenade | 03 April 2023, 18:59:47 UTC | gh-101100: Use list of 'dirty' docs, with warnings, instead of a clean list (#103191) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | 03 April 2023, 18:59:47 UTC |
11c3020 | Barney Gale | 03 April 2023, 18:57:11 UTC | GH-76846, GH-85281: Call `__new__()` and `__init__()` on pathlib subclasses (GH-102789) Fix an issue where `__new__()` and `__init__()` were not called on subclasses of `pathlib.PurePath` and `Path` in some circumstances. Paths are now normalized on-demand. This speeds up path construction, `p.joinpath(q)`, and `p / q`. Co-authored-by: Steve Dower <steve.dower@microsoft.com> | 03 April 2023, 18:57:11 UTC |
2a72125 | Nikita Sobolev | 03 April 2023, 15:35:04 UTC | gh-101865: Deprecate `co_lnotab` from code objects as per PEP 626 (#101866) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> | 03 April 2023, 15:35:04 UTC |
e6f7d35 | Kumar Aditya | 03 April 2023, 12:44:32 UTC | GH-103182: use vectorcall in `_asyncio` instead of variadic calling APIs (#103175) | 03 April 2023, 12:44:32 UTC |
385b5d6 | Shantanu | 02 April 2023, 22:47:31 UTC | gh-102038: Skip a sometimes unnecessary stat in site.py (#102039) | 02 April 2023, 22:47:31 UTC |
55decb7 | Nouran Ali | 02 April 2023, 22:44:16 UTC | gh-102994: Profile docs has typo in example (#103074) | 02 April 2023, 22:44:16 UTC |
32937d6 | Charlie Zhao | 02 April 2023, 22:18:25 UTC | gh-103109: Document ignore_warnings() test support helper (#103110) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 02 April 2023, 22:18:25 UTC |
6883007 | Giampaolo Rodola | 02 April 2023, 22:12:51 UTC | bpo-4080: unittest durations (#12271) | 02 April 2023, 22:12:51 UTC |
a0305c5 | Ikko Eltociear Ashimine | 02 April 2023, 15:25:46 UTC | fix typo in _ssl.c (GH-103192) seperated -> separated Automerge-Triggered-By: GH:AlexWaygood | 02 April 2023, 15:25:46 UTC |
6d59c9e | Alex Waygood | 02 April 2023, 13:22:19 UTC | gh-102433: Use `inspect.getattr_static` in `typing._ProtocolMeta.__instancecheck__` (#103034) | 02 April 2023, 13:22:19 UTC |
d828b35 | Partha P. Mukherjee | 02 April 2023, 05:05:50 UTC | GH-102456: Fix docstring and getopt options for base64 (gh-102457) | 02 April 2023, 05:05:50 UTC |
06249ec | Irit Katriel | 01 April 2023, 20:30:23 UTC | gh-102192: deprecate _PyErr_ChainExceptions (#102935) | 01 April 2023, 20:30:23 UTC |
848bdbe | Irit Katriel | 01 April 2023, 05:01:48 UTC | gh-102192: use PyErr_SetHandledException instead of the legacy PyErr_SetExcInfo (#103157) | 01 April 2023, 05:01:48 UTC |
d97aef8 | Brett Cannon | 31 March 2023, 21:23:55 UTC | Add missing variables to `bytecodes.c` (GH-103153) The code works without this change, but it does cause C tooling to complain less about undeclared variables. | 31 March 2023, 21:23:55 UTC |
361a3ea | Alex Waygood | 31 March 2023, 20:54:50 UTC | gh-74690: Micro-optimise `typing._get_protocol_attrs` (#103152) Improve performance of `isinstance()` checks against runtime-checkable protocols | 31 March 2023, 20:54:50 UTC |
2a4d8c0 | Ethan Furman | 31 March 2023, 20:52:31 UTC | gh-102549: [Enum] fail enum creation when data type raises in __init__ (GH-103149) | 31 March 2023, 20:52:31 UTC |
dfc4c95 | Eric Snow | 31 March 2023, 18:18:33 UTC | gh-101659: Clean Up the General Import Tests for Subinterpreters (gh-103151) This involves 3 changes: some general cleanup, checks to match the kind of module, and switch from testing against sys to _imp. This is a precursor to gh-103150, though the changes are meant to stand on their own. | 31 March 2023, 18:18:33 UTC |
dde0284 | Eric Snow | 31 March 2023, 18:09:10 UTC | gh-100227: Fix Cleanup of the Extensions Cache (gh-103150) Decref the key in the right interpreter in _extensions_cache_set(). This is a follow-up to gh-103084. I found the bug while working on gh-101660. | 31 March 2023, 18:09:10 UTC |
9048d73 | Alex Waygood | 31 March 2023, 17:37:24 UTC | gh-74690: typing: Don't unnecessarily call `_get_protocol_attrs` twice in `_ProtocolMeta.__instancecheck__` (#103141) Speed up `isinstance()` calls against runtime-checkable protocols | 31 March 2023, 17:37:24 UTC |
80163e1 | Irit Katriel | 31 March 2023, 17:17:59 UTC | gh-87092: move CFG related code from compile.c to flowgraph.c (#103021) | 31 March 2023, 17:17:59 UTC |
b0422e1 | James De Bias | 31 March 2023, 15:02:47 UTC | gh-102871: Remove obsolete browsers from webbrowser (#102872) | 31 March 2023, 15:02:47 UTC |
048d624 | Furkan Onder | 31 March 2023, 13:54:17 UTC | GH-84783: Mention Author for GH-101264 (make slices hashable) (#103146) Will Bradshaw contributed original patch on bpo-40603. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | 31 March 2023, 13:54:17 UTC |
f6405a4 | Petr Viktorin | 31 March 2023, 12:40:38 UTC | Quote literal tokens in standard format specifier grammar (GH-102902) Reported by Damian Dureck: https://mail.python.org/archives/list/docs@python.org/thread/UZTWBJIXC3MBKTHXVTIBPGDPKBNWZ5LN/ | 31 March 2023, 12:40:38 UTC |
20c0f19 | Hugo van Kemenade | 31 March 2023, 10:48:46 UTC | gh-101100: Expand list of clean docs (GH-103135) Follow on from https://github.com/python/cpython/pull/103116. Expand list of clean docs files from 3 to 181. These files have no Sphinx warnings, and their presence in this list means that any new warnings introduced will fail the build. The list was created by subtracting the list of files with warnings from a list of all files. I tested with all of those, but found that `touch`ing two clean files (https://github.com/python/cpython/blob/main/Doc/includes/wasm-notavail.rst and https://github.com/python/cpython/blob/main/Doc/whatsnew/changelog.rst) caused a cascade effect and resulted in a number of dirty files being rebuilt too, and failing the build. So those two have been omitted. Automerge-Triggered-By: GH:hugovk | 31 March 2023, 10:48:46 UTC |
44bd3fe | Irit Katriel | 31 March 2023, 10:23:02 UTC | gh-102799: use exception instance instead of sys.exc_info() (#102885) | 31 March 2023, 10:23:02 UTC |
c1e71ce | gaogaotiantian | 30 March 2023, 22:51:36 UTC | Minor docs improvements fix for `codeop` (#103123) | 30 March 2023, 22:51:36 UTC |
01a49d1 | Missoupro | 30 March 2023, 20:49:07 UTC | gh-102110: Add all tools description missed (GH-102625) Added missing descriptions of some tools. Automerge-Triggered-By: GH:hugovk | 30 March 2023, 20:49:07 UTC |
ecc5441 | Brian Haley | 30 March 2023, 18:40:58 UTC | Add IPv6 into to the docstring for socket.getsockname (#102961) Signed-off-by: Brian Haley <haleyb.dev@gmail.com> | 30 March 2023, 18:40:58 UTC |
f192a55 | Hugo van Kemenade | 30 March 2023, 18:03:50 UTC | gh-101100: Fix Sphinx warning in gc.rst and refactor docs clean list (#103116) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 30 March 2023, 18:03:50 UTC |
21e9de3 | Jeong, YunWon | 30 March 2023, 16:23:43 UTC | gh-103085: Fix python locale.getencoding not to emit deprecation warning (gh-103086) | 30 March 2023, 16:23:43 UTC |
fda95aa | Shantanu | 30 March 2023, 08:32:09 UTC | gh-103099: Link mypy docs from typing.rst (#103100) | 30 March 2023, 08:32:09 UTC |
dcd6f22 | Eric Snow | 29 March 2023, 23:15:43 UTC | gh-100227: Make the Global PyModuleDef Cache Safe for Isolated Interpreters (gh-103084) Sharing mutable (or non-immortal) objects between interpreters is generally not safe. We can work around that but not easily. There are two restrictions that are critical for objects that break interpreter isolation. The first is that the object's state be guarded by a global lock. For now the GIL meets this requirement, but a granular global lock is needed once we have a per-interpreter GIL. The second restriction is that the object (and, for a container, its items) be deallocated/resized only when the interpreter in which it was allocated is the current one. This is because every interpreter has (or will have, see gh-101660) its own object allocator. Deallocating an object with a different allocator can cause crashes. The dict for the cache of module defs is completely internal, which simplifies what we have to do to meet those requirements. To do so, we do the following: * add a mechanism for re-using a temporary thread state tied to the main interpreter in an arbitrary thread * add _PyRuntime.imports.extensions.main_tstate` * add _PyThreadState_InitDetached() and _PyThreadState_ClearDetached() (pystate.c) * add _PyThreadState_BindDetached() and _PyThreadState_UnbindDetached() (pystate.c) * make sure the cache dict (_PyRuntime.imports.extensions.dict) and its items are all owned by the main interpreter) * add a placeholder using for a granular global lock Note that the cache is only used for legacy extension modules and not for multi-phase init modules. https://github.com/python/cpython/issues/100227 | 29 March 2023, 23:15:43 UTC |
121057a | Brandt Bucher | 29 March 2023, 22:53:30 UTC | GH-89987: Shrink the BINARY_SUBSCR caches (GH-103022) | 29 March 2023, 22:53:30 UTC |
e647dba | Eric Snow | 29 March 2023, 22:08:40 UTC | gh-90110: Bring the whitelists up to date. (gh-103114) https://github.com/python/cpython/issues/90110 | 29 March 2023, 22:08:40 UTC |
0b1d9c4 | Brett Cannon | 29 March 2023, 20:28:08 UTC | GH-102973: add a dev container (GH-102975) On content update, builds `python` and the docs. Also adds a Dockerfile that should include everything but autoconf 2.69 that's necessary to build CPython and the entire stdlib on Fedora. Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Dusty Phillips <dusty@phillips.codes> | 29 March 2023, 20:28:08 UTC |
d052a38 | Bernhard Wagner | 29 March 2023, 19:21:56 UTC | gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output (#103113) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Éric <merwok@netwok.org> | 29 March 2023, 19:21:56 UTC |
e375bff | gaogaotiantian | 29 March 2023, 10:09:12 UTC | gh-103068: Check condition expression of breakpoints for pdb (#103069) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Artem Mukhin <ortem00@gmail.com> | 29 March 2023, 10:09:12 UTC |
d835b3f | Matěj Cepl | 29 March 2023, 08:52:53 UTC | gh-102582: Fix invalid JSON in Doc/howto/logging-cookbook.rst (GH-102635) | 29 March 2023, 08:52:53 UTC |
60bdc16 | Nikita Sobolev | 29 March 2023, 03:04:26 UTC | gh-103054: typing: Improve `Callable` type substitution tests (#103055) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com> | 29 March 2023, 03:04:26 UTC |
24ba507 | Steve Dower | 28 March 2023, 23:47:13 UTC | gh-103097: Add workaround for Windows ARM64 compiler bug (GH-103098) See https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361 for details of the issue. It only applies to version 14.34. | 28 March 2023, 23:47:13 UTC |
ba65a06 | Eric Snow | 28 March 2023, 18:52:28 UTC | gh-100227: Move the Dict of Interned Strings to PyInterpreterState (gh-102339) We can revisit the options for keeping it global later, if desired. For now the approach seems quite complex, so we've gone with the simpler isolation solution in the meantime. https://github.com/python/cpython/issues/100227 | 28 March 2023, 18:52:28 UTC |
7703def | Chenxi Mao | 28 March 2023, 08:52:22 UTC | GH-102711: Fix warnings found by clang (#102712) There are some warnings if build python via clang: Parser/pegen.c:812:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] _PyPegen_clear_memo_statistics() ^ void Parser/pegen.c:820:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] _PyPegen_get_memo_statistics() ^ void Fix it to make clang happy. Signed-off-by: Chenxi Mao <chenxi.mao@suse.com> | 28 March 2023, 08:52:22 UTC |
f4ed2c6 | Ethan Furman | 27 March 2023, 23:26:16 UTC | gh-102558: [Enum] better handling of non-Enum EnumType classes (GH-103060) | 27 March 2023, 23:26:16 UTC |
b838d80 | Ethan Furman | 27 March 2023, 23:25:19 UTC | gh-103056: [Enum] ensure final _generate_next_value_ is a staticmethod (GH-103062) | 27 March 2023, 23:25:19 UTC |
56d055a | Oleg Iarygin | 27 March 2023, 23:21:07 UTC | gh-74468: [tarfile] Fix incorrect name attribute of ExFileObject (GH-102424) Co-authored-by: Simeon Visser <svisser@users.noreply.github.com> | 27 March 2023, 23:21:07 UTC |
89e67ad | Eric Snow | 27 March 2023, 22:53:05 UTC | gh-100227: Revert gh-102925 "gh-100227: Make the Global Interned Dict Safe for Isolated Interpreters" (gh-103063) This reverts commit 87be8d9. This approach to keeping the interned strings safe is turning out to be too complex for my taste (due to obmalloc isolation). For now I'm going with the simpler solution, making the dict per-interpreter. We can revisit that later if we want a sharing solution. | 27 March 2023, 22:53:05 UTC |
34eb6f7 | gaogaotiantian | 27 March 2023, 22:22:06 UTC | gh-103046: Display current line correctly for `dis.disco()` with CACHE entries (#103047) | 27 March 2023, 22:22:06 UTC |
3606753 | gaogaotiantian | 27 March 2023, 20:37:22 UTC | gh-103023: Add SyntaxError check in pdb's `display` command (#103024) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | 27 March 2023, 20:37:22 UTC |
2cdc518 | Nikita Sobolev | 27 March 2023, 00:05:06 UTC | gh-102941: Fix "‘subobj’ may be used uninitialized in this function" warning in `bytes_methods.c` (#102942) | 27 March 2023, 00:05:06 UTC |
30a306c | Matthias Görgens | 25 March 2023, 23:38:24 UTC | Fix typo in _swappedbytes_ in ctypes comment (#102773) It's a minor typo, but it makes for a misleading comment. Let's fix it. | 25 March 2023, 23:38:24 UTC |
718e866 | Shantanu | 25 March 2023, 21:40:11 UTC | gh-98886: Fix issues with dataclass fields with special underscore names (#102032) This commit prefixes `__dataclass` to several things in the locals dict: - Names like `_dflt_` (which cause trouble, see first test) - Names like `_type_` (not known to be able to cause trouble) - `_return_type` (not known to able to cause trouble) - `_HAS_DEFAULT_FACTORY` (which causes trouble, see second test) In addition, this removes `MISSING` from the locals dict. As far as I can tell, this wasn't needed even in the initial implementation of dataclasses.py (and tests on that version passed with it removed). This makes me wary :-) This is basically a continuation of #96151, where fixing this was welcomed in https://github.com/python/cpython/pull/98143#issuecomment-1280306360 | 25 March 2023, 21:40:11 UTC |
027223d | gaogaotiantian | 25 March 2023, 21:31:45 UTC | Update pdb docs for arguments (#102965) | 25 March 2023, 21:31:45 UTC |
11ed70b | Liyang Zhang | 25 March 2023, 21:27:02 UTC | Fix typos in faulthandler, testcapi error messages (#103020) | 25 March 2023, 21:27:02 UTC |
8ec6486 | Nikita Sobolev | 25 March 2023, 19:36:38 UTC | gh-103027: Update `dataclass.make_dataclass` docstring (gh-103028) * gh-103027: Update `dataclass.make_dataclass` docstring | 25 March 2023, 19:36:38 UTC |
0708437 | Peter Jiping Xie | 25 March 2023, 09:12:00 UTC | gh-103025: fix two ctypes doc issues (#103026) | 25 March 2023, 09:12:00 UTC |
1fd603f | Raymond Hettinger | 25 March 2023, 07:19:20 UTC | GH-102833: Mention the key function in the docstrings (GH-103009) | 25 March 2023, 07:19:20 UTC |
87adc63 | Hugo van Kemenade | 25 March 2023, 07:15:02 UTC | gh-101100: Test only Doc/ files in nit-picky mode (#103019) gh-101100: Filter only Doc/ files | 25 March 2023, 07:15:02 UTC |
64cb1a4 | JakobDev | 24 March 2023, 21:52:06 UTC | gh-100131: Add optional delete parameter to tempfile.TemporaryDirectory() (#100132) Add optional delete parameter to tempfile.TemporaryDirectory(). Co-authored-by: Gregory P. Smith <greg@krypto.org> | 24 March 2023, 21:52:06 UTC |
ded9a7f | gaogaotiantian | 24 March 2023, 20:50:06 UTC | gh-102980: Add tests for pdf's display, alias and where commands (#102981) | 24 March 2023, 20:50:06 UTC |
f2e5a6e | Amin Alaee | 24 March 2023, 15:00:32 UTC | gh-102873: logging.LogRecord docs: improve description of `msg` parameter (#102875) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | 24 March 2023, 15:00:32 UTC |
acfe02f | David Benjamin | 24 March 2023, 13:04:30 UTC | gh-100372: Use BIO_eof to detect EOF for SSL_FILETYPE_ASN1 (GH-100373) In PEM, we need to parse until error and then suppress `PEM_R_NO_START_LINE`, because PEM allows arbitrary leading and trailing data. DER, however, does not. Parsing until error and suppressing `ASN1_R_HEADER_TOO_LONG` doesn't quite work because that error also covers some cases that should be rejected. Instead, check `BIO_eof` early and stop the loop that way. Automerge-Triggered-By: GH:Yhg1s | 24 March 2023, 13:04:30 UTC |
6a1c49a | Hugo van Kemenade | 24 March 2023, 11:23:35 UTC | gh-101100: Test docs in nit-picky mode (#102513) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Petr Viktorin <encukou@gmail.com> | 24 March 2023, 11:23:35 UTC |
d494091 | Raymond Hettinger | 24 March 2023, 05:39:12 UTC | GH-100989: remove annotation from docstring (GH-102991) | 24 March 2023, 05:39:12 UTC |
7f01a11 | Raymond Hettinger | 24 March 2023, 00:50:17 UTC | GH-100989: Revert Improve the accuracy of collections.deque docstrings (GH-102979) | 24 March 2023, 00:50:17 UTC |
413b7db | MonadChains | 23 March 2023, 23:42:43 UTC | gh-94684: uuid: support bytes in the name argument to uuid3/5 (#94709) RFC 4122 does not specify that name should be a string, so for completness the functions should also support a name given as a raw byte sequence. | 23 March 2023, 23:42:43 UTC |
f1e3eee | Steve Dower | 23 March 2023, 23:27:46 UTC | gh-99726: Fix order of recently added fields for FILE_STAT_BASIC_INFORMATION (GH-102976) | 23 March 2023, 23:27:46 UTC |
0444ae2 | Brandt Bucher | 23 March 2023, 22:25:09 UTC | GH-100982: Break up COMPARE_AND_BRANCH (GH-102801) | 23 March 2023, 22:25:09 UTC |
bd06375 | Dong-hee Na | 23 March 2023, 20:30:18 UTC | gh-102558: [Enum] fix AttributeError during member repr() (GH-102601) | 23 March 2023, 20:30:18 UTC |
16f6165 | Raymond Hettinger | 23 March 2023, 19:46:15 UTC | Minor readability improvement to the factor() recipe (GH-102971) | 23 March 2023, 19:46:15 UTC |
b613208 | Nikita Sobolev | 23 March 2023, 19:35:02 UTC | gh-98239: Document that `inspect.getsource()` can raise `TypeError` (#101689) | 23 March 2023, 19:35:02 UTC |
58d2b30 | Alex Waygood | 23 March 2023, 18:18:53 UTC | gh-102936: typing: document performance pitfalls of protocols decorated with `@runtime_checkable` (#102937) | 23 March 2023, 18:18:53 UTC |
4695709 | Raymond Hettinger | 23 March 2023, 17:10:12 UTC | Move binomialvariate() to a section for discrete distributions (GH-102955) | 23 March 2023, 17:10:12 UTC |
f13fdac | JosephSBoyle | 23 March 2023, 16:43:13 UTC | gh-102810 Improve the sphinx docs for `asyncio.Timeout` (#102934) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | 23 March 2023, 16:43:13 UTC |
bf42eb8 | AN Long | 23 March 2023, 16:34:48 UTC | gh-102943: Stop checking localized error text in socket tests on Windows (GH-102944) | 23 March 2023, 16:34:48 UTC |
adb0621 | Nikita Sobolev | 23 March 2023, 16:26:11 UTC | gh-88965: typing: fix type substitution of a list of types after initial `ParamSpec` substitution (#102808) Previously, this used to fail: ```py from typing import * T = TypeVar("T") P = ParamSpec("P") class X(Generic[P]): f: Callable[P, int] Y = X[[int, T]] Z = Y[str] ``` Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | 23 March 2023, 16:26:11 UTC |
baf4eb0 | Alex Waygood | 23 March 2023, 14:17:54 UTC | gh-102947: Improve traceback when calling `fields()` on a non-dataclass (#102948) | 23 March 2023, 14:17:54 UTC |
08254be | Erlend E. Aasland | 23 March 2023, 13:21:32 UTC | Docs: fixup incorrect escape char in sqlite3 docs (#102945) | 23 March 2023, 13:21:32 UTC |
0f2ba65 | Nikita Sobolev | 23 March 2023, 10:37:04 UTC | gh-102939: Fix "conversion from Py_ssize_t to long" warning in builtins (GH-102940) | 23 March 2023, 10:37:04 UTC |
87be8d9 | Eric Snow | 23 March 2023, 00:30:04 UTC | gh-100227: Make the Global Interned Dict Safe for Isolated Interpreters (gh-102925) This is effectively two changes. The first (the bulk of the change) is where we add _Py_AddToGlobalDict() (and _PyRuntime.cached_objects.main_tstate, etc.). The second (much smaller) change is where we update PyUnicode_InternInPlace() to use _Py_AddToGlobalDict() instead of calling PyDict_SetDefault() directly. Basically, _Py_AddToGlobalDict() is a wrapper around PyDict_SetDefault() that should be used whenever we need to add a value to a runtime-global dict object (in the few cases where we are leaving the container global rather than moving it to PyInterpreterState, e.g. the interned strings dict). _Py_AddToGlobalDict() does all the necessary work to make sure the target global dict is shared safely between isolated interpreters. This is especially important as we move the obmalloc state to each interpreter (gh-101660), as well as, potentially, the GIL (PEP 684). https://github.com/python/cpython/issues/100227 | 23 March 2023, 00:30:04 UTC |
8709697 | Jens-Hilmar Bradt | 22 March 2023, 18:43:41 UTC | [doc] Fix error in tutorial example: type(exc) is the type rather than the instance (#102751) | 22 March 2023, 18:43:41 UTC |
9b19d39 | Kevin Kirsche | 22 March 2023, 18:14:05 UTC | gh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (#102922) | 22 March 2023, 18:14:05 UTC |
3468c76 | Irit Katriel | 22 March 2023, 18:10:48 UTC | gh-102859: Remove JUMP_IF_FALSE_OR_POP and JUMP_IF_TRUE_OR_POP (#102870) | 22 March 2023, 18:10:48 UTC |
04adf2d | Kristján Valur Jónsson | 22 March 2023, 17:52:10 UTC | gh-102780: Fix uncancel() call in asyncio timeouts (#102815) Also use `raise TimeOut from <CancelledError instance>` so that the CancelledError is set in the `__cause__` field rather than in the `__context__` field. Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | 22 March 2023, 17:52:10 UTC |
1ca3155 | Nikita Sobolev | 22 March 2023, 14:59:32 UTC | gh-102033: Fix syntax error in `Tools/c-analyzer` (GH-102066) The easiest way to format strings with `{}` meaningful chars is via `%`. | 22 March 2023, 14:59:32 UTC |
7559f5f | Mark Shannon | 22 March 2023, 14:49:51 UTC | GH-101291: Rearrange the size bits in PyLongObject (GH-102464) * Eliminate all remaining uses of Py_SIZE and Py_SET_SIZE on PyLongObject, adding asserts. * Change layout of size/sign bits in longobject to support future addition of immortal ints and tagged medium ints. * Add functions to hide some internals of long object, and for setting sign and digit count. * Replace uses of IS_MEDIUM_VALUE macro with _PyLong_IsCompact(). | 22 March 2023, 14:49:51 UTC |
713df2c | Stanislav Zmiev | 22 March 2023, 14:45:25 UTC | GH-89727: Fix pathlib.Path.walk RecursionError on deep trees (GH-100282) Use a stack to implement `pathlib.Path.walk()` iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees. Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Brett Cannon <brett@python.org> | 22 March 2023, 14:45:25 UTC |
af9c34f | Benjamin Fogle | 22 March 2023, 14:08:41 UTC | gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (#96932) | 22 March 2023, 14:08:41 UTC |
ea93bde | Max Bachmann | 22 March 2023, 13:44:28 UTC | gh-102027: Fix macro name (#102124) This fixes the ssse3 / sse2 detection when sse4 is available. Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> | 22 March 2023, 13:44:28 UTC |
61405da | Erlend E. Aasland | 22 March 2023, 13:05:08 UTC | gh-101947: Remove size check from sqlite3 serialize test (#102914) The size of the returned data is too implementation specific. | 22 March 2023, 13:05:08 UTC |
3d7eb66 | Icelain | 22 March 2023, 12:19:52 UTC | gh-101313: Add -h and --help arguments to the webbrowser module (gh-101374) | 22 March 2023, 12:19:52 UTC |
420bbb7 | David Benjamin | 22 March 2023, 12:16:26 UTC | GH-95494: Fix transport EOF handling in OpenSSL 3.0 (GH-95495) GH-25309 enabled SSL_OP_IGNORE_UNEXPECTED_EOF by default, with a comment that it restores OpenSSL 1.1.1 behavior, but this wasn't quite right. That option causes OpenSSL to treat transport EOF as the same as close_notify (i.e. SSL_ERROR_ZERO_RETURN), whereas Python actually has distinct SSLEOFError and SSLZeroReturnError exceptions. (The latter is usually mapped to a zero return from read.) In OpenSSL 1.1.1, the ssl module would raise them for transport EOF and close_notify, respectively. In OpenSSL 3.0, both act like close_notify. Fix this by, instead, just detecting SSL_R_UNEXPECTED_EOF_WHILE_READING and mapping that to the other exception type. There doesn't seem to have been any unit test of this error, so fill in the missing one. This had to be done with the BIO path because it's actually slightly tricky to simulate a transport EOF with Python's fd based APIs. (If you instruct the server to close the socket, it gets confused, probably because the server's SSL object is still referencing the now dead fd?) | 22 March 2023, 12:16:26 UTC |
7b2d53d | Erlend E. Aasland | 22 March 2023, 11:50:00 UTC | Docs: improve accuracy of sqlite3.Connection.interrupt() (#102904) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 22 March 2023, 11:50:00 UTC |