https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
3ddfa55 Python 3.11.0a6 07 March 2022, 12:32:18 UTC
3b3be05 bpo-46940: Don't override existing AttributeError suggestion information (GH-31710) When an exception is created in a nested call to PyObject_GetAttr, any external calls will override the context information of the AttributeError that we have already placed in the most internal call. This will cause the suggestions we create to nor work properly as the attribute name and object that we will be using are the incorrect ones. To avoid this, we need to check first if these attributes are already set and bail out if that's the case. 07 March 2022, 12:23:11 UTC
5c06dba bpo-46937: convert remaining functions to AC in _weakref (GH-31705) 07 March 2022, 09:57:45 UTC
496c428 bpo-43292: Fix file leak in `ET.iterparse()` when not exhausted (GH-31696) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 07 March 2022, 09:31:46 UTC
b748a36 Use assertEqual, not assertEquals, in test_unicode (GH-31718) Fixes a DeprecationWarning 07 March 2022, 07:32:51 UTC
e38d0df Clean up CODEOWNERS (#31715) crypto-team apparently doesn't exist and skrah no longer has write access. Thanks @isidentical for noticing this. 07 March 2022, 02:04:58 UTC
55a5e17 bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699) 06 March 2022, 19:49:27 UTC
7f07b5e Update grammar_grapher with the new forced (&&) directive (#31704) 06 March 2022, 14:26:28 UTC
eafec26 bpo-14156: Make argparse.FileType work correctly for binary file modes when argument is '-' (GH-13165) Also made modes containing 'a' or 'x' act the same as a mode containing 'w' when argument is '-' (so 'a'/'x' return sys.stdout like 'w', and 'ab'/'xb' return sys.stdout.buffer like 'wb'). 06 March 2022, 11:49:42 UTC
602024e bpo-46921: Vectorcall support for `super()` (GH-31687) Co-Authored-By: Dong-hee Na <donghee.na@python.org> 06 March 2022, 06:21:28 UTC
2d8b764 bpo-46864: Deprecate PyBytesObject.ob_shash. (GH-31598) 06 March 2022, 02:39:10 UTC
6927632 Remove trailing spaces (GH-31695) 05 March 2022, 15:47:00 UTC
ab9301a bpo-46927: Include the type's name in the error message for subscripting non-generic types (GH-31694) 05 March 2022, 13:59:24 UTC
2031149 Lib/typing.py copy edits originating from GH-31061 (#31684) 05 March 2022, 02:51:55 UTC
46a116c bpo-38738: Fix formatting of True and False in the threading documentation (GH-31678) * Fix formatting of True and False in the threading documentation * Update threading.rst 04 March 2022, 20:13:09 UTC
c4d2d57 bpo-46841: Fix BINARY_OP's handling of inline caches (GH-31671) 04 March 2022, 18:51:27 UTC
cedd247 bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631) 04 March 2022, 17:35:52 UTC
d168c72 bpo-46541: Remove usage of _Py_IDENTIFIER from lzma module (GH-31683) 04 March 2022, 16:38:56 UTC
586b24d bpo-46841: Fix error message hacks in `GET_AWAITABLE` (GH-31664) 04 March 2022, 12:41:17 UTC
03c2a36 bpo-46903: Handle str-subclasses in virtual instance dictionaries. (GH-31658) 04 March 2022, 11:31:29 UTC
8f31bf4 bpo-46744: Move Windows ARM64 installation directory to correct ProgramFiles (GH-31677) 04 March 2022, 00:50:42 UTC
ec4a580 bpo-46355: Update pythoncapi_compat project URL (GH-31670) 03 March 2022, 23:46:56 UTC
ad1b044 bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674) If Python is built with UBSan, test_ctypes now skips test_shorts(). This change allows to run test_ctypes to check for new UBSan regression, but the known test_shorts() undefined behavior must be fixed. 03 March 2022, 23:41:57 UTC
6d0d7d2 bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673) If Python is built with UBSan, test_hashlib skips tests on the _sha3 extension which currently has undefined behaviors. This change allows to run test_hashlib to check for new UBSan regression, but the known _sha3 undefined behavior must be fixed. 03 March 2022, 23:41:34 UTC
05a8bc1 bpo-46841: Use inline caching for attribute accesses (GH-31640) 03 March 2022, 23:31:00 UTC
65b92cc bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672) Disable undefined behavior sanitizer (UBSan) on faulthandler._read_null(). 03 March 2022, 23:25:03 UTC
32f0c82 bpo-45459: Use type names in the internal C API (GH-31669) Replace "struct xxx" with "xxx" types in the internal C API. 03 March 2022, 22:08:07 UTC
0b63215 bpo-45459: Fix PyModuleDef_Slot type in the limited C API (GH-31668) Move the type definition to pytypedefs.h. 03 March 2022, 22:06:55 UTC
4173d67 bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662) Disable undefined behavior sanitizer (UBSAN) on faulthandler_sigfpe(). 03 March 2022, 20:45:01 UTC
127797f bpo-46841: Improve the failure stats for COMPARE_OP (GH-31663) 03 March 2022, 19:28:47 UTC
cc40058 bpo-46877: export unittest.doModuleCleanups in unittest package (#31613) 03 March 2022, 18:41:28 UTC
b356035 Move check for str-only keys in LOAD_GLOBAL specializations to specialization time. (GH-31659) 03 March 2022, 15:17:18 UTC
10117f1 bpo-6634: [doc] clarify that sys.exit() does not always exit the interpreter (GH-31639) 03 March 2022, 14:23:47 UTC
88567a9 bpo-46874: Speed up sqlite3 user-defined aggregate 'step' method (GH-31604) 03 March 2022, 13:54:36 UTC
751c9ed bpo-46891: Fix creating a new instance of a module subclass with slots (GH-31643) 03 March 2022, 10:38:27 UTC
3c4abfa Fix EncodingWarning in libregrtest (GH-31654) 03 March 2022, 07:19:56 UTC
81d968b bpo-46831: Update __build_class__ comment (#31522) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 03 March 2022, 05:32:57 UTC
3241cba dict: Fix refleak (GH-31650) 03 March 2022, 05:30:58 UTC
59e1ce9 bpo-46643: fix NEWS entry (GH-31651) 03 March 2022, 05:27:11 UTC
4f74052 bpo-40116: dict: Add regression test for iteration order. (GH-31550) 03 March 2022, 04:06:29 UTC
a8c87a2 bpo-21910: Clarify docs for codecs writelines method (GH-31245) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 03 March 2022, 01:21:41 UTC
75d2d94 bpo-46643: Fix stringized P.args/P.kwargs with get_type_hints (GH-31238) 03 March 2022, 01:14:52 UTC
50ec345 bpo-46860: Respect `--with-suffix` on case-insensitive file systems (GH-31593) Previously, case-insensitive file systems were forced to use `.exe` as the file suffix no matter what `--with-suffix` was set to. 02 March 2022, 22:23:59 UTC
3257d49 bpo-45492: Corrected documentation for co_names in inspect library doc (GH-31456) 02 March 2022, 19:03:38 UTC
b6b711a bpo-46848: Move _PyBytes_Find() to internal C API (GH-31642) Move _PyBytes_Find() and _PyBytes_ReverseFind() functions to the internal C API. bytesobject.c now includes pycore_bytesobject.h. 02 March 2022, 13:15:26 UTC
03642df dict: Internal cleanup (GH-31641) * Make empty_key from split table to combined table. * Use unicode_get_hash() when possible. 02 March 2022, 10:05:12 UTC
20a1c8e bpo-46195: Do not add `Optional` in `get_type_hints` (GH-30304) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 02 March 2022, 05:29:46 UTC
6ddb09f bpo-46848: Use stringlib/fastsearch in mmap (GH-31625) Speed up mmap.find(). Add _PyBytes_Find() and _PyBytes_ReverseFind(). 02 March 2022, 04:46:30 UTC
9833bb9 bpo-46845: Reduce dict size when all keys are Unicode (GH-31564) 01 March 2022, 23:09:28 UTC
21099fc bpo-46712: Let generate_global_objects.py Run on Earlier Python Versions (gh-31637) https://bugs.python.org/issue46712 01 March 2022, 21:29:54 UTC
3b0f1c5 bpo-46841: Use inline cache for `BINARY_SUBSCR`. (GH-31618) 01 March 2022, 16:00:34 UTC
e91b0a7 bpo-46541: remove usage of _Py_IDENTIFIER from _ssl module (GH-31599) 01 March 2022, 15:38:21 UTC
9204bb7 bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) Skip tests on ASAN and/or MSAN builds: * multiprocessing tests * test___all__ * test_concurrent_futures * test_decimal * test_peg_generator * test_tools The ASAN job of GitHub Actions no longer excludes these tests. 01 March 2022, 14:44:08 UTC
0cc6364 bpo-46541: Remove usage of _Py_IDENTIFIER from multibytecodec (GH-31475) 01 March 2022, 14:35:43 UTC
c60e6b6 bpo-46311: Clean up PyLong_FromLong and PyLong_FromLongLong (GH-30496) 01 March 2022, 14:20:52 UTC
7820a58 bpo-46841: Use inline caching for `COMPARE_OP` (GH-31622) 01 March 2022, 13:53:13 UTC
df9f759 compiler: Merge except_table and cnotab (GH-31614) 01 March 2022, 01:27:20 UTC
422fdb3 Add missing "to" to two tp_flags notes (GH-31624) 01 March 2022, 01:20:14 UTC
7d611b4 bpo-46771: Remove two controversial lines from Task.cancel() (GH-31623) Also from the _asyncio C accelerator module, and adjust one test that the change caused to fail. For more discussion see the discussion starting here: https://github.com/python/cpython/pull/31394#issuecomment-1053545331 (Basically, @asvetlov proposed to return False from cancel() when there is already a pending cancellation, and I went along, even though it wasn't necessary for the task group implementation, and @agronholm has come up with a counterexample that fails because of this change. So now I'm changing it back to the old semantics (but still bumping the counter) until we can have a proper discussion about this.) 28 February 2022, 23:15:56 UTC
08deed1 bpo-46753: Add the empty tuple to the _PyRuntimeState.global_objects. (gh-31345) https://bugs.python.org/issue46753 28 February 2022, 22:15:48 UTC
d5b7bba Statistics internals: Make fewer calls to _coerce() when data types are mixed (GH-31619) 28 February 2022, 17:43:52 UTC
7496f95 bpo-45431: Rename CFrame to _PyCFrame in the C API (GH-31584) Rename also struct _cframe to struct _PyCFrame. Add a comment suggesting using public functions rather than using directly the private _PyCFrame structure. 28 February 2022, 15:03:57 UTC
4558af5 bpo-46841: Move the cache for `LOAD_GLOBAL` inline. (GH-31575) 28 February 2022, 12:56:29 UTC
da7d99a bpo-46567: Add Tcl/Tk build for Windows ARM64 (GH-31574) 28 February 2022, 12:06:43 UTC
424ecab bpo-46841: Use inline caching for `UNPACK_SEQUENCE` (GH-31591) 28 February 2022, 11:54:14 UTC
c32aef4 bpo-46541: Remove unneeded visits from sqlite3 (GH-31609) 28 February 2022, 09:07:40 UTC
088dd76 bpo-46541: Remove unnecessary Py_VISIT (GH-31608) 28 February 2022, 07:06:58 UTC
345572a bpo-46786: Make ElementTree write the HTML tags embed, source, track, wbr as empty tags (GH-31406) See https://html.spec.whatwg.org/multipage/syntax.html#void-elements for reference. 27 February 2022, 14:25:54 UTC
5a1c637 bpo-46852: Restore test_getformat() test (GH-31601) 27 February 2022, 00:12:33 UTC
ad56919 bpo-46857: Fix refleak in OSError INIT_ALIAS() (GH-31594) _Py_GetRefTotal() no longer decrements _PySet_Dummy refcount. 26 February 2022, 23:28:24 UTC
e182c66 bpo-46748: Fix ctypes test_frozentable() (GH-31600) 26 February 2022, 23:25:46 UTC
e02c475 bpo-46606: os.getgroups() doesn't overallocate (GH-31569) 26 February 2022, 23:14:28 UTC
fc44b81 [doc] Add a note in howto/logging.rst about "do not log to root logger in libraries" (GH-31271) 26 February 2022, 18:29:51 UTC
0d9b565 Propagate errors (however unlikely) from _Py_Deepfreeze_Init() (GH-31596) 26 February 2022, 16:35:03 UTC
edbee56 Taskgroup tweaks (GH-31559) Now uses .cancel()/.uncancel(), for even fewer broken edge cases. 26 February 2022, 16:18:48 UTC
41ddcd3 bpo-44011: Document ssl_shutdown_timeout added by revisited asyncio SSL implementation (GH-31597) 26 February 2022, 13:06:43 UTC
b57dbe5 bpo-38415: Remove redundant AsyncContextDecorator.__call__ override from _AsyncGeneratorContextManager (GH-30233) 26 February 2022, 12:05:20 UTC
e466faa bpo-45735: Promise the long-time truth that `args=list` works (GH-30982) For threads, and for multiprocessing, it's always been the case that ``args=list`` works fine when passed to ``Process()`` or ``Thread()``, and such code is common in the wild. But, according to the docs, only a tuple can be used. This brings the docs into synch with reality. Doc changes by Charlie Zhao. Co-authored-by: Tim Peters <tim.peters@gmail.com> 26 February 2022, 04:17:13 UTC
5ab745f bpo-46852: Remove the float.__set_format__() method (GH-31585) Remove the undocumented private float.__set_format__() method, previously known as float.__set_format__() in Python 3.7. Its docstring said: "You probably don't want to use this function. It exists mainly to be used in Python's test suite." 25 February 2022, 23:53:27 UTC
4060111 bpo-46816: Remove declarations for non-__STDC__ compilers (GH-31466) After Python switched to C11, there is a guarantee that every compiler conforms to ISO C so checks of __STDC__ have no sense. 25 February 2022, 23:16:59 UTC
eb002db bpo-46712: Share global string identifiers in deepfreeze (GH-31261) Where appropriate, deepfreeze.c now uses `&_Py_ID(blah)` references instead of locally defining constants. This saves some space. 25 February 2022, 18:05:24 UTC
ea9612a bpo-46857: Fix test_embed.test_no_memleak() on Windows (GH-31589) Tolerate a leak of 1 reference and 1 memory block until it's fixed. 25 February 2022, 17:24:25 UTC
dd69f73 bpo-26897: Clarify Popen stdin, stdout, stderr file object docs (GH-30231) 25 February 2022, 16:41:19 UTC
87af12b bpo-46836: Rename InterpreterFrame to _PyInterpreterFrame (GH-31583) Rename also struct _interpreter_frame to struct _PyInterpreterFrame. Reduce risk of name conflicts if a project includes pycore_frame.h. 25 February 2022, 15:22:00 UTC
f780d96 bpo-45316: Move _PyArg_Fini() to internal C API (GH-31580) Move the private unexported _PyArg_Fini() function to the internal C API: to the pycore_pylifecycle.h header file. 25 February 2022, 15:19:30 UTC
8f2a337 bpo-45316: Move private functions to internal C API (GH-31579) Move the unexported private functions to the internal C API: * pycore_frame.h: _PyFrame_New_NoTrack() * pycore_function.h: _PyFunction_GetVersionForCurrentState() * pycore_genobject.h: _PyAsyncGenValueWrapperNew() * pycore_genobject.h: _PyCoro_GetAwaitableIter() * pycore_genobject.h: _PyGen_yf() 25 February 2022, 15:07:14 UTC
26aba29 Update dict/OrderedDict differences with code equivalents. (GH-31563) 25 February 2022, 14:49:53 UTC
8ddbdd9 bpo-45316: Move private PyDict functions to internal C API (GH-31577) Move the following private unexported functions to the internal C API headers: * _PyDictKeys_GetVersionForCurrentState() * _PyDictKeys_StringLookup() * _PyDict_FromKeys() * _PyDict_GetItemHint() * _PyDict_KeysSize() * _PyDict_LoadGlobal() * _PyDict_NewKeysForClass() * _PyDict_Pop_KnownHash() * _PyDict_SetItem_Take2() * _PyObjectDict_SetItem() * _PyObject_MakeDictFromInstanceAttributes() * _Py_dict_lookup() 25 February 2022, 14:41:55 UTC
4a0c7a1 bpo-45316: Move private PyCode C API to internal C API (GH-31576) Rename private functions (no exported), add an underscore prefix: * PyLineTable_InitAddressRange() => _PyLineTable_InitAddressRange() * PyLineTable_NextAddressRange() => _PyLineTable_NextAddressRange() * PyLineTable_PreviousAddressRange() => _PyLineTable_PreviousAddressRange() Move private functions to the internal C API: * _PyCode_Addr2EndLine() * _PyCode_Addr2EndOffset() * _PyCode_Addr2Offset() * _PyCode_InitAddressRange() * _PyCode_InitEndAddressRange( * _PyLineTable_InitAddressRange() * _PyLineTable_NextAddressRange() * _PyLineTable_PreviousAddressRange() No longer export the following internal functions: * _PyCode_GetVarnames() * _PyCode_GetCellvars() * _PyCode_GetFreevars() * _Py_GetSpecializationStats() Add "extern" to pycore_code.h functions to identify them more easiliy (they are still not exported). 25 February 2022, 14:41:32 UTC
c579243 bpo-46808: remove NEXT_BLOCK() from compile.c (GH-31448) 25 February 2022, 12:17:50 UTC
0f41aac bpo-46841: Use *inline* caching for `BINARY_OP` (GH-31543) 25 February 2022, 12:11:34 UTC
18b5dd6 bpo-46836: Move PyFrameObject to pycore_frame.h (GH-31530) Move the PyFrameObject type definition (struct _frame) to the internal C API pycore_frame.h header file. 25 February 2022, 11:53:19 UTC
4657bf7 bpo-1635741: Fix winreg reference leaks (GH-31560) Clear also the PyHKEY_Type static type at exit. 25 February 2022, 11:34:00 UTC
e2e7256 bpo-46756: Fix authorization check in urllib.request (GH-31353) Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which allowed to bypass authorization. For example, access to URI "example.org/foobar" was allowed if the user was authorized for URI "example.org/foo". 25 February 2022, 11:31:03 UTC
53ecf9e bpo-34429: Noted TemporaryFile behavior on non-Posix/non-Cygwin systems (GH-31547) 25 February 2022, 11:07:52 UTC
2c228a7 bpo-46748: Don't import <stdbool.h> in public headers (GH-31553) <stdbool.h> is the standard/modern way to define embedd/extends Python free to define bool, true and false, but there are existing applications that use slightly different redefinitions, which fail if the header is included. It's OK to use stdbool outside the public headers, though. https://bugs.python.org/issue46748 25 February 2022, 08:25:54 UTC
98c3bea bpo-46820: Refactor tests for ambiguous end of numerical literal (GH-31494) 25 February 2022, 08:25:12 UTC
ad6c700 bpo-46606: Remove redundant +1. (GH-31561) 25 February 2022, 05:13:14 UTC
7d03c8b bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) Rename the private undocumented float.__set_format__() method to float.__setformat__() to fix a typo introduced in Python 3.7. The method is only used by test_float. The change enables again test_float tests on the float format which were previously skipped because of the typo. The typo was introduced in Python 3.7 by bpo-20185 in commit b5c51d3dd95bbfde533655fb86ac0f96f771ba7b. 25 February 2022, 02:05:25 UTC
1b2611e bpo-46656: Remove Py_NO_NAN macro (GH-31160) Building Python now requires support for floating point Not-a-Number (NaN): remove the Py_NO_NAN macro. 25 February 2022, 00:32:57 UTC
back to top