https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
3b9d793 Python 3.12.0a2 14 November 2022, 11:18:11 UTC
db11568 [Enum] update version TODO comment (GH-99458) 14 November 2022, 04:52:30 UTC
367f552 gh-96192: fix os.ismount() to use a path that is str or bytes (#96194) Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 14 November 2022, 04:12:32 UTC
1455c51 gh-99300: Use Py_NewRef() in Modules/_asynciomodule.c (#99441) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Modules/_asynciomodule.c. 13 November 2022, 23:31:21 UTC
f0d12ca Fix misspelling in docs for http.HTTPMethod (#99376) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 13 November 2022, 20:46:28 UTC
88385b8 gh-98930: improve the docstring of signal.strsignal (#99290) Improves the docstring on signal.strsignal to make it explain when it returns a message, None, or when it raises ValueError. Closes #98930 Co-authored-by: Gregory P. Smith <greg@krypto.org> 13 November 2022, 19:41:23 UTC
343eb0f gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (#99283) 13 November 2022, 19:22:45 UTC
d329f85 gh-99430: Remove duplicated tests for old-styled classes (#99432) python 1 & 2 were a loong time ago. 13 November 2022, 18:30:00 UTC
439b9cf gh-99418: Make urllib.parse.urlparse enforce that a scheme must begin with an alphabetical ASCII character. (#99421) Prevent urllib.parse.urlparse from accepting schemes that don't begin with an alphabetical ASCII character. RFC 3986 defines a scheme like this: `scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )` RFC 2234 defines an ALPHA like this: `ALPHA = %x41-5A / %x61-7A` The WHATWG URL spec defines a scheme like this: `"A URL-scheme string must be one ASCII alpha, followed by zero or more of ASCII alphanumeric, U+002B (+), U+002D (-), and U+002E (.)."` 13 November 2022, 18:25:55 UTC
50b0415 gh-99300: Use Py_NewRef() in Modules/_ctypes/ (#99436) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Modules/_ctypes/ directory. 13 November 2022, 15:04:54 UTC
bbba3f3 gh-99300: Use Py_NewRef() in Modules/ directory (#99440) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in test C files of the Modules/ directory. 13 November 2022, 15:04:33 UTC
0bedc28 gh-99300: Use Py_NewRef() in Modules/itertoolsmodule.c (#99439) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Modules/itertoolsmodule.c. 13 November 2022, 15:04:22 UTC
abd004e gh-99300: Use Py_NewRef() in Modules/_elementtree.c (#99438) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Modules/_elementtree.c. 13 November 2022, 15:04:11 UTC
6788303 gh-91248: Optimize PyFrame_GetVar() (#99252) PyFrame_GetVar() no longer creates a temporary dictionary to get a variable. 13 November 2022, 14:37:03 UTC
57be545 gh-99103: Normalize specialized traceback anchors against the current line (GH-99145) Automerge-Triggered-By: GH:isidentical 12 November 2022, 23:37:25 UTC
c95f554 gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour (#93823) Introduce the autocommit attribute to Connection and the autocommit parameter to connect() for PEP 249-compliant transaction handling. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Géry Ogam <gery.ogam@gmail.com> 12 November 2022, 22:44:41 UTC
99972dc gh-99357: Close the event loop when it is no longer used in test_uncancel_structured_blocks (#99414) 12 November 2022, 20:16:44 UTC
dfc1b17 gh-99392: Fix sqlite3 converter recipes (#99393) 12 November 2022, 19:39:37 UTC
fb844e1 gh-98762: Fix locations of match sub-patterns (GH-98775) 12 November 2022, 18:42:17 UTC
73a921b gh-99304: [Enum] clarify what constitutes a flag alias (GH-99395) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 12 November 2022, 18:39:47 UTC
504e122 GH-81057: Remove static state from arraymodule (#99409) 12 November 2022, 09:11:32 UTC
aa87432 GH-94597: add deprecation warnings for subclassing `AbstractChildWatcher` (#99386) 12 November 2022, 07:17:53 UTC
e02cc6d gh-80448: argparse: Fix IndexError on store_true action (#15656) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 12 November 2022, 01:51:38 UTC
7f3a4b9 gh-81057: Move PyImport_Inittab to _PyRuntimeState (gh-99402) We actually don't move PyImport_Inittab. Instead, we make a copy that we keep on _PyRuntimeState and use only that after Py_Initialize(). We also prevent folks from modifying PyImport_Inittab (the best we can) after that point. https://github.com/python/cpython/issues/81057 12 November 2022, 00:06:05 UTC
67807cf gh-81057: Move the Allocators to _PyRuntimeState (gh-99217) The global allocators were stored in 3 static global variables: _PyMem_Raw, _PyMem, and _PyObject. State for the "small block" allocator was stored in another 13. That makes a total of 16 global variables. We are moving all 16 to the _PyRuntimeState struct as part of the work for gh-81057. (If PEP 684 is accepted then we will follow up by moving them all to PyInterpreterState.) https://github.com/python/cpython/issues/81057 11 November 2022, 23:30:46 UTC
55c96e8 gh-99305: Speed up secrets.token_hex() ~2x (#99306) simple code modernization. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> 11 November 2022, 22:45:24 UTC
f531b68 gh-81057: Add PyInterpreterState.static_objects (gh-99397) As we consolidate global variables, we find some objects that are almost suitable to add to _PyRuntimeState.global_objects, but have some small/sneaky bit of per-interpreter state (e.g. a weakref list). We're adding PyInterpreterState.static_objects so we can move such objects there. (We'll removed the _not_used field once we've added others.) https://github.com/python/cpython/issues/81057 11 November 2022, 21:24:18 UTC
dd36b71 gh-81057: Move the Extension Modules Cache to _PyRuntimeState (gh-99355) We also move the closely related max_module_number and add comments documenting the group of struct members. https://github.com/python/cpython/issues/81057 11 November 2022, 21:16:28 UTC
fe55ff3 gh-81057: Generate a Separate Initializer For Each Part of the Global Objects Initializer (gh-99389) Up until now we had a single generated initializer macro for all the statically declared global objects in _PyRuntimeState, including several one-offs (e.g. the empty tuple). The one-offs don't need to be generated, but were because we had one big initializer. Having separate initializers for set of generated global objects allows us to generate only the ones we need to. This allows us to add initializers for one-off global objects without having to generate them. https://github.com/python/cpython/issues/81057 11 November 2022, 20:23:41 UTC
6abec1c gh-98707: configure --with-system-libmpdec and --with-system-expat no longer include vendored headers (#98711) 11 November 2022, 18:59:30 UTC
8fe1a88 Fix typo in Tools/wasm/README.md (GH-99384) Noticable -> Noticeable Automerge-Triggered-By: GH:AlexWaygood 11 November 2022, 16:38:09 UTC
c3c3871 gh-87604: Clarify in docs that sys.addaudithook is not for sandboxes (GH-99372) 11 November 2022, 13:35:02 UTC
3dd6ee2 gh-99254: remove all unused consts from code objects (GH-99255) 11 November 2022, 10:53:43 UTC
faf7dfa gh-99325: Remove unused `NameError` handling (#99326) 11 November 2022, 09:56:57 UTC
e00d730 Update github CI to use OpenSSL 1.1.1s and 3.0.7. (#99364) 11 November 2022, 09:33:55 UTC
67b4d27 gh-98086: Now ``patch.dict`` can decorate async functions (#98095) 11 November 2022, 08:04:30 UTC
97c493d gh-84522: Add for-loop to apply-method-to-sequence FAQ (#94660) 11 November 2022, 04:16:16 UTC
d26ee8a gh-98366: use sphinx.locale._ as gettext() in pyspecific.py (#98437) fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py [why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue. 11 November 2022, 01:18:11 UTC
3a1dde8 gh-99300: Use Py_NewRef() in Objects/ directory (#99354) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory. 10 November 2022, 22:58:07 UTC
1960eb0 gh-99300: Use Py_NewRef() in Objects/ directory (#99351) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory. 10 November 2022, 22:40:31 UTC
584e55b gh-99300: Use Py_NewRef() in Objects/ directory (#99335) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory. 10 November 2022, 21:22:02 UTC
2f4af2d GH-99183: Document behavior of count() for empty substrings (GH-99339) 10 November 2022, 21:20:01 UTC
dbf8613 gh-99300: Use Py_NewRef() in Objects/listobject.c (#99336) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Objects/listobject.c. 10 November 2022, 21:09:18 UTC
694cdb2 GH-98831: Remove all remaining DISPATCH() calls from bytecodes.c (#99271) Also mark those opcodes that have no stack effect as such. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> 10 November 2022, 18:50:57 UTC
00ee6d5 GH-99298: Don't perform jumps before error handling (GH-99299) 10 November 2022, 16:46:56 UTC
c41b13d gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206) Check to see if `base_executable` exists. If it does not, attempt to use known alternative names of the python binary to find an executable in the path specified by `home`. If no alternative is found, previous behavior is preserved. Signed-off-by: Vincent Fazio <vfazio@gmail.com> Signed-off-by: Vincent Fazio <vfazio@gmail.com> 10 November 2022, 16:26:42 UTC
f1680c3 gh-99277: remove older version of `get_write_buffer_limits` (#99280) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 10 November 2022, 16:07:17 UTC
73679b1 gh-90110: Update the C-analyzer Tool (gh-99307) 10 November 2022, 16:03:57 UTC
6dedf42 gh-99300: Use Py_NewRef() in Objects/dictobject.c (#99333) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Objects/dictobject.c. 10 November 2022, 15:27:53 UTC
c0feb99 gh-99300: Use Py_NewRef() in Objects/ directory (#99332) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory. 10 November 2022, 15:27:32 UTC
4ce2a20 gh-99300: Use Py_NewRef() in Parser/ directory (#99330) Replace Py_INCREF() with Py_NewRef() in C files of the Parser/ directory and in the PEG generator. 10 November 2022, 14:30:05 UTC
1e197e6 GH-96421: Insert shim frame on entry to interpreter (GH-96319) * Adds EXIT_INTERPRETER instruction to exit PyEval_EvalDefault() * Simplifies RETURN_VALUE, YIELD_VALUE and RETURN_GENERATOR instructions as they no longer need to check for entry frames. 10 November 2022, 12:34:57 UTC
dbf2faf gh-74044: inspect.signature for wrappers around decorated bound methods (GH-736) 10 November 2022, 12:32:01 UTC
9d69284 GH-99257: Check the owner's type when specializing slots (GH-99258) 10 November 2022, 11:50:34 UTC
26726c7 gh-99320: remove tests for old-style class from `test_complex` (#99321) 10 November 2022, 10:51:22 UTC
d6f2767 gh-99281: [csv] remove try/except, `complex` always exists (#99282) 10 November 2022, 10:37:57 UTC
2e343fc gh-99300: Use Py_NewRef() in Python/ceval.c (#99318) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Python/ceval.c and related files. 10 November 2022, 10:25:33 UTC
231d83b gh-99300: Use Py_NewRef() in Python/ directory (#99317) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory. Update Parser/asdl_c.py to regenerate Python/Python-ast.c. 10 November 2022, 10:23:36 UTC
d8f239d gh-99300: Use Py_NewRef() in Python/ directory (#99302) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory. 10 November 2022, 08:03:39 UTC
f883b7f bpo-34272: Reorganize C API tests. (GH-8551) Move some C API tests into Lib/test/test_capi/. 10 November 2022, 06:54:37 UTC
87f5180 gh-98832: Change wording in docstring of `pathlib.Path.iterdir` (GH-98833) Found while working on https://github.com/python/cpython/issues/98829 Automerge-Triggered-By: GH:AlexWaygood 09 November 2022, 22:05:07 UTC
283ab0e GH-99205: Mark new interpreters and threads as non-static (GH-99268) 09 November 2022, 21:55:20 UTC
58ee5d8 Update reference to the size of PyPI (#99076) Update reference to the size of PyPI Last changed in 2008 (528576031d9655ca8004260a2bf2c783f77d1da1). 09 November 2022, 19:26:46 UTC
c7f5708 GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182) 09 November 2022, 18:50:09 UTC
6e3cc72 GH-90699: disallow `_Py_IDENTIFIER` in core code (GH-99210) 09 November 2022, 16:53:21 UTC
c03e05c gh-98724: Fix Py_CLEAR() macro side effects (#99100) The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test_py_setref() unit tests to _testcapi. 09 November 2022, 13:06:36 UTC
0124b5d gh-90868: Add _PyStaticObject_CheckRefcnt() function (#99261) Add _PyStaticObject_CheckRefcnt() function to make _PyStaticObjects_CheckRefcnt() shorter. Use _PyObject_ASSERT_FAILED_MSG() to log the object causing the fatal error. 09 November 2022, 07:40:40 UTC
f7a82cd CODEOWNERS: add myself to sysconfig and importlib.resources (#98851) 09 November 2022, 03:27:13 UTC
b3bd69c [Enum] Typo: fix DuplicateFreeEnum example docs (GH-99265) 09 November 2022, 00:39:56 UTC
2eee9d9 gh-99238: clarify the type of the env dict. (#99253) 08 November 2022, 21:00:31 UTC
027bc7e gh-94445: add compiler test for another case of excessive stack use (GH-99237) 08 November 2022, 20:39:32 UTC
0b4ffb0 gh-99248: [Enum] fix negative number infinite loop (GH-99256) [Enum] fix negative number infinite loop - _iter_bits_lsb() now raises a ValueError if a negative number is passed in - verify() now skips checking negative numbers for named flags 08 November 2022, 20:00:19 UTC
52f91c6 gh-90868: Adjust the Generated Objects (gh-99223) We do the following: * move the generated _PyUnicode_InitStaticStrings() to its own file * move the generated _PyStaticObjects_CheckRefcnt() to its own file * include pycore_global_objects.h in extension modules instead of pycore_runtime_init.h These changes help us avoid including things that aren't needed. https://github.com/python/cpython/issues/90868 08 November 2022, 17:03:03 UTC
d45cc80 gh-98627: Add the _testsinglephase Module (gh-99039) This makes it more clear that a given test is definitely testing against a single-phase init (legacy) extension module. The new module is a companion to _testmultiphase. https://github.com/python/cpython/issues/98627 08 November 2022, 16:58:11 UTC
4d5fcca gh-91248: Add PyFrame_GetVar() function (#95712) Add PyFrame_GetVar() and PyFrame_GetVarString() functions to get a frame variable by its name. Move PyFrameObject C API tests from test_capi to test_frame. 08 November 2022, 16:40:27 UTC
acf4d5d Fix broken link in `asyncio-subprocesses` doc (GH-99214) # Fix broken link in Doc/library/asyncio-subprocess.rst This is a trivial fix in documentation to fix a broken link. There is a broken link in [Doc/library/asyncio-subprocess.rst](https://docs.python.org/3/library/asyncio-subprocess.html#asyncio.subprocess.Process) for the function ``wait_for``: ![image](https://user-images.githubusercontent.com/37690409/200388894-fb6b7c42-b2cc-49ec-a239-e3472890db1f.png) I suppose this refers to the function ``asyncio.wait_for`` which is not clear in the docs. This PR fixes the link and the result looks like the following: ![image](https://user-images.githubusercontent.com/37690409/200389483-b4a92105-7d2c-4285-b0fc-78a6dc0be39c.png) Automerge-Triggered-By: GH:AlexWaygood 08 November 2022, 16:26:06 UTC
f1a6546 GH-98831: Simple input-output stack effects for bytecodes.c (#99120) 08 November 2022, 16:22:56 UTC
c7065ce GH-93143: Don't turn LOAD_FAST into LOAD_FAST_CHECK (GH-99075) 08 November 2022, 15:50:46 UTC
e56e33d gh-72719: Remove asyncore and asynchat modules (#96580) Remove modules asyncore and asynchat, which were deprecated by PEP 594. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 08 November 2022, 15:48:58 UTC
c43714f gh-99181: fix except* on unhashable exceptions (GH-99192) 08 November 2022, 09:32:20 UTC
a751bf5 GH-90699: fix refleak in `_testcapimodule.c` (gh-99236) 08 November 2022, 06:50:07 UTC
b9dedfe gh-92119: ctypes: Print exception class name instead of its representation (#98302) 08 November 2022, 04:53:59 UTC
a309ad9 gh-98513: Test abstract methods of some `collections` types (#98516) 08 November 2022, 01:48:23 UTC
c32bc1b gh-99124: use concrete exception types in `test_builtin` (#99125) 08 November 2022, 01:47:32 UTC
d315722 gh-98433: Fix quadratic time idna decoding. (#99092) There was an unnecessary quadratic loop in idna decoding. This restores the behavior to linear. This also adds an early length check in IDNA decoding to outright reject huge inputs early on given the ultimate result is defined to be 63 or fewer characters. 08 November 2022, 00:54:41 UTC
9430d27 gh-98817: Remove PCbuild/lib.pyproj (GH-98818) 07 November 2022, 20:23:35 UTC
be0d500 GH-90699: Remove remaining `_Py_IDENTIFIER` stdlib usage (GH-99067) 07 November 2022, 20:06:23 UTC
1438b77 gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002) The flag is not inherited, but its effect -- a NULL tp_new -- is. Drop hints for people who come here wanting to “disallow instantiation”. 07 November 2022, 18:45:50 UTC
4a1c58d GH-96793: Specialize FOR_ITER for generators. (GH-98772) 07 November 2022, 14:49:51 UTC
80c08d1 gh-95389: expose popular ETHERTYPE_* constants in the socket module (#95390) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> 07 November 2022, 14:27:37 UTC
6168e71 gh-98254: Add what's new entry for the improvement in commit bb56dead336357153a0c3b8cc9d9d6856d2c5a03 (#99197) 07 November 2022, 13:37:14 UTC
be31ecf gh-91058: Add what's new entry for the improvement in commit 7cfbb49fcd4c85f9bab3797302eadf93df490344 (#99198) 07 November 2022, 13:36:48 UTC
e02f1e2 Docs: add argument spec to sqlite3 CLI docs (#99200) 07 November 2022, 13:18:36 UTC
5ff81da bpo-38523: ignore_dangling_symlinks does not apply recursively (GH-22937) 07 November 2022, 11:45:16 UTC
cfec5b1 remove new line in pickle exception message (GH-31782) 07 November 2022, 07:43:39 UTC
c6325b1 gh-91803: Mock - fix error when using autospec methods with seal (#92213) Fixes https://github.com/python/cpython/issues/91803. Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> 07 November 2022, 07:24:46 UTC
728e42f doc: Formatting and typo fixes (#98974) 07 November 2022, 04:55:55 UTC
d7a00f1 GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols (GH-99156) 07 November 2022, 03:02:13 UTC
bef9efa GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols (GH99156) 07 November 2022, 02:56:41 UTC
f626b7b gh-96055: Update faulthandler to emit proper unexpect signal number (gh-99162) 07 November 2022, 01:19:25 UTC
back to top