https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
c4e4b91 Python 3.11.0a5 03 February 2022, 18:37:08 UTC
2d08034 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 03 February 2022, 15:51:05 UTC
734b1f1 bpo-46569: [Enum] fix typo in `StrEnum` docs (GH-31007) 03 February 2022, 15:22:41 UTC
6baa98e bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" (GH-31098) 03 February 2022, 13:48:13 UTC
674ab66 bpo-45885: Add more stats for COMPARE_OP in specialize.c (GH-31040) 03 February 2022, 13:32:52 UTC
e0433c1 bpo-45773: Remove invalid peephole optimizations (GH-31066) 03 February 2022, 10:14:44 UTC
b4bd1e1 bpo-44977: Deprecate delegation of int to __trunc__ (GH-31031) Calling int(a) when type(a) implements __trunc__ but not __int__ or __index__ now raises a DeprecationWarning. 03 February 2022, 09:43:25 UTC
7ffe7ba bpo-46483: Remove `__class_getitem__` from `pathlib.PurePath` (GH-30848) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 03 February 2022, 09:25:10 UTC
0cbdd21 bpo-46565: `del` loop vars that are leaking into module namespaces (GH-30993) 03 February 2022, 09:20:08 UTC
6394e98 Restrict use of Mock objects as specs (GH-31090) Follow-on to https://github.com/python/cpython/pull/25326 This covers cases where mock objects are passed directly to spec. 03 February 2022, 08:41:19 UTC
8726067 bpo-45629: Improve test.support.skip_if_buildbot (GH-31094) It was added as part of #29222 to avoid running freeze tool tests on the buildbots but the logic was wrong so it did not skip tests on typical posix setup buildbots where the worker is launched from cron via an @reboot task and thus have no USER environment variable. This uses the canonical `getpass.getuser()` API rather than rolling its own attempt. 03 February 2022, 05:36:16 UTC
51a95be bpo-45975: Use walrus operator for some idlelib while loops (GH-31083) 03 February 2022, 01:59:24 UTC
164a017 bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (#31015) 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 #31017's win32 conditional and flags. Co-authored-by: Kumar Aditya kumaraditya303 02 February 2022, 20:15:16 UTC
89a0a90 bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086) 02 February 2022, 19:54:27 UTC
e8659b4 bpo-45173: Keep configparser deprecations until Python 3.12 (GH-30952) * Revert "bpo-45173 Remove configparser deprecations" This reverts commit df2284bc416dcccba1125b12af4499c45baabe4f. * bpo-45173: Note these configparser deprecations will be removed in 3.12 02 February 2022, 16:59:39 UTC
38e0b9e bpo-37705: Remove orphaned PC/errmap.mak (GH-29724) After GH-15623 deleted `generrmap.c`, a related mak-file stopped working. The mak contains generrmap-related rules only so it should be removed altogether. Further search for `errmap\.mak|generrmap` regex through content of CPython files shows no dangling reference left. Since generrmap is already effectively removed, this pull request contains no blurp. 02 February 2022, 16:23:30 UTC
0ef0853 bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696) Automerge-Triggered-By: GH:encukou 02 February 2022, 15:57:51 UTC
0d05da1 Add specialization stats for FOR_ITER. (GH-31079) 02 February 2022, 15:56:47 UTC
f66c857 bpo-45459: Add Py_buffer to limited API (GH-29991) - [x] ``Py_buffer`` struct - [x] ``PyBuffer_*()`` API functions - [x] ``PyBUF_*`` constants - [x] ``Py_bf_getbuffer`` and ``Py_bf_releasebuffer`` type slots - [x] ``PyMemoryView_FromBuffer()`` API - [x] tests for limited API - [x] ``make regen-limited-abi`` - [x] documentation update - [ ] export ``PyPickleBuffer*()`` API ??? 02 February 2022, 15:03:10 UTC
08f8301 bpo-43012: remove `pathlib._Accessor` (GH-25701) Per Pitrou: > The original intent for the “accessor” thing was to have a variant that did all accesses under a filesystem tree in a race condition-free way using openat and friends. It turned out to be much too hairy to actually implement, so was entirely abandoned, but the accessor abstraction was left there. https://discuss.python.org/t/make-pathlib-extensible/3428/2 Accessors are: - Lacking any internal purpose - '_NormalAccessor' is the only implementation - Lacking any firm conceptual difference to `Path` objects themselves (inc. subclasses) - Non-public, i.e. underscore prefixed - '_Accessor' and '_NormalAccessor' - Unofficially used to implement customized `Path` objects, but once once [bpo-24132]() is addressed there will be a supported route for that. This patch preserves all existing behaviour. 02 February 2022, 12:38:25 UTC
187930f bpo-46072: Add some frame stats. (GH-31060) 02 February 2022, 11:01:33 UTC
a05866c Remove Python 3.3 compatibility code from overlapped.c (GH-31049) 02 February 2022, 08:16:36 UTC
3483aa6 bpo-46583: remove unused `sys.version_info` check from `selectors` (GH-31023) 02 February 2022, 08:15:02 UTC
06a4911 Add recipe for subslices (GH-31028) 02 February 2022, 04:18:52 UTC
f77beac Fix minor details in the Counter docs (GH-31029) 02 February 2022, 04:18:11 UTC
abcc3d7 bpo-46414: Add typing.reveal_type (#30646) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 02 February 2022, 02:48:55 UTC
b128896 bpo-46602: Do not append conftest.c (GH-31062) The heredoc creation statements use >> to append conftest.c. This can cause tricky build issues if the file is not correctly removed prior to its name being reused (such name is reused several times for different contextual tests during the build). One such result from appending may cause #include <ac_nonexistent.h> to persist when testing to acquire PLATFORM_TRIPLET. This can then lead to downstream issues concerning SOABI. 02 February 2022, 02:38:15 UTC
0611eaf bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069) test_ftplib now silently ignores socket errors to prevent logging unhandled threading exceptions. 02 February 2022, 01:47:40 UTC
53c7808 bpo-46591: Make About IDLE doc link label clickable (GH-30251) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 02 February 2022, 01:20:23 UTC
89b1304 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/22190#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 01 February 2022, 22:33:52 UTC
a0e55a5 bpo-46528: Simplify BUILD_TUPLE/UNPACK_SEQUENCE folding (GH-31039) 01 February 2022, 21:41:32 UTC
bebaa95 bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og (GH-31058) Fix test_gdb.test_pycfunction() for Python built with clang -Og. Tolerate inlined functions in the gdb traceback. When _testcapimodule.c is built by clang -Og, _null_to_none() is inlined in meth_varargs() and so gdb returns _null_to_none() as the frame #1. If it's not inlined, meth_varargs() is the frame #1. 01 February 2022, 17:12:26 UTC
f78be59 bpo-45953: Preserve backward compatibility on some PyThreadState field names. (GH-31038) The gevent project is using the two `PyThreadState` fields I renamed in gh-30590. This PR fixes the names. See #msg412046. 01 February 2022, 17:02:25 UTC
64568ac 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> 01 February 2022, 16:05:02 UTC
0e4bef7 bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 01 February 2022, 15:58:29 UTC
48be46e bpo-46072: Add some object layout and allocation stats (GH-31051) 01 February 2022, 15:05:18 UTC
913e340 bpo-46584: remove check for `py2.3` from `ctypes/test_python_api` (GH-31024) 01 February 2022, 13:56:25 UTC
0515eaf bpo-46600: ./configure --with-pydebug uses -Og with clang (GH-31052) Fix the test checking if the C compiler supports -Og option in the ./configure script to also use -Og on clang which supports it. 01 February 2022, 13:47:12 UTC
b9ebde8 bpo-46564: do not create frame object for super object (GH-31002) 01 February 2022, 13:40:46 UTC
108e66b bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014) 01 February 2022, 10:31:57 UTC
a4cb319 bpo-46355: What's New: Note that PyFrameObject are private (GH-31032) This adds a slightly more detailed explanation of the change. The most important point is that the changed/removed fields were "subject to change" to begin with. 01 February 2022, 10:22:34 UTC
4c0612a bpo-46482: add a test for `typing.Annotation.__new__` (GH-30821) 01 February 2022, 09:58:41 UTC
ee0ac32 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> 31 January 2022, 17:46:09 UTC
7685693 bpo-46407: Fix long_mod refleak (GH-31025) 31 January 2022, 10:41:14 UTC
8fb3649 fFx refleak in isinstance error path (GH-31005) 29 January 2022, 14:34:12 UTC
8b1b27f Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000) Accidentally introduced by GH-24502 29 January 2022, 00:43:36 UTC
18cb2ef bpo-29688: document and test `pathlib.Path.absolute()` (GH-26153) Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Brian Helba <brian.helba@kitware.com> 28 January 2022, 23:40:55 UTC
1f036ed bpo-43112: detect musl as a separate SOABI (GH-24502) musl libc and gnu libc are not ABI compatible so we need set different SOABI for musl and not simply assume that all linux is linux-gnu. Replace linux-gnu with the detected os for the build from config.guess for linux-musl*. 28 January 2022, 23:02:54 UTC
24cc641 bpo-26552: Fixed case where failing `asyncio.ensure_future` did not close the coroutine (#30288) 28 January 2022, 22:24:35 UTC
36f538c bpo-46458: Add tests for context of exception in finally block (GH-30986) 28 January 2022, 20:41:58 UTC
ffa505b bpo-46560: Fix a typo in `typing.ParamSpec's` doc string (GH-30995) 28 January 2022, 18:08:11 UTC
5445e17 bpo-46553: allow bare typing.ClassVar annotations (#30983) These are used in the wild and covered by dataclasses unit tests. Several static type checkers support this pattern. 28 January 2022, 16:58:39 UTC
45faf15 bpo-33125: Enables building traditional installer for Windows ARM64 (GH-30885) Also makes a few general improvements to the build process and removes some dead code. 28 January 2022, 16:48:06 UTC
db77bcd bpo-45925: Update Windows installer to SQLite 3.37.2 (GH-30485) 28 January 2022, 16:29:32 UTC
90ab138 bpo-46072: Add simple stats for Python calls. (GH-30989) 28 January 2022, 15:20:33 UTC
9a24127 bpo-46417: _PyStructSequence_FiniType() updates _Py_RefTotal (GH-30988) 28 January 2022, 13:08:32 UTC
89fd7c3 bpo-46329: Split calls into precall and call instructions. (GH-30855) * Add PRECALL_FUNCTION opcode. * Move 'call shape' varaibles into struct. * Replace CALL_NO_KW and CALL_KW with KW_NAMES and CALL instructions. * Specialize for builtin methods taking using the METH_FASTCALL | METH_KEYWORDS protocol. * Allow kwnames for specialized calls to builtin types. * Specialize calls to tuple(arg) and str(arg). 28 January 2022, 12:42:30 UTC
5a9e423 bpo-46449: deepfreeze get_code() now returns strong ref (GH-30987) 28 January 2022, 12:41:13 UTC
44afdbd bpo-42238: [doc] Avoid hardcoding fast-moving lines in susp-ignored.csv. (GH-30981) 28 January 2022, 09:50:58 UTC
c27a331 bpo-46530: add `"thread_time"` to `test_time.test_get_clock_info` (#30913) 28 January 2022, 05:43:00 UTC
f10dafc bpo-46407: Optimizing some modulo operations (GH-30653) Added new internal functions to compute mod without also computing the quotient. The loops can be leaner then, which leads to modestly but reliably faster execution in contexts that know they don't need the quotient. Code by Jeremiah Vivian (Pascual). 28 January 2022, 00:46:45 UTC
e7a6285 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(). 28 January 2022, 00:35:13 UTC
18ea973 bpo-40170: Remove PyHeapType_GET_MEMBERS() macro (GH-30942) Remove the PyHeapType_GET_MEMBERS() macro. It was exposed in the public C API by mistake, it must only be used by Python internally. Use the PyTypeObject.tp_members member instead. Rename PyHeapType_GET_MEMBERS() to _PyHeapType_GET_MEMBERS() and move it to the internal C API. 27 January 2022, 23:39:52 UTC
0575551 bpo-40170: Move _Py_GetAllocatedBlocks() to pycore_pymem.h (GH-30943) Move _Py_GetAllocatedBlocks() and _PyObject_DebugMallocStats() declarations to pycore_pymem.h. These functions are related to memory allocators, not to the PyObject structure. 27 January 2022, 20:23:22 UTC
6c6a153 bpo-46417: signal: move siginfo_type to the module state (GH-30964) 27 January 2022, 20:21:50 UTC
ace0aa2 bpo-42982: update pbkdf2 example & add another link (GH-30966) Automerge-Triggered-By: GH:gpshead 27 January 2022, 20:18:28 UTC
26b0482 bpo-46476: Simplify and fix _PyStaticCode_Dealloc (GH-30965) 27 January 2022, 19:32:12 UTC
247480a bpo-46541: Generate the global objects initializer. (gh-30941) This change is a prerequisite for generating code for other global objects (like strings in gh-30928). (We borrowed some code from Tools/scripts/deepfreeze.py.) https://bugs.python.org/issue46541 27 January 2022, 18:06:09 UTC
183f8d5 bpo-46098: Add test for multiline syntax error traceback (GH-30695) 27 January 2022, 14:13:12 UTC
aa78287 bpo-44734: Fix floating point precision in test_turtle (GH-30910) 27 January 2022, 13:57:55 UTC
3d2ce34 bpo-46458: emit code for else of a try block immediately after the try body (GH-30751) 27 January 2022, 13:40:44 UTC
c7f810b bpo-46476: Fix memory leak in code objects generated by deepfreeze (GH-30853) Add _Py_Deepfreeze_Fini() and _PyStaticCode_Dealloc() functions. 27 January 2022, 13:03:47 UTC
ecfacc3 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. 27 January 2022, 12:34:55 UTC
82bce54 bpo-46544: Do not leak `x` and `uspace` in textwrap.TextWrapper (GH-30955) 27 January 2022, 11:55:58 UTC
08c0ed2 bpo-23556: [doc] Fix inaccuracy in documentation for raise without args. Improve tests for context in nested except handlers. (GH-29236) 27 January 2022, 10:24:48 UTC
606e496 bpo-40280: Use presence of msvcrt module to detect Windows (GH-30930) 27 January 2022, 09:57:43 UTC
897ce90 bpo-42982: Improve the text on suggested number of iterations of PBKDF2 (GH-24276) Less specific number wording (as there is no one right number - the old 100k is too big for some applications and woefully small for others). We now link to NIST SP 800-132 to tell people what to read in there on how to decide for their application. Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google] 27 January 2022, 08:39:09 UTC
bcafab8 [doc]: Spotted errors while working on rstlint. (GH-30879) Also ignored some `make suspicious` false positives while assuring true positives were properly seen by rstlint. 27 January 2022, 07:57:43 UTC
b50322d bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935) Revert "bpo-45162: Remove many old deprecated unittest features (GH-28268)" This reverts commit b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b. We're deferring this change until 3.12 while upstream projects that use the legacy assertion method names are fixed. See the issue for links to the discussion. Many upstream projects now have issues and PRs filed. 27 January 2022, 04:39:15 UTC
9f08814 bpo-46496: news11-10 for bpo45296 (GH-30937) 27 January 2022, 03:19:32 UTC
fcde0bc bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936) In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current one) and 'Exit' is now 'Exit IDLE' (by closing all windows). In Shell, 'quit()' and 'exit()' mean 'close Shell'. If there are no other windows, this also exits IDLE. 27 January 2022, 03:16:31 UTC
ced5005 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. 27 January 2022, 03:11:51 UTC
6b491b9 bpo-40170: Remove _Py_GetAllocatedBlocks() function (GH-30940) Move _Py_GetAllocatedBlocks() and _PyObject_DebugMallocStats() private functions to the internal C API. 27 January 2022, 02:35:51 UTC
af32b3e bpo-40170: PyType_SUPPORTS_WEAKREFS() becomes a regular function (GH-30938) Convert the PyType_SUPPORTS_WEAKREFS() macro to a regular function. It no longer access the PyTypeObject.tp_weaklistoffset member directly. Add _PyType_SUPPORTS_WEAKREFS() static inline functions, used internally by Python for best performance. 27 January 2022, 02:00:55 UTC
f0a6481 bpo-46502: Remove "How do I tell incomplete input" from FAQ (GH-30925) Since, - Py_CompileString no longer allows to distinguish "incomplete input" from "invalid input" - there is no alternative solution available from the Python C API due to how the new parser works (rewritten in 3.9) - the only supported way is to manually import the codeop module from C and use its API as IDLE does, and accept its own complications it is desirable to remove this Q&A from the official FAQ. 26 January 2022, 23:49:06 UTC
1319408 make regen-all now suggests running: make autoconf (GH-30893) "make autoconf" also runs autoheader, whereas "autoconf" does not. 26 January 2022, 23:35:40 UTC
a9503ac bpo-38472: setup.py uses LC_ALL=C to check the C compiler (GH-30929) Fix GCC detection in setup.py when cross-compiling. The C compiler is now run with LC_ALL=C. Previously, the detection failed with a German locale. 26 January 2022, 23:22:04 UTC
8548366 bpo-46528: Simplify the VM's stack manipulations (GH-30902) 26 January 2022, 20:47:45 UTC
d4a85f1 bpo-35134: Add Include/cpython/descrobject.h (GH-30923) Move Include/descrobject.h non-limited API to a new Include/cpython/descrobject.h header file. 26 January 2022, 16:32:47 UTC
3eb3b4f bpo-43853: Expand test suite for SQLite UDF's (GH-27642) 26 January 2022, 16:26:16 UTC
ac0c6e1 bpo-46527: allow calling enumerate(iterable=...) again (GH-30904) 26 January 2022, 15:46:48 UTC
1e8a3a5 Use existing unbound_local_error label in DELETE_FAST opcode (GH-30882) 26 January 2022, 13:58:28 UTC
d0c690b bpo-46529: increase coverage of `typing.Union.__repr__` method (GH-30911) 26 January 2022, 10:13:02 UTC
b9d8980 bpo-43698: do not use `...` as argument name in docs (GH-30502) 26 January 2022, 10:06:10 UTC
84f0939 bpo-45578: add a test case for `dis.findlabels` (GH-30058) 26 January 2022, 10:05:35 UTC
6e5a193 bpo-46513: Remove AC_C_CHAR_UNSIGNED / __CHAR_UNSIGNED__ (GH-30851) 26 January 2022, 09:03:49 UTC
7cf285d bpo-41844: Update IDLE part of What's New 3.9 to 20228 (GH-30905) 26 January 2022, 04:49:54 UTC
4a49fa6 bpo-48146: Update IDLE part of What's New 3.10 to 2022 (GH-30906) 26 January 2022, 04:48:53 UTC
072f4a4 bpo-46431: use raw string for regex in test (GH-30901) 25 January 2022, 23:52:43 UTC
a275053 Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897) 25 January 2022, 23:14:03 UTC
back to top