https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
445f7f5 Python 3.10.0a4 04 January 2021, 17:26:00 UTC
de833b6 Fix 'make suspicious' for the itertools module (GH-24097) 04 January 2021, 17:24:22 UTC
c8a87ad bpo-1635741: Port pyexpat to multi-phase init (PEP 489) (GH-22222) 04 January 2021, 14:34:26 UTC
bf06b20 Delete the now unused c_do_not_emit_bytecode field. (#24094) 04 January 2021, 13:51:17 UTC
df21f50 bpo-42692: fix __builtin_available check on older compilers (GH-23873) A compiler that doesn't define `__has_builtin` will error out when it is used on the same line as the check for it. Automerge-Triggered-By: GH:ronaldoussoren 04 January 2021, 10:36:58 UTC
b6fc0c4 bpo-42789: Enable using /dev/tty in test_curses. (GH-24085) It was temporary disabled for debugging. 04 January 2021, 10:30:20 UTC
0f3b96b Update Sphinx version for macOS installer build. (GH-24082) 04 January 2021, 09:43:53 UTC
a38e04b bpo-42361: Update macOS installer build to use Tcl/Tk 8.6.11 (GH-24081) As of 2021-01-03, Tcl/Tk 8.6.11rc2 is expected to be the final release. 04 January 2021, 09:43:11 UTC
14097a2 bpo-41837: Update macOS installer build to use OpenSSL 1.1.1i. (GH-24080) 04 January 2021, 09:39:47 UTC
c94ee13 bpo-42584: Update macOS installer to use SQLite 3.34.0 (GH-23674) 04 January 2021, 04:48:19 UTC
1470edd bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874) 03 January 2021, 20:51:11 UTC
7c83eaa bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061) 03 January 2021, 15:47:44 UTC
b8eb376 bpo-40077: Add traverse/clear/free to arraymodule (GH-24066) 03 January 2021, 13:11:15 UTC
6613676 bpo-38308: Fix the "versionchanged" for the *weights* of harmonic_mean() (GH-23919) 03 January 2021, 12:35:26 UTC
5d3553b bpo-42814: Fix undefined behavior in Objects/genericaliasobject.c (GH-24073) In is_typing_name(), va_end() is not always called before the function returns. It is undefined behavior to call va_start() without also calling va_end(). 03 January 2021, 12:18:25 UTC
9e8fe19 bpo-42093: Tweak the what's new message about the new LOAD_ATTR opcode cache (GH-24070) 03 January 2021, 04:37:46 UTC
bd2728b bpo-42806: Fix ast locations of f-strings inside parentheses (GH-24067) 03 January 2021, 01:11:41 UTC
2ea320d bpo-40631: Disallow single parenthesized star target (GH-24027) 02 January 2021, 23:14:21 UTC
8f8de73 No need to test "istep==1" twice. (GH-24064) 02 January 2021, 20:09:56 UTC
768fa14 bpo-42772: Step argument ignored when stop is None. (GH-24018) 02 January 2021, 18:24:51 UTC
607501a bpo-42789: Don't skip curses tests on non-tty. (GH-24009) If __stdout__ is not attached to terminal, try to use __stderr__ if it is attached to terminal, or open the terminal device, or use regular file as terminal, but some functions will be untested in the latter case. 02 January 2021, 17:35:15 UTC
a25011b bpo-42809: Improve pickle tests for recursive data. (GH-24060) 02 January 2021, 17:32:47 UTC
75bf107 bpo-40077: Convert arraymodule to use heap types and establish module state (GH-23124) 02 January 2021, 16:38:47 UTC
49cd68f bpo-42195: Disallow isinstance/issubclass for subclasses of genericaliases in Union (GH-24059) Previously this didn't raise an error. Now it will: ```python from collections.abc import Callable isinstance(int, list | Callable[..., str]) ``` Also added tests in Union since there were previously none for stuff like ``isinstance(list, list | list[int])`` either. Backport to 3.9 not required. Automerge-Triggered-By: GH:gvanrossum 02 January 2021, 16:19:15 UTC
d914283 handle empty string in variable executable in platform.libc_ver() (#23140) 02 January 2021, 16:03:53 UTC
11276cd bpo-41559: Documentation for PEP 612 (GH-24000) 02 January 2021, 00:45:50 UTC
3bf0532 bpo-42756: Configure LMTP Unix-domain socket to use global default timeout when timeout not provided (GH-23969) 01 January 2021, 17:20:25 UTC
de6f20a Bring Python into the new year. (GH-24036) 01 January 2021, 15:37:23 UTC
ec31653 bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037) 01 January 2021, 14:20:33 UTC
c8a7b8f bpo-42781: Document the mechanics of cached_property from a user viewpoint (GH-24031) 01 January 2021, 01:05:58 UTC
b5711c9 bpo-37193: Remove thread objects which finished process its request (GH-23127) This reverts commit aca67da4fe68d5420401ac1782203d302875eb27. 31 December 2020, 20:19:30 UTC
3631d6d Fixes a typo in importlib.metadata. (#23921) Signed-off-by: Tao He <sighingnow@gmail.com> 31 December 2020, 19:37:53 UTC
a6fd0f4 bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (#23010) * Add test capturing missed expectation with uname_result._replace. * bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'. * Replace hard-coded length with one derived from the definition. * Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189). * bpo-42189: Exclude processor parameter when constructing uname_result. * In _make, rely on __new__ to strip processor. * Add blurb. * iter is not necessary here. * Rely on num_fields in __new__ * Add test for slices on uname * Add test for copy and pickle. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * import pickle * Fix equality test after pickling. * Simply rely on __reduce__ for pickling. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 31 December 2020, 19:08:03 UTC
dfdca85 bpo-42382: In importlib.metadata, `EntryPoint` objects now expose `dist` (#23758) * bpo-42382: In importlib.metadata, `EntryPoint` objects now expose a `.dist` object referencing the `Distribution` when constructed from a `Distribution`. Also, sync importlib_metadata 3.3: - Add support for package discovery under package normalization rules. - The object returned by `metadata()` now has a formally-defined protocol called `PackageMetadata` with declared support for the `.get_all()` method. * Add blurb * Remove latent footnote. 31 December 2020, 17:56:43 UTC
f4936ad bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in socket.ntohs and socket.htons (GH-23980) 31 December 2020, 13:16:50 UTC
9655434 bpo-39068: Fix race condition in base64 (GH-17627) There was a race condition in base64 in lazy initialization of multiple globals. 31 December 2020, 09:44:46 UTC
f421bfc Minor improvements to the convolve() recipe (GH-24012) * Minor improvement to speed and space efficiency for the convolve() recipe * Don't require convolve's kernel to be a sequence. 30 December 2020, 20:51:19 UTC
4ac923f bpo-42773: fix tests not being run on pushes (GH-24004) There was a typo, we were checking if the "GITHUB_BASE_REF" string literal was empty instead of the $GITHUB_BASE_REF value. When $GITHUB_BASE_REF is empty, the action that triggered the run was not a pull request, so we always run the full test suite. Signed-off-by: Filipe Laíns <lains@riseup.net> 30 December 2020, 14:53:58 UTC
277ce30 bpo-27640: Add --disable-test-modules configure option (GH-23886) Added --disable-test-modules option to the configure script: don't build nor install test modules. Patch by Xavier de Gaye, Thomas Petazzoni and Peixing Xin. Co-Authored-By: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com> 30 December 2020, 12:50:39 UTC
c56387f bpo-27794: Add `name` attribute to `property` class (GH-23967) 30 December 2020, 09:51:24 UTC
ba0e49a bpo-40137: Fix refleak in _functools_exec() (GH-24006) 30 December 2020, 01:24:43 UTC
056c082 bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) ``` In file included from /usr/include/python3.8/Python.h:147: In file included from /usr/include/python3.8/abstract.h:837: /usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *' (aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)') increases required alignment from 1 to 8 [-Werror,-Wcast-align] ptr = (vectorcallfunc*)(((char *)callable) + offset); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. ``` Co-Authored-By: Andreas Schneider <asn@cryptomilk.org> Co-Authored-By: Antoine Pitrou <antoine@python.org> 29 December 2020, 23:32:07 UTC
2edfc86 bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861) 29 December 2020, 13:32:10 UTC
84d79cf bpo-40956: Convert _sqlite3.Row to Argument Clinic (GH-23964) 29 December 2020, 13:22:55 UTC
0159e5e bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762) 29 December 2020, 12:58:27 UTC
dd39123 bpo-40137: Convert _functools module to use PyType_FromModuleAndSpec. (GH-23405) 29 December 2020, 12:45:07 UTC
84402eb bpo-42700: Swap descriptions in pyexpat.errors (GH-23876) The descriptions of the `codes` and `messages` dictionaries in `xml.parsers.expat.errors` were swapped, and this commit swaps them back. For example, `codes` maps string descriptions of errors to numeric error codes, not the other way around. 29 December 2020, 12:33:15 UTC
a4258e8 Fix minor typo in comments in readline.c (GH-23911) 29 December 2020, 12:26:57 UTC
030a713 Allow / character in username,password fields in _PROXY envvars. (#23973) 29 December 2020, 12:18:42 UTC
c1af128 bpo-41781: Fix typo in internal function name in typing (GH-23957) 29 December 2020, 11:55:28 UTC
40c2c83 Fix typo in NEWS (GH23958) 29 December 2020, 11:50:22 UTC
1df56bc bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968) Objects which belong to different Tcl interpreters are now always different, even if they have the same name. 29 December 2020, 10:56:55 UTC
156b7f7 bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966) Tk can internally support bignum even if Tkinter is built without support of bignum. 29 December 2020, 10:55:55 UTC
c56988b bpo-42770: Fix a typo in the email.headerregistry docs (GH-23982) Automerge-Triggered-By: GH:zware 29 December 2020, 04:12:37 UTC
efb1f09 bpo-42740: Support PEP 604, 612 for typing.py get_args and get_origin (GH-23942) 29 December 2020, 02:26:19 UTC
a6d63a2 Fix compiler warnings regarding loss of data (GH-23983) 29 December 2020, 00:28:09 UTC
290f5ae Use Py_NewRef in Modules/_struct.c (GH-23981) 28 December 2020, 23:59:16 UTC
4140f10 bpo-42740: Fix get_args for PEP 585 collections.abc.Callable (GH-23963) PR 1/2. Needs backport to 3.9. 28 December 2020, 20:06:19 UTC
a9621bb bpo-42222: Modernize integer test/conversion in randrange() (#23064) 28 December 2020, 19:10:34 UTC
1031f23 [workflow] Use MSVC problem matcher for Windows action build (GH-18532) This makes warnings and errors from the compiler very prominent so this should help prevent warnings from sneaking into the code base and catch them in review. See https://discuss.python.org/t/using-github-problem-matchers-to-catch-warnings-early/4254 for more details You can see a demo of this in action here: https://github.com/ammaraskar/cpython/pull/15/files#diff-9ba2eeca0f254ece0a9df4d7cb68e870 GCC and Sphinx matchers have previously been added in GH-18567 and GH-20325, respectively. 28 December 2020, 18:28:40 UTC
bf108bb bpo-40077: Fix typo in simplequeue_get_state_by_type() (GH-23975) The typo did no damage, but it looks suspicious and confusing. Introduced by GH-23136. Skip news. Automerge-Triggered-By: GH:pitrou 28 December 2020, 17:47:16 UTC
897387d bpo-1635741: sqlite3: Fix ref leak introduced by commit bf64d90 (GH-23972) 28 December 2020, 02:09:26 UTC
abba83b bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965) The `pages` argument default value now reflects the implementation. 27 December 2020, 22:35:17 UTC
bf64d90 bpo-1635741: sqlite3 uses Py_NewRef/Py_XNewRef (GH-23170) 27 December 2020, 11:05:33 UTC
3ccef1c bpo-40956: Convert _sqlite3.Connection to Argument Clinic, part 2 (GH-23838) 27 December 2020, 08:32:18 UTC
b02ad24 bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 (GH-23955) 27 December 2020, 08:13:30 UTC
f450723 bpo-42745: finalize_interp_types() calls _PyType_Fini() (GH-23953) Call _PyType_Fini() in subinterpreters. Fix reference leaks in subinterpreters. 26 December 2020, 19:26:08 UTC
3bcc4ea Add small validator utility for PEG grammars (GH-23519) 26 December 2020, 19:11:29 UTC
7865f51 bpo-16396: fix BPO number in changelog (GH-23951) Automerge-Triggered-By: GH:jaraco 26 December 2020, 15:36:56 UTC
0b281f9 bpo-42748: test_asdl_parser now uses exec_module instead of load_module (#23954) 26 December 2020, 13:25:21 UTC
ea25180 bpo-40521: Per-interpreter interned strings (GH-20085) Make the Unicode dictionary of interned strings compatible with subinterpreters. Remove the INTERN_NAME_STRINGS macro in typeobject.c: names are always now interned (even if EXPERIMENTAL_ISOLATED_SUBINTERPRETERS macro is defined). _PyUnicode_ClearInterned() now uses PyDict_Next() to no longer allocate memory, to ensure that the interned dictionary is cleared. 26 December 2020, 01:58:33 UTC
993e88c bpo-42694: Prevent creating _curses_panel.panel (GH-23948) Fix regression introduced in commit 1baf030a902392fe92d934ed0fb6a385cf7d8869: restore removed code to prevent creating a _curses_panel.panel instance directly. 26 December 2020, 01:17:46 UTC
4101018 bpo-42745: Make the type cache per-interpreter (GH-23947) Make the type attribute lookup cache per-interpreter. Add private _PyType_InitCache() function, called by PyInterpreterState_New(). Continue to share next_version_tag between interpreters, since static types are still shared by interpreters. Remove MCACHE macro: the cache is no longer disabled if the EXPERIMENTAL_ISOLATED_SUBINTERPRETERS macro is defined. 26 December 2020, 00:45:43 UTC
77fde8d Add convolve() to the itertools recipes (GH-23928) 26 December 2020, 00:43:20 UTC
ba3d67c bpo-39465: Fix _PyUnicode_FromId() for subinterpreters (GH-20058) Make _PyUnicode_FromId() function compatible with subinterpreters. Each interpreter now has an array of identifier objects (interned strings decoded from UTF-8). * Add PyInterpreterState.unicode.identifiers: array of identifiers objects. * Add _PyRuntimeState.unicode_ids used to allocate unique indexes to _Py_Identifier. * Rewrite the _Py_Identifier structure. Microbenchmark on _PyUnicode_FromId(&PyId_a) with _Py_IDENTIFIER(a): [ref] 2.42 ns +- 0.00 ns -> [atomic] 3.39 ns +- 0.00 ns: 1.40x slower This change adds 1 ns per _PyUnicode_FromId() call in average. 25 December 2020, 23:41:46 UTC
f0853bc Sync what's new in 3.9 with 3.9 branch (GH-23943) 25 December 2020, 23:08:17 UTC
5ae9be6 bpo-36876: [c-analyzer tool] Additional CLI updates for "capi" command. (gh-23929) https://bugs.python.org/issue36876 25 December 2020, 22:57:30 UTC
c1ae21c Rename Tkinter tests for widget options (GH-23944) Every test for widget option starts now with "test_configure_" to distinguish it from tests for widget commands. 25 December 2020, 22:10:29 UTC
36a779e bpo-35728: Add root parameter to tkinter.font.nametofont() (GH-23885) 25 December 2020, 21:18:06 UTC
675c97e bpo-42721: Improve using simple dialogs without root window (GH-23897) When simple query dialogs (tkinter.simpledialog), message boxes (tkinter.messagebox) or color choose dialog (tkinter.colorchooser) are created without arguments master and parent, and the default root window is not yet created, a new temporary hidden root window will be created automatically. It will not be set as the default root window and will be destroyed right after closing the dialog window. It will help to use these simple dialog windows in programs which do not need other GUI. Previously, message boxes and color chooser created the blank root window and left it after closing the dialog window, and query dialogs just raised an exception. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 25 December 2020, 18:19:20 UTC
586f3db bpo-28964: add line number of node (if available) to ast.literal_eval error messages (GH-23677) 25 December 2020, 17:04:31 UTC
bb70b2a bpo-15303: Support widgets with boolean value False in Tkinter (GH-23904) Use `widget is None` instead of checking the boolean value of a widget. 25 December 2020, 15:04:26 UTC
954a742 bpo-42734: Fix crasher bogus_code_obj.py (GH-23939) It did not work because the signature of code object constructor was changed. Also, it used old format of bytecode (pre-wordcode). 25 December 2020, 15:03:37 UTC
7f162e8 bpo-29076: Add fish support to macOS installer (GH-23302) 25 December 2020, 11:01:30 UTC
64abf37 bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467) When the modern text= spelling of the universal_newlines= parameter was added for Python 3.7, check_output's special case around input=None was overlooked. So it behaved differently with universal_newlines=True vs text=True. This reconciles the behavior to be consistent and adds a test to guarantee it. Also clarifies the existing check_output documentation. Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> 25 December 2020, 04:57:21 UTC
8badade bpo-42727: Fix the NEWS entry .rst (GH-23932) It was causing CI failures. the offending file came from https://github.com/python/cpython/pull/23917 ``` python3 tools/rstlint.py ../Misc/NEWS.d/next/ [2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:1: default role used [2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:2: default role used 2 problems with severity 2 found. Makefile:204: recipe for target 'check' failed ``` 25 December 2020, 04:31:18 UTC
786d97a bpo-42727: [Enum] use super() and include **kwds (GH-23927) for multiple inheritance support: use super().new pass **kwds to super().new 25 December 2020, 03:31:10 UTC
c6c43b2 bpo-42685: Improve placing of simple query windows. (GH-23856) * If parent is specified and mapped, the query widget is centered at the center of parent. Its position and size can be corrected so that it fits in the virtual root window. * Otherwise it is centered at the center of the screen. 24 December 2020, 18:26:28 UTC
6ec0ade [Enum] EnumMeta.__prepare__ now accepts **kwds (#23917) 24 December 2020, 18:05:02 UTC
7ec59d8 bpo-36876: [c-analyzer tool] Add a "capi" subcommand to the c-analyzer tool. (gh-23918) This will help identify which C-API items will need to be updated for subinterpreter support. https://bugs.python.org/issue36876 24 December 2020, 18:04:19 UTC
b57ada9 closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912) On Fedora 31 gdb is using python 3.7.9, calling `proxyval` on an instance with a dictionary fails because of the `dict.iteritems` usage. This PR changes the code to be compatible with py2 and py3. This changed seemed small enough to not need an issue and news blurb, if one is required please let me know. Automerge-Triggered-By: GH:benjaminp 24 December 2020, 17:16:04 UTC
a9ef95b GH: Add isidentical to the CODEOWNERS (GH-23923) 24 December 2020, 11:30:46 UTC
73607be bpo-41559: Implement PEP 612 - Add ParamSpec and Concatenate to typing (#23702) 24 December 2020, 04:33:48 UTC
cc3467a bpo-38308: Add optional weighting to statistics.harmonic_mean() (GH-23914) 24 December 2020, 03:52:09 UTC
6dd3da3 bpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915) Added `__getitem__` for `_CallableGenericAlias` so that it returns a subclass (itself) of `types.GenericAlias` rather than the default behavior of returning a plain `types.GenericAlias`. This fixes `repr` issues occuring after `TypeVar` substitution arising from the previous behavior. 24 December 2020, 02:47:40 UTC
eee1c77 bpo-41960: Add globalns and localns parameters to inspect.signature and Signature.from_callable (GH-22583) 23 December 2020, 22:45:13 UTC
6b1ac80 bpo-25246: Optimize deque.remove() (GH-23898) 23 December 2020, 19:45:06 UTC
a124916 bpo-32381: pymain_run_command() uses PyCF_IGNORE_COOKIE (GH-23724) The coding cookie (ex: "# coding: latin1") is now ignored in the command passed to the -c command line option. Since pymain_run_command() uses UTF-8, pass PyCF_IGNORE_COOKIE compiler flag to the parser. pymain_run_python() no longer propages compiler flags between function calls. 23 December 2020, 18:16:56 UTC
41b223d bpo-9694: Fix misleading phrase "optional arguments" (GH-23858) 23 December 2020, 17:40:56 UTC
bfda4f5 bpo-28468: Fix typo in _os_release_candidates (GH-23913) Automerge-Triggered-By: GH:tiran 23 December 2020, 16:35:53 UTC
back to top