https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
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
cf1c098 GH-100101: Clarify documentation of zip's strict option (GH-100103) 28 December 2022, 21:24:50 UTC
c4c5790 Restore early-out to factor(). Strengthen tests. (GH-100591) 28 December 2022, 20:29:27 UTC
9eca723 gh-94172: Update docs for params removed in 3.12 (#100431) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> 28 December 2022, 19:43:19 UTC
025b5c3 gh-100540: Remove unused Modules/_ctypes/libffi_osx/ (GH-100543) It was an ancient, modified copy of libffi that has not been in use since GH-22855. 28 December 2022, 19:38:52 UTC
25590eb gh-100540: Remove obsolete '--with-system-ffi' configure option (GH-100544) It has had no effect on non-macOS platforms for a long time, and has had the non-obvious effect of invoking `pkg_config` and not setting `-DUSING_APPLE_OS_LIBFFI` on macOS since GH-22855. 28 December 2022, 19:36:03 UTC
fd4b55f gh-100540: Remove unnecessary '-DMACOSX' for ctypes on macOS (GH-100542) The define was only used to protect a `#pragma clang diagnostic` setting, which is already better guarded by `__clang__` anwyay. 28 December 2022, 18:06:58 UTC
5e1adb4 gh-100577: Replace `assert(0)` with `Py_UNREACHABLE` in `symtable.c` (#100579) 28 December 2022, 15:31:53 UTC
457c1f4 Fix mock code coverage. (#100580) 28 December 2022, 12:36:26 UTC
2d52406 Improve factor() recipe and fix its tests (GH-100576) 28 December 2022, 11:13:58 UTC
984894a Remove skipped test in test for async mocks. (#100559) Remove skipped test. See discussion on https://github.com/python/cpython/pull/25326. Fix is apparently here, but no-one is confident to review and land: https://github.com/python/cpython/pull/25347. 28 December 2022, 10:55:50 UTC
6835184 GH-100192: fix `asyncio` subprocess tests to pass env vars to subprocess (#100569) 28 December 2022, 05:46:04 UTC
b95b1b3 gh-55688: Add note about ending backslashes for raw strings (#94768) Co-authored-by: hauntsaninja <hauntsaninja@gmail.com> 28 December 2022, 05:30:42 UTC
5369bba add tests for `asyncio` transport sockets (#100263) 28 December 2022, 04:37:55 UTC
3da71ff Fix copy-paste error in `Tools/clinic.py` (#100560) 28 December 2022, 04:27:57 UTC
7cf164a GH-100342: check for allocation failure in AC `*args` parsing (#100343) 28 December 2022, 04:16:28 UTC
e97afef GH-100192: add more `asyncio` subprocess tests (#100194) 28 December 2022, 04:12:16 UTC
08e5594 GH-98831: Modernize a ton of simpler instructions (#100545) * load_const and load_fast aren't families for now * Don't decref unmoved names * Modernize GET_ANEXT * Modernize GET_AWAITABLE * Modernize ASYNC_GEN_WRAP * Modernize YIELD_VALUE * Modernize POP_EXCEPT (in more than one way) * Modernize PREP_RERAISE_STAR * Modernize LOAD_ASSERTION_ERROR * Modernize LOAD_BUILD_CLASS * Modernize STORE_NAME * Modernize LOAD_NAME * Modernize LOAD_CLASSDEREF * Modernize LOAD_DEREF * Modernize STORE_DEREF * Modernize COPY_FREE_VARS (mark it as done) * Modernize LIST_TO_TUPLE * Modernize LIST_EXTEND * Modernize SET_UPDATE * Modernize SETUP_ANNOTATIONS * Modernize DICT_UPDATE * Modernize DICT_MERGE * Modernize MAP_ADD * Modernize IS_OP * Modernize CONTAINS_OP * Modernize CHECK_EXC_MATCH * Modernize IMPORT_NAME * Modernize IMPORT_STAR * Modernize IMPORT_FROM * Modernize JUMP_FORWARD (mark it as done) * Modernize JUMP_BACKWARD (mark it as done) 28 December 2022, 01:11:03 UTC
3dc48da gh-100553: Improve accuracy of sqlite3.Row iter test (#100555) 28 December 2022, 00:58:05 UTC
b0ea289 Remove `NoneType` redefinition from `clinic.py` (#100551) 27 December 2022, 16:11:39 UTC
b3da698 gh-94603: micro optimize list.pop (gh-94604) 27 December 2022, 10:55:54 UTC
ce39aaf gh-99509: Add `__class_getitem__` to `multiprocessing.queues.Queue` (#99511) 27 December 2022, 04:50:55 UTC
199507b gh-100520: Fix `rst` markup in `configparser` docstrings (#100524) 26 December 2022, 11:38:49 UTC
3ccc98f Fix name of removed `inspect.Signature.from_builtin` method in 3.11.0a2 changelog (#100525) 26 December 2022, 11:34:18 UTC
ad3c99e gh-92446: Improve argparse choices docs; revert bad change to lzma docs (#94627) Based on the definition of the collections.abc classes, it is more accurate to use "sequence" instead of "container" when describing argparse choices. A previous attempt at fixing this in #92450 was mistaken; this PR reverts that change. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 26 December 2022, 06:22:53 UTC
dbc1e69 gh-99308: Clarify re docs for byte pattern group names (#99311) 25 December 2022, 06:55:27 UTC
b9aa14a gh-100519: simplification to `eff_request_host` in cookiejar.py (#99588) `IPV4_RE` includes a `.`, and the `.find(".") == -1` included here is already testing to make sure there's no dot, so this part of the expression is tautological. Instead use more modern `in` syntax to make it clear what the check is doing here. The simplified implementation more clearly matches the wording in RFC 2965. Co-authored-by: hauntsaninja <hauntsaninja@gmail.com> 25 December 2022, 00:14:51 UTC
046cbc2 gh-100472: Fix docs claim that compileall parameters could be bytes (#100473) 24 December 2022, 20:22:49 UTC
efccd04 [Minor PR] Quotes in documentation changed into code blocks (#99536) Minor formatting fix in documentation Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 24 December 2022, 20:17:39 UTC
2e1a9ce gh-100428: Make float documentation more accurate (#100437) Previously, the grammar did not accept `float("10")`. Also implement mdickinson's suggestion of removing the indirection. 24 December 2022, 20:09:31 UTC
f5b7b19 gh-99535: Add test for inheritance of annotations and update documentation (#99990) 24 December 2022, 20:07:14 UTC
e4b43eb gh-100287: Fix unittest.mock.seal with AsyncMock (#100496) 24 December 2022, 19:39:39 UTC
46e6a28 gh-100474: Fix handling of dirs named index.html in http.server (GH-100475) If you had a directory called index.html or index.htm within a directory, it would cause http.server to return a 404 Not Found error instead of the directory listing. This came about due to not checking that the index was a regular file. I have also added a test case for this situation. Automerge-Triggered-By: GH:merwok 24 December 2022, 18:28:59 UTC
00afa50 gh-99908: Tutorial: Modernize the 'data-record class' example (#100499) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 24 December 2022, 15:23:24 UTC
c6dac12 Remove wrong comment about `repr` in `test_unicode` (#100495) 24 December 2022, 14:48:43 UTC
bdfb694 gh-100357: Convert several functions in `bltinsmodule` to AC (#100358) 24 December 2022, 14:45:47 UTC
0769f95 Misc Itertools recipe tweaks (GH-100493) 24 December 2022, 08:21:30 UTC
2eea959 GH-91166: Implement zero copy writes for `SelectorSocketTransport` in asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> 24 December 2022, 05:51:48 UTC
c122390 GH-91166: Implement zero copy writes for `SelectorSocketTransport` in asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> 24 December 2022, 05:51:11 UTC
0f64206 gh-77771: Add enterabs example in sched (#92716) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 24 December 2022, 05:21:52 UTC
3e46f9f gh-100268: Add is_integer method to int (#100439) This improves the lives of type annotation users of `float` - which type checkers implicitly treat as `int|float` because that is what most code actually wants. Before this change a `.is_integer()` method could not be assumed to exist on things annotated as `: float` due to the method not existing on both types. 24 December 2022, 02:30:27 UTC
a23cb72 gh-100454: Start running SSL tests with OpenSSL 3.1.0-beta1 (#100456) 24 December 2022, 02:04:20 UTC
7ca45e5 gh-94808: improve test coverage of number formatting (#99472) 24 December 2022, 00:03:31 UTC
f89de67 Add "strict" to dotproduct(). Add docstring. Factor-out common code. (GH-100480) 23 December 2022, 23:52:16 UTC
474220e gh-99947: Ensure unreported errors are chained for SystemError during import (GH-99946) 23 December 2022, 23:43:19 UTC
a68e585 gh-68320, gh-88302 - Allow for private `pathlib.Path` subclassing (GH-31691) Users may wish to define subclasses of `pathlib.Path` to add or modify existing methods. Before this change, attempting to instantiate a subclass raised an exception like: AttributeError: type object 'PPath' has no attribute '_flavour' Previously the `_flavour` attribute was assigned as follows: PurePath._flavour = xxx not set!! xxx PurePosixPath._flavour = _PosixFlavour() PureWindowsPath._flavour = _WindowsFlavour() This change replaces it with a `_pathmod` attribute, set as follows: PurePath._pathmod = os.path PurePosixPath._pathmod = posixpath PureWindowsPath._pathmod = ntpath Functionality from `_PosixFlavour` and `_WindowsFlavour` is moved into `PurePath` as underscored-prefixed classmethods. Flavours are removed. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Eryk Sun <eryksun@gmail.com> 23 December 2022, 22:52:23 UTC
5d84966 GH-100425: Improve accuracy of builtin sum() for float inputs (GH-100426) 23 December 2022, 22:35:58 UTC
1ecfd1e bpo-40447: accept all path-like objects in compileall.compile_file (#19883) Signed-off-by: Filipe Laíns <lains@archlinux.org> Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 23 December 2022, 20:19:16 UTC
745545b gh-99482: remove `jython` compatibility parts from stdlib and tests (#99484) 23 December 2022, 20:17:24 UTC
c5726b7 gh-83076: 3.8x speed improvement in (Async)Mock instantiation (#100252) 23 December 2022, 19:41:37 UTC
a98d9ea gh-94155: Reduce hash collisions for code objects (#100183) * Uses a better hashing algorithm to get better dispersion and remove commutativity. * Incorporates `co_firstlineno`, `Py_SIZE(co)`, and bytecode instructions. * This is now the entire set of criteria used in `code_richcompare`, except for `_PyCode_ConstantKey` (which would incorporate the types of `co_consts` rather than just their values). 23 December 2022, 18:15:47 UTC
36d3583 Revert "gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries (GH-100289)" (#100468) This reverts commit c3c7848a48b74a321632202e4bdcf2f465fb1cc6. 23 December 2022, 17:48:43 UTC
c3c7848 gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries (GH-100289) 23 December 2022, 16:26:42 UTC
7fc7909 gh-92216: improve performance of `hasattr` for type objects (GH-99979) 23 December 2022, 15:23:36 UTC
back to top