https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
3c67ec3 Python 3.12.0a5 07 February 2023, 12:21:15 UTC
7990324 [gh-101072] Fix Blurb for GH-101127 07 February 2023, 09:50:39 UTC
ae62bdd gh-101072: support default and kw default in PyEval_EvalCodeEx for 3.11+ (#101127) Co-authored-by: Łukasz Langa <lukasz@langa.pl> 07 February 2023, 09:34:21 UTC
c4de6b1 gh-85747: Active voice & suggested edits, 'running/stopping loop' & 'callbacks' subsections of asyncio-eventloop.rst (#100270) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 07 February 2023, 05:25:42 UTC
694e346 gh-98831: Move DSL documentation here from ideas repo (#101629) 07 February 2023, 05:03:58 UTC
1fcc0ef gh-99108: Replace SHA2-224 & 256 with verified code from HACL* (#99109) replacing hashlib primitives (for the non-OpenSSL case) with verified implementations from HACL*. This is the first PR in the series, and focuses specifically on SHA2-256 and SHA2-224. This PR imports Hacl_Streaming_SHA2 into the Python tree. This is the HACL* implementation of SHA2, which combines a core implementation of SHA2 along with a layer of buffer management that allows updating the digest with any number of bytes. This supersedes the previous implementation in the tree. @franziskuskiefer was kind enough to benchmark the changes: in addition to being verified (thus providing significant safety and security improvements), this implementation also provides a sizeable performance boost! ``` --------------------------------------------------------------- Benchmark Time CPU Iterations --------------------------------------------------------------- Sha2_256_Streaming 3163 ns 3160 ns 219353 // this PR LibTomCrypt_Sha2_256 5057 ns 5056 ns 136234 // library used by Python currently ``` The changes in this PR are as follows: - import the subset of HACL* that covers SHA2-256/224 into `Modules/_hacl` - rewire sha256module.c to use the HACL* implementation Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 07 February 2023, 02:11:01 UTC
914f8fd gh-59956: Add a Test to Verify GILState Matches the "Current" Thread State (gh-101625) This test should have been in gh-101431. https://github.com/python/cpython/issues/59956 06 February 2023, 22:53:31 UTC
3875276 gh-98831: rewrite COPY and SWAP in the instruction definition DSL (#101620) 06 February 2023, 22:45:18 UTC
949c58f GH-101616: Mention the Docs Discourse forum in the "reporting docs issues" (GH-101617) Fixes https://github.com/python/cpython/issues/101616 06 February 2023, 21:59:45 UTC
132b3f8 gh-59956: Partial Fix for GILState API Compatibility with Subinterpreters (gh-101431) The GILState API (PEP 311) implementation from 2003 made the assumption that only one thread state would ever be used for any given OS thread, explicitly disregarding the case of subinterpreters. However, PyThreadState_Swap() still facilitated switching between subinterpreters, meaning the "current" thread state (holding the GIL), and the GILState thread state could end up out of sync, causing problems (including crashes). This change addresses the issue by keeping the two in sync in PyThreadState_Swap(). I verified the fix against gh-99040. Note that the other GILState-subinterpreter incompatibility (with autoInterpreterState) is not resolved here. https://github.com/python/cpython/issues/59956 06 February 2023, 21:39:25 UTC
262003f gh-101609: Fix "‘state’ may be used uninitialized" warning in `_xxinterpchannelsmodule` (GH-101610) I went with the easiest solution: just removing the offending line. See the issue description with my reasoning. https://github.com/python/cpython/issues/101609 06 February 2023, 21:05:41 UTC
b96b344 gh-101562: typing: add tests for inheritance with NotRequired & Required in parent fields (#101563) 06 February 2023, 19:28:24 UTC
7a25310 gh-101543: Ensure Windows registry path is only used when stdlib can't be found (GH-101544) 06 February 2023, 15:55:32 UTC
46416b9 gh-76961: Fix buildbot failures in test_pep3118 (#101587) This PR fixes the buildbot failures introduced by the merge of #5561, by restricting the relevant tests to something that should work on both 32-bit and 64-bit platforms. It also silences some compiler warnings introduced in that PR. 06 February 2023, 12:25:31 UTC
9ef7e75 gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388) 06 February 2023, 04:58:00 UTC
ef7c2bf gh-101541: [Enum] create flag psuedo-member without calling original __new__ (GH-101590) 06 February 2023, 03:29:06 UTC
d3e2dd6 Trivial Change: Remove unhelpful doc in `datetime.timedelta` (#100164) 06 February 2023, 02:55:37 UTC
ffcb822 gh-101334: Don't force USTAR format in test_tarfile. (GH-101572) That causes the test to fail when run using a high UID as that ancient format cannot represent it. The current default (PAX) and the old default (GNU) both support high UIDs. 05 February 2023, 17:44:57 UTC
f7e9fba bpo-33591: Add support for path like objects to `ctypes.CDLL` (#7032) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> 05 February 2023, 17:36:57 UTC
90d85a9 gh-76961: Fix the PEP3118 format string for ctypes.Structure (#5561) The summary of this diff is that it: * adds a `_ctypes_alloc_format_padding` function to append strings like `37x` to a format string to indicate 37 padding bytes * removes the branches that amount to "give up on producing a valid format string if the struct is packed" * combines the resulting adjacent `if (isStruct) {`s now that neither is `if (isStruct && !isPacked) {` * invokes `_ctypes_alloc_format_padding` to add padding between structure fields, and after the last structure field. The computation used for the total size is unchanged from ctypes already used. This patch does not affect any existing aligment computation; all it does is use subtraction to deduce the amount of paddnig introduced by the existing code. --- Without this fix, it would never include padding bytes - an assumption that was only valid in the case when `_pack_` was set - and this case was explicitly not implemented. This should allow conversion from ctypes structs to numpy structs Fixes https://github.com/numpy/numpy/issues/10528 05 February 2023, 17:10:53 UTC
0672a6c Revert "gh-89381: Fix invalid signatures of math/cmath.log (#101404)" (#101580) This reverts commit 0ef92d979311ba82d4c41b22ef38e12e1b08b13d. 05 February 2023, 16:36:33 UTC
19ac436 gh-101570: Update bundled pip version to 23.0 (#101571) Update bundled pip version to 23.0 This is the current latest version of `pip`. --------- Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 05 February 2023, 11:30:44 UTC
39017e0 gh-101266: Fix __sizeof__ for subclasses of int (#101394) Fix the behaviour of the `__sizeof__` method (and hence the results returned by `sys.getsizeof`) for subclasses of `int`. Previously, `int` subclasses gave identical results to the `int` base class, ignoring the presence of the instance dictionary. <!-- gh-issue-number: gh-101266 --> * Issue: gh-101266 <!-- /gh-issue-number --> 05 February 2023, 10:02:53 UTC
9b60ee9 gh-101221: Add options in the documentation of timeit command (#101222) 05 February 2023, 09:55:36 UTC
6e4a521 Add missing preposition in argparse docs (#101548) 05 February 2023, 09:45:07 UTC
ddd619c Fix detection of presence of time.tzset (gh-101539) (#101540) Resolves gh-101539 Related to gh-31898 05 February 2023, 07:14:15 UTC
5a2b984 GH-100485: Create an alternative code path when an accurate fma() implementation is not available (#101567) 04 February 2023, 23:54:44 UTC
a89e671 gh-101322: Ensure test_zlib.ZlibDecompressorTest runs, fix errors in ZlibDecompressor (#101323) * Ensure test_zlib.ZlibDecompressorTest actually runs, fix errors in ZlibDecompressor. 04 February 2023, 20:07:30 UTC
144aaa7 gh-101282: Update BOLT --split-functions flag not to use deprecated u… (gh-101557) gh-101282: Update BOLT --split-functions flag not to use deprecated usage 04 February 2023, 07:55:31 UTC
cef9de6 GH-56426: Add cross-reference to the documentation for faulthandler, traceback, and pdb. (#101157) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 04 February 2023, 03:49:29 UTC
f11a3d1 Add missing `versionadded` directive for `PyCode_Addr2Location` (#101347) 04 February 2023, 03:33:28 UTC
c67b005 gh-101524: Split Up the _xxsubinterpreters Module (gh-101526) This is step 1 in potentially dropping all the "channel"-related code. Channels have already been removed from PEP 554. https://github.com/python/cpython/issues/101524 04 February 2023, 01:14:43 UTC
d4c410f gh-84559: Remove the new multiprocessing warning, too disruptive. (#101551) This reverts the core of #100618 while leaving relevant documentation improvements and minor refactorings in place. 03 February 2023, 23:20:46 UTC
f6c53b8 gh-101522: Allow overriding Windows dependencies versions and paths using MSBuild properties (GH-101523) 03 February 2023, 18:08:34 UTC
433fb3e gh-98831: rewrite MAKE_FUNCTION and BUILD_SLICE in the instruction definition DSL (#101529) 03 February 2023, 14:40:45 UTC
04e06e2 gh-98831: rewrite SEND, GET_YIELD_FROM_ITER, RETURN_GENERATOR in the instruction definition DSL (#101516) 03 February 2023, 11:30:21 UTC
a52cc98 gh-101277: Port more `itertools` static types to heap types (#101303) Add dropwhile, takewhile, starmap, combinations*, and permutations types to module state. 03 February 2023, 09:54:27 UTC
45d014e docs: replace PyPI description with link (#101506) 03 February 2023, 07:23:11 UTC
5c39daf gh-100920: Update documentation for `asyncio.StreamWriter.wait_closed` (#101514) 03 February 2023, 07:18:39 UTC
5dcae3f gh-84559: skip the test when no multiprocessing (wasm, etc) (#101530) skip test when no _multiprocessing (wasm, etc) 03 February 2023, 01:14:23 UTC
1b60456 gh-100925: Move array methods under class in array doc (#101485) * Move array methods under class in array doc * Fix a few internal references related to the touched lines 03 February 2023, 00:03:27 UTC
0ca67e6 GH-84559: Deprecate fork being the multiprocessing default. (#100618) This starts the process. Users who don't specify their own start method and use the default on platforms where it is 'fork' will see a DeprecationWarning upon multiprocessing.Pool() construction or upon multiprocessing.Process.start() or concurrent.futures.ProcessPool use. See the related issue and documentation within this change for details. 02 February 2023, 23:50:35 UTC
618b7a8 gh-98705: Fix AIX build by undefining `__bool__` in C (#98768) 02 February 2023, 20:32:33 UTC
ba4731d gh-96305: Fix AIX build by avoiding subprocess during bootstrap (#96429) * Fix AIX build by avoiding `subprocess` during bootstrap. 02 February 2023, 20:30:49 UTC
24cbc7a docs: Fix enum reassign `str` documentation (GH-101507) 02 February 2023, 20:12:57 UTC
0675b8f gh-98831: rewrite RERAISE and CLEANUP_THROW in the instruction definition DSL (#101511) 02 February 2023, 10:02:57 UTC
ee21110 Docs: improve accuracy of sqlite3 `check_same_thread` parameter (#101351) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 01 February 2023, 23:52:29 UTC
ae9b38f gh-98831: Modernize the LOAD_GLOBAL family (#101502) 01 February 2023, 21:12:49 UTC
eda6091 gh-101467: Correct py.exe handling of prefix matches and cases when only one runtime is installed (GH-101468) 01 February 2023, 21:06:56 UTC
b91b42d gh-98831: rewrite PUSH_EXC_INFO and conditional jumps in the instruction definition DSL (#101481) 01 February 2023, 19:38:06 UTC
7840ff3 gh-98831: Modernize the LOAD_ATTR family (#101488) 01 February 2023, 18:56:52 UTC
95fb0e0 gh-101498 : Fix asyncio.Timeout example in docs (#101499) Doc/library/asyncio-task.rst#timeout 01 February 2023, 18:08:31 UTC
62251c3 gh-101454: fix documentation for END_ASYNC_FOR (#101455) 01 February 2023, 12:49:59 UTC
2b3e02a gh-101277: Isolate itertools, add group and _grouper types to module state (#101302) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 01 February 2023, 11:41:30 UTC
cc407b9 gh-101317: Add `ssl_shutdown_timeout` parameter for `asyncio.StreamWriter.start_tls` (#101335) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 01 February 2023, 11:03:59 UTC
75227fb datetime.rst: fix combine() signature (#101490) The default `tzinfo` param of the `combine()` signature pseudocode was erroneously `self.tzinfo`. `self` has no meaning in the context of a classmethod, and the datetime class itself has no `tzinfo` attribute. The correct default pseudocode is `time.tzinfo`, reflecting that the default is the `tzinfo` attribute of the `time` parameter. 01 February 2023, 10:01:28 UTC
76efcb4 GH-100288: Skip extra work when failing to specialize LOAD_ATTR (GH-101354) 31 January 2023, 21:28:32 UTC
2753cf2 gh-101409: Improve generated clinic code for self type checks (#101411) 31 January 2023, 20:42:03 UTC
0062f53 gh-98831: rewrite BEFORE_ASYNC_WITH and END_ASYNC_FOR in the instruction definition DSL (#101458) 31 January 2023, 18:47:50 UTC
f80db6c gh-101469: Optimise get_io_state() by using _PyModule_GetState() (GH-101470) Automerge-Triggered-By: GH:erlend-aasland 31 January 2023, 18:19:11 UTC
20c11f2 gh-101440: fix json snippet error in logging-cookbook.rst (#101439) 31 January 2023, 15:30:38 UTC
df0068c gh-99276 - Updated Doc/faq/general.rst (#101396) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 31 January 2023, 15:16:17 UTC
1a62ae8 Add JOBS parameter to docs Makefile (#101395) 31 January 2023, 13:29:29 UTC
29a858b gh-98831: rewrite GET_LEN, GET_ITER, BEFORE_WITH and a few simple opcodes in the instruction definition DSL (#101443) 31 January 2023, 10:23:15 UTC
909a674 gh-77607: Improve accuracy of os.path.join docs (#101406) This is a follow-up to #100811. One of the changes in that PR isn't accurate in that `os.path.join('', '')` will not end in a separator. This reverts that change to the previous wording that used "only", but explicitly calls out the case where the last part ends in a separator, which is what caused confusin in #77607 and motivated the change in #100811. 31 January 2023, 05:39:30 UTC
ef09bf6 Fixes typo in asyncio.TaskGroup context manager code example (#101449) 31 January 2023, 05:36:40 UTC
04ab767 gh-98831: Clean up and add cache size static_assert to macro (#101442) 31 January 2023, 01:27:51 UTC
af7b2db gh-99955: use SUCCESS/ERROR return values in optimizer and assembler. Use RETURN_IF_ERROR where appropriate. Fix a couple of bugs. (#101412) 31 January 2023, 00:06:19 UTC
e867c1b gh-101400: Fix incorrect lineno in exception message on continue/break which are not in a loop (#101413) 30 January 2023, 23:33:54 UTC
28db978 gh-101229: Add tests for aliases of imported names (#101230) 30 January 2023, 19:49:06 UTC
7a37523 GH-101369: Allow macros as family members (#101399) Also check for instructions straddling families (this includes macro parts). 30 January 2023, 19:23:57 UTC
e11fc03 gh-59956: Clarify Runtime State Status Expectations (gh-101308) A PyThreadState can be in one of many states in its lifecycle, represented by some status value. Those statuses haven't been particularly clear, so we're addressing that here. Specifically: * made the distinct lifecycle statuses clear on PyThreadState * identified expectations of how various lifecycle-related functions relate to status * noted the various places where those expectations don't match the actual behavior At some point we'll need to address the mismatches. (This change also includes some cleanup.) https://github.com/python/cpython/issues/59956 30 January 2023, 19:07:48 UTC
ea23271 gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424) 30 January 2023, 17:56:33 UTC
c1b1f51 GH-101291: Refactor the `PyLongObject` struct into object header and PyLongValue struct. (GH-101292) 30 January 2023, 10:03:04 UTC
f5a3d91 gh-98831: Support conditional effects; use for LOAD_ATTR (#101333) 30 January 2023, 01:28:39 UTC
c4170c3 gh-39615: fix warning on return type mismatch (#101407) 30 January 2023, 00:41:27 UTC
0ef92d9 gh-89381: Fix invalid signatures of math/cmath.log (#101404) 29 January 2023, 19:50:10 UTC
666c084 Fix trivial typo in shebang example (GH-101385) The example was showing the current version, but should be pinned to 3.7 to match the example command. 28 January 2023, 13:18:04 UTC
84483aa GH-100485: Add extended accuracy test. Switch to faster fma() based variant. GH-101383) 28 January 2023, 12:29:21 UTC
db757f0 gh-101386: fix typos found by codespell (#101387) 28 January 2023, 09:57:40 UTC
052f53d gh-39615: Add warnings.warn() skip_file_prefixes support (#100840) `warnings.warn()` gains the ability to skip stack frames based on code filename prefix rather than only a numeric `stacklevel=` via a new `skip_file_prefixes=` keyword argument. 28 January 2023, 02:35:14 UTC
8cef9c0 gh-101341: Remove unncessary enum._power_of_two function (gh-101342) 28 January 2023, 02:08:08 UTC
b5c4d60 [doc] Add a section on logging handler configuration order. (GH-101380) 27 January 2023, 19:01:30 UTC
d083df3 [doc] Add some notices to logging configuration documentation. (GH-101373) 27 January 2023, 14:50:09 UTC
737d367 gh-77532: Minor tweaks to allow compiling with PlatformToolset=ClangCL on Windows (GH-101352) To use this, ensure that clang support was selected in Visual Studio Installer, then set the PlatformToolset environment variable to "ClangCL" and build as normal from the command line. It remains unsupported, but at least is possible now for experimentation. 27 January 2023, 14:45:08 UTC
7956e0c Speed-up and improve accuracy with Rump Algorithms (3.1) and (5.10) (GH-101366) 27 January 2023, 07:56:19 UTC
e5b08dd gh-101000: Add os.path.splitroot() (#101002) Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 27 January 2023, 00:28:27 UTC
37f15a5 Fix typos in pystate.c file (#101348) 26 January 2023, 23:04:11 UTC
8d18d1f gh-99834: Update bundled copy of Tcl/Tk to 8.6.13.0 on Windows (GH-101307) 26 January 2023, 20:47:24 UTC
9f2c479 gh-98831: Fix two bugs in case generator (#101349) Fix two bugs in case generator - UndefinedLocalError when generating metadata for an 'op' - Accidental newline inserted in test_generator.py 26 January 2023, 17:15:05 UTC
409f533 gh-60580: Fix a wrong type of `ctypes.wintypes.BYTE` (#97579) Created from a patch file attached to an issue, by Anatoly Techtonik. 26 January 2023, 14:16:27 UTC
f2ac951 gh-85100: Migrate BPO link to the GitHub link for malloc warnings (gh-101343) 26 January 2023, 12:58:35 UTC
dfad678 gh-99952: [ctypes] fix refcount issues in from_param() result. (#100169) Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`. This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes. 26 January 2023, 08:28:34 UTC
f5ad63f datetime.rst: improve combine() docs (#101338) The explanation on handling of datetime as the date arg was confusingly mixed with an unrelated item, and lacked proper arg name formatting. 26 January 2023, 07:25:43 UTC
a226278 gh-100522 Add a test for 'futures.as_completed' timing out with a non-zero timeout value (#100523) 26 January 2023, 07:01:11 UTC
73245d0 gh-94518: Rename `group*` to `extra_group*` to avoid confusion (#101054) * Rename `group*` to `extra_group*` to avoid confusion * Rename `num_groups` into `extra_group_size` * Rename `groups_list` to `extra_groups_packed` 26 January 2023, 06:50:33 UTC
b400219 gh-98831: rewrite RAISE_VARARGS in the instruction definition DSL (#101306) 25 January 2023, 22:29:56 UTC
6162a0e Fix incorrect versions in magic number comments (GH-101301) 25 January 2023, 21:30:33 UTC
19f90d6 gh-98831: add variable stack effect support to cases generator (#101309) 25 January 2023, 20:41:03 UTC
a178ba8 gh-101326: Fix regression when passing None to FutureIter.throw (#101327) 25 January 2023, 20:01:01 UTC
back to top