https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
2e91dba Python 3.11.0a3 08 December 2021, 22:24:29 UTC
3ea574f Fix some false positives of documentation syntax problems 08 December 2021, 22:22:55 UTC
2109f78 bpo-45711: Remove unnecessary normalization of exc_info (GH-29922) 08 December 2021, 20:08:06 UTC
7778116 bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992) Also ensures that pybuilddir.txt is written early enough in the build to be picked up by later steps. 08 December 2021, 19:25:58 UTC
3cb9731 bpo-45359: Support TopologicalSorter type subscript (GH-28714) * Support TopologicalSorter type subscript * 📜🤖 Added by blurb_it. * Add TopologicalSorter to GenericAlias tests * Update Misc/NEWS.d/next/Library/2021-10-03-22-27-35.bpo-45359.LX_uxe.rst Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> 08 December 2021, 18:52:57 UTC
f893bb2 bpo-45635: refactor print_exception() into smaller functions (GH-29981) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 08 December 2021, 18:47:27 UTC
d4363d2 bpo-45813: Drop redundant assertion from frame.clear() (GH-29990) * bpo-45813: Drop redundant assertion from frame.clear() * Move assertion to frame_dealloc() 08 December 2021, 16:05:00 UTC
69806b9 bpo-46009: Do not exhaust generator when send() method raises (GH-29986) 08 December 2021, 12:09:26 UTC
3e0f13b doc: Add link issue 44010 (GH-29454) 08 December 2021, 10:55:39 UTC
0461c68 bpo-45847: Don't override user overrides for CFLAGS/LIBS (GH-29967) 08 December 2021, 10:52:08 UTC
c602c1b Fix double-space in exception message (GH-29955) 08 December 2021, 10:42:02 UTC
7989e9d bpo-40222: update doc entry with respect to the change in WITH_EXCEPT_START (GH-29975) 08 December 2021, 09:41:28 UTC
4ccccb1 bpo-20751: Match variable name to the example. (GH-29980) 08 December 2021, 03:38:21 UTC
b0b3086 bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build directories (GH-29979) 08 December 2021, 02:18:21 UTC
32a6724 bpo-46008: Move Py*State init into distinct functions. (gh-29977) Previously, basic initialization of PyInterprterState happened in PyInterpreterState_New() (along with allocation and adding the new interpreter to the runtime state). This prevented us from initializing interpreter states that were allocated separately (e.g. statically or in a free list). We've addressed that here by factoring out a separate function just for initialization. We've done the same for PyThreadState. _PyRuntimeState was sorted out when we added it since _PyRuntime is statically allocated. However, here we update the existing init code to line up with the functions for PyInterpreterState and PyThreadState. https://bugs.python.org/issue46008 08 December 2021, 01:59:49 UTC
758b74e bpo-46008: Add _PyInterpreterState_Main(). (gh-29978) PyInterpreterState_Main() is a plain function exposed in the public C-API. For internal usage we can take the more efficient approach in this PR. https://bugs.python.org/issue46008 08 December 2021, 01:56:06 UTC
1f384e3 bpo-46008: Stop calling _PyThreadState_Init() in new_threadstate(). (gh-29973) This simplifies new_threadstate(). We also rename _PyThreadState_Init() to _PyThreadState_SetCurrent() to reflect what it actually does. https://bugs.python.org/issue46008 08 December 2021, 00:26:29 UTC
9b577cd bpo-46008: Use PyMem_RawCalloc() to allocate PyThreadState. (GH-29972) Doing so allows us to stop assigning various fields to `NULL` and 0. It also more closely matches the behavior of a static initializer. Automerge-Triggered-By: GH:ericsnowcurrently 07 December 2021, 21:37:51 UTC
313f92a bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971) This parallels _PyRuntimeState.interpreters. Doing this helps make it more clear what part of PyInterpreterState relates to its threads. https://bugs.python.org/issue46008 07 December 2021, 21:03:47 UTC
8262c96 bpo-46008: Return void from _PyEval_InitState(). (gh-29970) This falls into the category of keep-allocation-and-initialization separate. It also allows us to use _PyEval_InitState() safely in functions that return void. https://bugs.python.org/issue46008 07 December 2021, 21:02:17 UTC
91b59a3 bpo-45847: Revert Port _ctypes partly to PY_STDLIB_MOD (GH-29747) (GH-29969) 07 December 2021, 19:56:41 UTC
06c4ae8 bpo-45582: Fix framework path and bootstrap build (GH-29954) * Check NS API return values for NULL to prevent segfault in ``_bootstrap_python``. * Set modPathInitialized to 1 so the ``decode_to_dict`` path is used. Signed-off-by: Christian Heimes <christian@python.org> 07 December 2021, 18:09:53 UTC
064e53d Fix leak when an exception is raised during generator creation. (GH-29960) 07 December 2021, 18:05:48 UTC
d596acb bpo-45635: standardize error handling in traceback.c (GH-29905) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 07 December 2021, 16:17:22 UTC
8319114 bpo-45947: Place dict and values pointer at fixed (negative) offset just before GC header. (GH-29879) * Place __dict__ immediately before GC header for plain Python objects. * Fix up lazy dict creation logic to use managed dict pointers. * Manage values pointer, placing them directly before managed dict pointers. * Convert hint-based load/store attr specialization target managed dict classes. * Specialize LOAD_METHOD for managed dict objects. * Remove unsafe _PyObject_GC_Calloc function. * Remove unsafe _PyObject_GC_Malloc() function. * Add comment explaning use of Py_TPFLAGS_MANAGED_DICT. 07 December 2021, 16:02:53 UTC
c7e7a4b bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963) 07 December 2021, 15:25:13 UTC
1c7a1c3 bpo-46004: Fix error location for loops with invalid targets (GH-29959) 07 December 2021, 13:02:15 UTC
cf7eaa4 Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951) This reverts commit 9bf2cbc4c498812e14f20d86acb61c53928a5a57. 07 December 2021, 11:31:04 UTC
2bf5517 bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) 07 December 2021, 11:15:44 UTC
a310fd8 bpo-45890: Add tests for tracing try-except-finally blocks (GH-29746) 07 December 2021, 10:50:37 UTC
8db0652 bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943) 07 December 2021, 09:58:40 UTC
ddbab69 bpo-45798: Let libmpdec decide which archs to build on macOS as done previously. (GH-29949) 07 December 2021, 02:35:50 UTC
c5c3652 bpo-28953: Use `raise from` when raising new IncompleteRead (GH-29861) Automerge-Triggered-By: GH:asvetlov 07 December 2021, 00:10:49 UTC
b7ef27b bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948) 07 December 2021, 00:07:35 UTC
265918b bpo-23819: asyncio: Replace AssertionError with TypeError where it makes sense (GH-29894) 06 December 2021, 23:40:35 UTC
8518ee3 removal of duplicated text paragraph (#29666) 06 December 2021, 23:12:29 UTC
fc012d8 bpo-45847: Fix uuid detection on macOS (GH-29946) 06 December 2021, 20:43:44 UTC
f16f93e bpo-45582: framework build: modPath must not be const (GH-29944) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> 06 December 2021, 18:13:12 UTC
af1db4e bpo-45582: Fix getpath_isxfile() and test_embed on Windows (GH-29930) 06 December 2021, 17:25:19 UTC
612e59b bpo-45950: Fix macOS framework builds of _bootstrap_python (GH-29936) 06 December 2021, 16:13:53 UTC
98fac8b bpo-44035: Check autoconf files thoroughly (GH-29935) Check that users don't push changes with outdated or patched autoconf. The presence of runstatedir option and aclocal 1.16.3 are good markers. Use my container image to regenerate autoconf files. "Check for changes" will fail later when any file is regenerated. Use ccache in check_generated_files to speed up testing. 06 December 2021, 12:18:56 UTC
299483c bpo-45963: Make space for the InterpreterFrame of a generator in that generator. (GH-29891) * Make generator, coroutine and async gen structs all the same size. * Store interpreter frame in generator (and coroutine). Reduces the number of allocations neeeded for a generator from two to one. 06 December 2021, 10:13:49 UTC
f34d181 bpo-45732: Update python.org macOS installer to use Tcl/Tk 8.6.12. (GH-29931) 06 December 2021, 07:44:09 UTC
c0521fe bpo-45840: Improve cross-references in the data model documentation (GH-29633) 05 December 2021, 20:49:36 UTC
2b318ce bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298) 05 December 2021, 20:44:01 UTC
446be16 bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294) 05 December 2021, 20:42:50 UTC
1fd4de5 bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291) For example, InitVar[list[int]]. 05 December 2021, 20:41:58 UTC
60c320c bpo-37295: Optimize math.comb() and math.perm() (GH-29090) For very large numbers use divide-and-conquer algorithm for getting benefit of Karatsuba multiplication of large numbers. Do calculations completely in C unsigned long long instead of Python integers if possible. 05 December 2021, 20:26:10 UTC
628abe4 bpo-45582: Fix signature of _Py_Get_Getpath_CodeObject (GH-29921) 05 December 2021, 17:41:46 UTC
605f4bf Delete orphaned comment (#29917) (The function this described was deleted by PR #23743, the comment was accidentally retained.) 05 December 2021, 17:03:58 UTC
d15cdb2 bpo-27946: Fix possible crash in ElementTree.Element (GH-29915) Getting an attribute via attrib.get() simultaneously with replacing the attrib dict can lead to access to deallocated dict. 05 December 2021, 12:22:54 UTC
f42a06b bpo-13236: Flush the output stream more often in unittest (GH-29864) It can prevent some losses when output to buffered stream. 04 December 2021, 18:57:20 UTC
87a18de Fixed documentation typo in compileall.py (GH-29912) 04 December 2021, 15:38:17 UTC
64be8d3 bpo-45847: Update whatsnew and add place holder entries for missing extensions (GH-29914) 04 December 2021, 14:14:48 UTC
4045392 bpo-45847: Port _ctypes partly to PY_STDLIB_MOD (GH-29747) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 04 December 2021, 10:21:43 UTC
cee07b1 bpo-45695: Test out-of-tree builds on GHA (GH-29904) 04 December 2021, 10:07:59 UTC
135ecc3 bpo-20751: Replace method example with attribute example, matching the descriptor howto (GH-29909) 04 December 2021, 02:37:08 UTC
0ae4e0c bpo-45582 Fix prototype of _Py_Get_Getpath_CodeObject. (GH-29907) Automerge-Triggered-By: GH:tiran 03 December 2021, 23:21:58 UTC
7d7c91a bpo-45582: Add a NOT operator to the condition in getpath_isxfile (GH-29906) 03 December 2021, 22:04:11 UTC
5bb7ef2 bpo-45607: Make it possible to enrich exception displays via setting their __note__ field (GH-29880) 03 December 2021, 22:01:15 UTC
d930170 bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577) 03 December 2021, 19:47:38 UTC
2ff758b bpo-45711: [asyncio] Normalize exceptions immediately after Fetch, before they are stored as StackItem, which should be normalized (GH-29890) 03 December 2021, 19:05:14 UTC
84ca123 bpo-45950: Introduce Bootstrap Python again (#29859) The build system now uses a :program:`_bootstrap_python` interpreter for freezing and deepfreezing again. To speed up build process the build tools :program:`_bootstrap_python` and :program:`_freeze_module` are no longer build with LTO. Cross building depends on a build Python interpreter, which must have same version and bytecode as target host Python. 03 December 2021, 15:01:11 UTC
ccb73a0 bpo-45582: Fix out-of-tree build issues with new getpath (GH-29902) 03 December 2021, 13:47:06 UTC
03768c4 bpo-45885: Specialize COMPARE_OP (GH-29734) * Add COMPARE_OP_ADAPTIVE adaptive instruction. * Add COMPARE_OP_FLOAT_JUMP, COMPARE_OP_INT_JUMP and COMPARE_OP_STR_JUMP specialized instructions. * Introduce and use _PyUnicode_Equal 03 December 2021, 11:29:12 UTC
99fcf15 bpo-45582: Port getpath[p].c to Python (GH-29041) The getpath.py file is frozen at build time and executed as code over a namespace. It is never imported, nor is it meant to be importable or reusable. However, it should be easier to read, modify, and patch than the previous code. This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms. 03 December 2021, 00:08:42 UTC
9f2f7e4 bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896) 02 December 2021, 20:24:25 UTC
a31173c bpo-40280: Update what's new (GH-29893) 02 December 2021, 17:42:56 UTC
b2afdc9 bpo-45535: Improve output of Enum ``dir()`` (GH-29316) Modify the ``EnumType.__dir__()`` and ``Enum.__dir__()`` to ensure that user-defined methods and methods inherited from mixin classes always show up in the output of `help()`. This change also makes it easier for IDEs to provide auto-completion. 02 December 2021, 16:49:52 UTC
cb8f491 bpo-40280: Optimize ints and and startup on wasm (GH-29887) 02 December 2021, 11:19:30 UTC
a6c3b0f bpo-45954: Rename PyConfig.no_debug_ranges to code_debug_ranges (GH-29886) Rename PyConfig.no_debug_ranges to PyConfig.code_debug_ranges and invert the value. Document -X no_debug_ranges and PYTHONNODEBUGRANGES env var in PyConfig.code_debug_ranges documentation. 02 December 2021, 10:43:37 UTC
cb2b3c8 bpo-40280: Emscripten has no support for subprocesses (GH-29872) Fixes ``platform`` and ``help()`` on emscripten. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran 02 December 2021, 09:17:37 UTC
226d22f docs: Improve example for urlparse() (GH-29816) 02 December 2021, 08:52:32 UTC
309110f bpo-40280: Emscripten with_ensurepip=no, second attempt (GH-29884) 01 December 2021, 22:16:27 UTC
9deb834 bpo-40280: Emscripten defaults to --with-ensurepip=no (GH-29873) 01 December 2021, 19:43:07 UTC
c2bb29c bpo-30533: Add docs for `inspect.getmembers_static` (#29874) * Add docs for `inspect.getmembers_static` * update 01 December 2021, 19:23:46 UTC
ee94aa0 bpo-45952: Get the C analyzer tool working again. (gh-29882) There wasn't much that needed to be done. Mostly it was just a few new files that got added. https://bugs.python.org/issue45952 01 December 2021, 18:20:20 UTC
f27bef3 bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) 01 December 2021, 12:24:46 UTC
49444fb bpo-45753: Interpreter internal tweaks (GH-29575) * Split exit paths into exceptional and non-exceptional. * Move exit tracing code to individual bytecodes. * Wrap all trace entry and exit events in macros to make them clearer and easier to enhance. * Move return sequence into RETURN_VALUE, YIELD_VALUE and YIELD_FROM. Distinguish between normal trace events and dtrace events. 01 December 2021, 12:09:36 UTC
0aa0bd0 bpo-45876: Have stdev() also use decimal specific square root. (GH-29869) 01 December 2021, 01:25:57 UTC
a39f46a bpo-45876: Correctly rounded stdev() and pstdev() for the Decimal case (GH-29828) 01 December 2021, 00:20:08 UTC
8a45ca5 bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance (GH-29780) 30 November 2021, 22:37:04 UTC
af8c8ca bpo-30533:Add function inspect.getmembers_static that does not call properties or dynamic properties. (#20911) * Add function inspect.getmembers_static that does not call properties or dynamic properties. * update _getmembers args * Update Misc/NEWS.d/next/Library/2020-06-16-18-00-56.bpo-30533.StL57t.rst Co-authored-by: Itamar Ostricher <itamarost@gmail.com> * Update Lib/inspect.py Co-authored-by: Itamar Ostricher <itamarost@gmail.com> * Removes the copy pasted doc string Co-authored-by: Itamar Ostricher <itamarost@gmail.com> Co-authored-by: Dino Viehland <dinoviehland@gmail.com> 30 November 2021, 18:23:13 UTC
4b97d97 bpo-45476: Disallow using asdl_seq_GET() as l-value (GH-29866) The following internal macros can not longer be used as l-value: * asdl_seq_GET() * asdl_seq_GET_UNTYPED() * asdl_seq_LEN() They are modified to use the _Py_RVALUE() macro. 30 November 2021, 14:13:55 UTC
c19c3a0 bpo-45476: Add _Py_RVALUE() macro (GH-29860) Add a new _Py_RVALUE() macro to prevent using an expression as an l-value. Replace a "(void)" cast with the _Py_RVALUE() macro in the following macros: * PyCell_SET() * PyList_SET_ITEM() * PyTuple_SET_ITEM() * _PyGCHead_SET_FINALIZED() * _PyGCHead_SET_NEXT() * asdl_seq_SET() * asdl_seq_SET_UNTYPED() Add also parentheses around macro arguments in PyCell_SET() and PyTuple_SET_ITEM() macros. 30 November 2021, 11:14:45 UTC
f97ec09 bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801) 30 November 2021, 11:01:44 UTC
9a5dec4 Fix EncodingWarning in Tools/freeze/test/freeze.py (GH-29742) 30 November 2021, 04:16:40 UTC
bd9342d no-issue: remove unused import from test_graphlib.py (GH-29853) 30 November 2021, 02:27:37 UTC
734ed35 bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (GH-29854) 29 November 2021, 22:40:34 UTC
02b5ac6 bpo-45653: fix test_embed on windows (GH-29814) 29 November 2021, 20:27:34 UTC
6266e4a bpo-45917: Add math.exp2() method - return 2 raised to the power of x (GH-29829) Co-authored-by: Mark Dickinson <dickinsm@gmail.com> 29 November 2021, 18:55:43 UTC
c1f93f0 bpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154) Expanded ``astuple()`` docs, warning about deepcopy being applied and providing a workaround. Automerge-Triggered-By: GH:ericvsmith 29 November 2021, 18:10:32 UTC
4141d94 bpo-44391: Remove unused argument from a varargs call. (GH-29843) 29 November 2021, 17:26:50 UTC
992565f bpo-45881: configure --with-freeze-module --with-build-python (GH-29835) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Ethan Smith <ethan@ethanhs.me> 29 November 2021, 16:23:29 UTC
b394af1 bpo-45847: PY_STDLIB_MOD_SIMPLE now checks py_stdlib_not_available (GH-29844) 29 November 2021, 15:34:16 UTC
c4a69a4 bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591) 29 November 2021, 15:22:32 UTC
6ac3c8a bpo-40280: Emscripten systems use .wasm suffix by default (GH-29842) 29 November 2021, 15:01:55 UTC
c1dec95 bpo-45723: Sort the grand AC_CHECK_HEADERS check (GH-29846) Automerge-Triggered-By: GH:tiran 29 November 2021, 14:41:11 UTC
f7a62f2 bpo-45847: Make socket module conditional (GH-29769) 29 November 2021, 13:57:36 UTC
39b60ce [Doc] Add info to logging cookbook about running logging socket listeners i… (GH-29838) 29 November 2021, 13:06:52 UTC
back to top