https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
3d5d3f7 Python 3.12.0a4 10 January 2023, 12:09:15 UTC
f07daaf GH-100117: Make `co_lines` more efficient (GH-100447) 10 January 2023, 10:56:53 UTC
b2f7b2e gh-100916: Convert argument to appropriate type (GH-100917) 10 January 2023, 10:17:57 UTC
35650f2 Fix typos in Doc folder (#100880) 10 January 2023, 09:04:06 UTC
57a5259 gh-100180: Update macOS installer to OpenSSL 1.1.1s (GH-100908) 10 January 2023, 05:10:31 UTC
be23a20 gh-100893: update bpo reference in Mac README (GH-100905) 10 January 2023, 03:37:10 UTC
3f3c78e GH-98831: Refactor instr format code and change to enum (#100895) 09 January 2023, 23:53:01 UTC
d7ab714 gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100901) 09 January 2023, 23:50:59 UTC
e098137 bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376) 09 January 2023, 21:43:09 UTC
61762b9 GH-100126: Skip incomplete frames in more places (GH-100613) 09 January 2023, 20:20:04 UTC
2e80c2a gh-100882: Improve `test_pickling` case in `test_ast.py` (#100883) 09 January 2023, 19:20:25 UTC
f082098 gh-99191: Use correct check for MSVC C++ version support in _wmimodule.cpp (GH-100381) 09 January 2023, 17:48:24 UTC
36f2329 gh-100873: Fix "‘lo’ may be used uninitialized in this function" warning in `mathmodule.c` (#100881) 09 January 2023, 15:51:24 UTC
837ba05 GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` callback (#13364) 09 January 2023, 10:13:04 UTC
4e544ea fix up mock tests coverage (#100874) 09 January 2023, 10:08:56 UTC
0cd597f gh-100764: add `pycore_frame.h` to PYTHON_HEADERS and Windows build files(#100765) 09 January 2023, 09:05:56 UTC
7a50d6b GH-100813: Add `socket.IP_PKTINFO` constant (#10294) 09 January 2023, 09:00:40 UTC
e47b139 Update copyright year in README (GH-100863) Co-authored-by: HARSHA VARDHAN <75431678+Thunder-007@users.noreply.github.com> 09 January 2023, 02:53:56 UTC
bc0a686 gh-87447: Fix walrus comprehension rebind checking (#100581) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 08 January 2023, 22:51:29 UTC
8d69828 Update additional copyright years to 2023. (GH-100859) 08 January 2023, 22:05:28 UTC
9a68ff1 GH-100805: Support numpy.array() in random.choice(). (GH-100830) 08 January 2023, 19:40:35 UTC
87d3bd0 gh-100833: Remove 'volatile' qualifiers in fsum algorithm (#100845) This PR removes the `volatile` qualifier on various intermediate quantities in the `math.fsum` implementation, and updates the notes preceding the algorithm accordingly (as well as fixing some of the exsting notes). See the linked issue #100833 for discussion. 08 January 2023, 19:40:15 UTC
b139bcd GH-100485: Tweaks to sumprod() (GH-100857) 08 January 2023, 19:38:24 UTC
11f9932 Update copyright years to 2023. (gh-100848) 08 January 2023, 15:13:25 UTC
0741da8 GH-90829: Fix empty iterable error message in min/max (#31181) 08 January 2023, 13:51:20 UTC
b034fd3 gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" (#100745) * gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" This reverts commit 7c83eaa536d2f436ae46211ca48692f576c732f0. 08 January 2023, 12:54:40 UTC
53455a3 gh-100783: fix os.path.join documentation (#100811) - Use "drive", not "drive letter", because of UNC paths - Previous components are not thrown away from relative drive letters - Use "segment" instead of "component" for consistency with pathlib - Other miscellaneous improvements 08 January 2023, 08:51:30 UTC
909982e gh-91851: Micro optimizations for arithmetic between Fractions (#25518) Adapted from https://github.com/python/cpython/pull/24779/commits/046c84e8f9 This makes arithmetic between Fractions with small components just as fast as before python/cpython#24779, at some expense of mixed arithmetic (e.g. Fraction + int). 08 January 2023, 08:34:20 UTC
6d3bc4a gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (#100825) 08 January 2023, 08:07:16 UTC
a214188 gh-100776: Fix misleading default value in help(input) (#100788) 08 January 2023, 07:57:41 UTC
df3851f GH-100485: Convert from Fast2Sum to 2Sum (GH-100836) 08 January 2023, 03:37:08 UTC
951303f gh-100815: Normalize `types` module usage in `copy` module (#100816) 07 January 2023, 21:29:53 UTC
6746135 gh-100792: Make `email.message.Message.__contains__` twice as fast (#100793) 07 January 2023, 21:26:05 UTC
47b9f83 GH-100485: Add math.sumprod() (GH-100677) 07 January 2023, 18:46:35 UTC
deaf090 gh-100673: Removed erroneous note in the get_type_hints docs (#100701) Removed erroneous note in the get_type_hints docs typing.get_type_hints still includes base class type hints. 07 January 2023, 17:31:47 UTC
7116030 gh-88696: clean up dead argument to compiler_make_closure (GH-100806) 07 January 2023, 12:20:48 UTC
9e7d726 gh-96127: Fix `inspect.signature` call on mocks (#96335) 07 January 2023, 10:49:15 UTC
a109454 gh-100690: [mock] hide `ATTRIB_DENY_LIST` and make it immutable (#100819) 07 January 2023, 10:25:05 UTC
26ff436 Add barneygale to CODEOWNERS for pathlib (#100808) 06 January 2023, 20:38:12 UTC
1d4d677 gh-100690: Raise an AttributeError when the assert_ prefix is forgotten when using Mock (#100691) Mock objects which are not unsafe will now raise an AttributeError when accessing an attribute that matches the name of an assertion but without the prefix `assert_`, e.g. accessing `called_once` instead of `assert_called_once`. This is in addition to this already happening for accessing attributes with prefixes assert, assret, asert, aseert, and assrt. 06 January 2023, 18:38:50 UTC
9ffbc58 GH-98831: Add some tests for generate_cases.py (#100763) - This doesn't cover everything (far from it) but it's a start. - This uses pytest, which isn't ideal, but was quickest to get started. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 06 January 2023, 16:04:20 UTC
0e64026 gh-91851: Trivial optimizations in Fraction (#100791) Make some trivial performance optimizations in Fraction Uses private class attributes `_numerator` and `_denominator` in place of the `numerator` and `denominator` property accesses. Co-authored-by: hauntsaninja <hauntsaninja@gmail.com> 06 January 2023, 15:37:34 UTC
15c4478 gh-100758: Refactor initialisation of frame headers into a single function (_PyFrame_Initialize) (GH-100759) 06 January 2023, 14:55:56 UTC
7806812 GH-99005: More intrinsics (GH-100774) * Remove UNARY_POSITIVE, LIST_TO_TUPLE and ASYNC_GEN_WRAP, replacing them with intrinsics. 06 January 2023, 14:47:57 UTC
659c260 gh-99026 update dataclasses docs for when annotations are inspected (gh-100798) update dataclasses docs for when annotations are inspected 06 January 2023, 14:26:44 UTC
2f2fa03 gh-87691: clarify use of anchor in pathlib docs (#100782) This is feedback from https://github.com/python/cpython/pull/100737#discussion_r1062968696 This matches the wording from the `os.path.join` docs better: https://docs.python.org/3/library/os.path.html#os.path.join In particular, the previous use of "anchor" was incorrect given the pathlib definition of "anchor". Co-authored-by: Barney Gale <barney.gale@gmail.com> 06 January 2023, 01:49:33 UTC
0a7936a gh-90104: avoid RecursionError on recursive dataclass field repr (gh-100756) Avoid RecursionError on recursive dataclass field repr 06 January 2023, 00:19:40 UTC
cc87487 gh-86082: bpo-41916: allow cross-compiled python to have -pthread set for CXX (#22525) When cross-compiling, the compile/run test for -pthread always fails so -pthread will never be automatically set without an override from the cache. ac_cv_pthread can already be overridden, so do the same thing for ac_cv_cxx_thread. 05 January 2023, 22:57:31 UTC
1ae619c gh-87691: add an absolute path pathlib example in / operator docs (GH-100737) The behaviour is fully explained a couple paragraphs above, but it may be useful to have a brief example to cover the behaviour. Automerge-Triggered-By: GH:hauntsaninja 05 January 2023, 22:55:35 UTC
d84b1a9 Add hauntsaninja as tomllib CODEOWNER (#100779) 05 January 2023, 22:28:02 UTC
7fba99e gh-100562: improve performance of `pathlib.Path.absolute()` (GH-100563) Increase performance of the `absolute()` method by calling `os.getcwd()` directly, rather than using the `Path.cwd()` class method. This avoids constructing an extra `Path` object (and the parsing/normalization that comes with it). Decrease performance of the `cwd()` class method by calling the `Path.absolute()` method, rather than using `os.getcwd()` directly. This involves constructing an extra `Path` object. We do this to maintain a longstanding pattern where `os` functions are called from only one place, which allows them to be more readily replaced by users. As `cwd()` is generally called at most once within user programs, it's a good bargain. ```shell # before $ ./python -m timeit -s 'from pathlib import Path; p = Path("foo", "bar")' 'p.absolute()' 50000 loops, best of 5: 9.04 usec per loop # after $ ./python -m timeit -s 'from pathlib import Path; p = Path("foo", "bar")' 'p.absolute()' 50000 loops, best of 5: 5.02 usec per loop ``` Automerge-Triggered-By: GH:AlexWaygood 05 January 2023, 22:11:50 UTC
af5149f gh-98831: Regenerate Python/opcode_metadata.h (GH-100778) 05 January 2023, 21:47:18 UTC
14b7f00 GH-98831: Update generate_cases.py: register inst, opcode_metadata.h (#100735) (These aren't used yet, but may be coming soon, and it's easier to keep this tool the same between branches.) Added a sanity check for all this to compile.c. Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> 05 January 2023, 21:01:07 UTC
2818714 GH-99005: Add `CALL_INTRINSIC_1` instruction (GH-100771) * Remove PRINT_EXPR instruction * Remove STOPITERATION_ERROR instruction * Remove IMPORT_STAR instruction 05 January 2023, 16:05:51 UTC
f20c553 GH-100288: Remove LOAD_ATTR_METHOD_WITH_DICT instruction. (GH-100753) 05 January 2023, 12:20:09 UTC
105e373 GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100702) 05 January 2023, 03:34:30 UTC
31b639a Drop myself from pathlib maintenance (#100757) 04 January 2023, 22:59:48 UTC
7f1eefc gh-100739: Respect mock spec when checking for unsafe prefixes (#100740) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 04 January 2023, 22:31:29 UTC
52017db gh-100747: some compiler macros use c instead of C to access the compiler (#100748) 04 January 2023, 20:19:20 UTC
15aecf8 GH-100719: Remove the `co_nplaincellvars` field from code objects. (GH-100721) 04 January 2023, 15:41:39 UTC
c31e356 gh-100720: refactor calculation of number of frame slots for a code object into the new function _PyFrame_NumSlotsForCodeObject (#100722) 04 January 2023, 13:37:06 UTC
5fb1c08 docs: fix `ssizeobjargproc` parameters (#100736) 04 January 2023, 08:17:42 UTC
ba8dcdb GH-86508: skip binding to local addresses of different family in `asyncio.open_connection` (#100615) 04 January 2023, 08:00:26 UTC
a286caa gh-91219: http - use subclassing to override index_pages attribute (GH-100731) Remove previously added parameter to `__init__`, and recommend subclassing to modify the `index_pages` attribute instead. 03 January 2023, 23:20:08 UTC
64ed609 [Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709) 03 January 2023, 22:08:50 UTC
e196d8c gh-100700: Remove Date and Release fields in past whatsnews (GH-100728) 03 January 2023, 22:00:26 UTC
e6d4440 gh-100146: Steal references from stack when building a list (#100147) When executing the BUILD_LIST opcode, steal the references from the stack, in a manner similar to the BUILD_TUPLE opcode. Implement this by offloading the logic to a new private API, _PyList_FromArraySteal(), that works similarly to _PyTuple_FromArraySteal(). This way, instead of performing multiple stack pointer adjustments while the list is being initialized, the stack is adjusted only once and a fast memory copy operation is performed in one fell swoop. 03 January 2023, 18:49:49 UTC
b3722ca gh-95882: fix regression in the traceback of exceptions propagated from inside a contextlib context manager (#95883) 03 January 2023, 15:47:13 UTC
8586949 gh-89419: gdb: fix bug causing `AttributeError` in py-locals when no frame is available (#100611) 03 January 2023, 14:56:57 UTC
8b1f125 gh-81611: Improve `range` paragraph in 8.3 of language reference (#98353) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 03 January 2023, 08:16:51 UTC
73097d9 gh-89727: Improve os.walk complexity (#100671) 02 January 2023, 21:41:19 UTC
d7e7f79 gh-100637: Fix int and bool __sizeof__ calculation to include the 1 element ob_digit array for 0 and False (#100663) Fixes behaviour where int (and subtypes like bool) __sizeof__ under-reports true size as it did not take into account the size 1 `ob_digit` array for the zero int. Co-authored-by: Mark Dickinson <dickinsm@gmail.com> 02 January 2023, 21:11:49 UTC
9dee973 gh-100676: Improve description for venv --upgrade-deps (GH-100678) 02 January 2023, 12:17:58 UTC
7feb6d2 fix `grammer` -> `grammar` typo in expressions.rst (GH-100683) Automerge-Triggered-By: GH:AlexWaygood 02 January 2023, 11:49:06 UTC
254ab42 Fix deprecation doc for `PyEval_InitThreads` (#100667) 02 January 2023, 11:13:55 UTC
edfbf56 gh-100428: Make int documentation more accurate (#100436) - Remove first link to lexical definition of integer literal, since it doesn't apply (differs in handling of leading zeros, base needs to be explicitly specified, unicode digits are allowed) - Better describe handling of leading zeros, unicode digits, underscores - Base 0 does not work exactly as like a code literal, since it allows Unicode digits. Link code literal to lexical definition of integer literal. 02 January 2023, 03:14:18 UTC
b7a68ab gh-99953: Purge mention of numeric param style from sqlite3 docs (#100630) The PEP-249 numeric style has never been supported by sqlite3. 01 January 2023, 22:26:23 UTC
2366b27 build(deps): bump actions/stale from 6 to 7 (#100656) 01 January 2023, 21:49:10 UTC
447d061 gh-97930: Apply changes from importlib_resources 5.10. (GH-100598) 01 January 2023, 16:07:32 UTC
ba1342c gh-87980: Fix the error message for disallowed __weakref__ slots (#25362) Fix the error message for disallowed `__weakref__` slots. 01 January 2023, 15:41:33 UTC
1aab269 gh-100201: Document behavior with a bare `yield` statement (#100416) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 01 January 2023, 15:36:13 UTC
1d1480f gh-96773 Fix documentation of socket backlog (#96778) 01 January 2023, 15:06:17 UTC
d52d494 gh-100649: Update native_thread_id after fork (gh-100650) Update native_thread_id after fork 01 January 2023, 14:20:38 UTC
e83f88a gh-100488: Add is_integer method to fractions.Fraction (#100489) 01 January 2023, 08:44:48 UTC
71159a8 gh-100546: Remove incorrect positional-only marker from eval (#100547) All the arguments are positional-only. The current status after #99476 seems to be to not use positional-only markers in documentation, hence I've simply removed it. 01 January 2023, 00:59:31 UTC
1f6c87c IDLE - fix module browser test (#100647) 01 January 2023, 00:01:44 UTC
baf2349 Fix `pydtrace.d` path comment in `Include/pydtrace.h` (#28539) 31 December 2022, 17:10:25 UTC
ac7a0a9 GH-87002: fix caching documentation in `struct` module (#24164) 31 December 2022, 16:57:58 UTC
98308db gh-100633 Tutorial: Fix dataclasses import (#100638) import dataclass not dataclasses from dataclasses 31 December 2022, 10:23:18 UTC
636e9dd gh-94808: Improve coverage of dictresize (GH-100619) 31 December 2022, 09:15:30 UTC
f59c7f8 GH-85979: Clarify specification of `object.__await__` (#22320) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 31 December 2022, 06:24:04 UTC
4ebaae8 Improve comments in itertools uniquification recipes (GH-100631) 31 December 2022, 02:36:38 UTC
4652182 gh-95778: add doc missing in some places (GH-100627) 30 December 2022, 21:21:15 UTC
f4fcfdf gh-100616: Document 'attr' parameter for window.vline() in curses module (#24961) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> 30 December 2022, 16:35:04 UTC
79c10b7 gh-99433: Fix `doctest` failure on `types.MethodWrapperType` (#99434) 30 December 2022, 11:55:01 UTC
894f2c3 gh-100228: Warn from os.fork() if other threads exist. (#100229) Not comprehensive, best effort warning. There are cases when threads exist on some platforms that this code cannot detect. macOS when API permissions allow and Linux with a readable /proc procfs present are the currently supported cases where a warning should show up reliably. Starting with a DeprecationWarning for now, it is less disruptive than something like RuntimeWarning and most likely to only be seen in people's CI tests - a good place to start with this messaging. 29 December 2022, 22:41:39 UTC
2df82db gh-100540: Remove obsolete Modules/_ctypes/darwin/ dlfcn shim (GH-100541) As far as I can tell, this hasn't been actually used since Mac OS X 10.2. 29 December 2022, 22:13:28 UTC
7223d50 gh-100583: Improve the `pydoc` documentation (#100590) 29 December 2022, 15:17:20 UTC
7685636 gh-100600: Fix "coroutine was never awaited" warning in `test_coroutines` (#100601) 29 December 2022, 15:13:38 UTC
f10f503 gh-100585: Fixed a bug where importlib.resources.as_file was leaving file pointers open (GH-100586) * gh-100585: Fixed open fp bug in the imporlib module * Added news for gh-100585 28 December 2022, 21:31:43 UTC
back to top