https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
f7fa64f closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305) 23 January 2021, 16:34:01 UTC
b745a61 bpo-42996: Update a reference to PKCS #5 in hashlib docs to version 2.1 (GH-24289) RFC 8018 superseded RFC 8018. Automerge-Triggered-By: GH:tiran 22 January 2021, 12:06:00 UTC
2f12a1b bpo-41798: Allocate the _curses._C_API on the heap memory (GH-24186) 22 January 2021, 10:06:43 UTC
644d528 bpo-40304: Correct type(name, bases, dict) doc (GH-19553) Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com> 22 January 2021, 05:47:23 UTC
8603dfb bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) Automerge-Triggered-By: GH:gvanrossum 22 January 2021, 01:19:51 UTC
5e45f1c bpo-31904: setup.py: fix cross-compilation on VxWorks (GH-24191) Add library search path by wr-cc in add_cross_compiling_paths(). 22 January 2021, 00:55:52 UTC
6713e86 bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578) 21 January 2021, 19:14:04 UTC
805ede8 Add a What's New entry for the new parser error improvements (GH-24280) 21 January 2021, 17:36:35 UTC
6cd5b01 Fix typo in what's new. bidst_wheel -> bdist_wheel (GH-24234) bidst_wheel -> bdist_wheel Automerge-Triggered-By: GH:Mariatta 21 January 2021, 10:23:46 UTC
dcea78f bpo-42392: Mention loop removal in whatsnew for 3.10 (GH-24256) @vstinner [noticed on python-dev](https://mail.python.org/archives/list/python-dev@python.org/thread/O3T7SK3BGMFWMLCQXDODZJSBL42AUWTR/) that there is no what's new or porting entry for removal of asyncio ``loop`` parameter. This patch adds a basic guide. Co-Authored-By: Kyle Stanley <aeros167@gmail.com> 21 January 2021, 00:16:12 UTC
a698d52 bpo-40176: Improve error messages for unclosed string literals (GH-19346) Automerge-Triggered-By: GH:isidentical 20 January 2021, 21:38:47 UTC
c3f167d bpo-42864: Simplify the tokenizer exceptions after generic SyntaxError (GH-24273) Automerge-Triggered-By: GH:pablogsal 20 January 2021, 19:11:56 UTC
75e59a9 bpo-42856: Add --with-wheel-pkg-dir=PATH configure option (GH-24210) Add --with-wheel-pkg-dir=PATH option to the ./configure script. If specified, the ensurepip module looks for setuptools and pip wheel packages in this directory: if both are present, these wheel packages are used instead of ensurepip bundled wheel packages. Some Linux distribution packaging policies recommend against bundling dependencies. For example, Fedora installs wheel packages in the /usr/share/python-wheels/ directory and don't install the ensurepip._bundled package. ensurepip: Remove unused runpy import. 20 January 2021, 16:07:21 UTC
c1c3493 bpo-42323: Fix math.nextafter() for NaN on AIX (GH-24265) 20 January 2021, 14:20:13 UTC
7dc71c4 bpo-42780: Fix set_inheritable() for O_PATH file descriptors on Linux (GH-24172) 20 January 2021, 14:05:51 UTC
e0e398e Fix typos in unittest documentation (GH-24194) * addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups 20 January 2021, 13:08:37 UTC
ae7d3cd bpo-42864: Fix compiler warning in the tokenizer with the new paren stack for column numbers (GH-24266) 20 January 2021, 12:53:52 UTC
e982fe4 bpo-42048: Clinic Howto: Document AC's defining_class converter (GH-23978) 20 January 2021, 11:19:57 UTC
61d2639 bpo-41798: Allocate unicodedata CAPI on the heap (GH-24128) 20 January 2021, 11:03:53 UTC
1459fed Doc: os.path.abspath and Path.resolve are also different (GH-23276) 20 January 2021, 10:20:00 UTC
3554fa4 bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643) 20 January 2021, 08:56:21 UTC
f1ff800 bpo-41995: Handle allocation failure in _tracemalloc and _zoneinfo (GH-22635) 20 January 2021, 08:38:28 UTC
d6d6371 bpo-42864: Improve error messages regarding unclosed parentheses (GH-24161) 19 January 2021, 23:59:33 UTC
66f77ca bpo-42923: _Py_DumpExtensionModules() ignores stdlib ext (GH-24254) 19 January 2021, 22:35:27 UTC
cad8020 bpo-42955: Add Python/module_names.h (GH-24258) Add a private list of all stdlib modules: _Py_module_names. * Add Tools/scripts/generate_module_names.py script. * Makefile: Add "make regen-module-names" command. * setup.py: Add --list-module-names option. * GitHub Action and Travis CI also runs "make regen-module-names", not ony "make regen-all", to ensure that the module names remains up to date. 19 January 2021, 22:04:49 UTC
e8e66ea bpo-41713: Remove PyOS_InitInterrupts() from python3dll.c (GH-24257) 19 January 2021, 17:27:01 UTC
e485be5 Add a clarification for the object-domain allocators regarding pointer validity (GH-24253) 19 January 2021, 13:09:06 UTC
65cf1ad bpo-41818: Close file descriptors in test_openpty (#GH-24119) When stdin is a TTY, the test added in commit c13d89955d9a2942c6355d6839d7096323244136 is expected to fail. However, when it failed, it did not close its file descriptors. This is flagged by the refleak tests (but only when stdin is a TTY, which doesn't seem to be the case on CI). 19 January 2021, 13:03:12 UTC
bc450f9 Add a paragraph about allocation domains to the C-API docs (GH-24252) 18 January 2021, 22:20:57 UTC
916610e closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes param reprs. (24239) 18 January 2021, 20:47:05 UTC
6a809fa bpo-36143: make regen-all now also runs regen-keyword (GH-24245) 18 January 2021, 20:23:35 UTC
250035d bpo-42923: Dump extension modules on fatal error (GH-24207) The Py_FatalError() function and the faulthandler module now dump the list of extension modules on a fatal error. Add _Py_DumpExtensionModules() and _PyModule_IsExtension() internal functions. 18 January 2021, 19:47:13 UTC
f7b5bac bpo-42944 Fix Random.sample when counts is not None (GH-24235) 18 January 2021, 18:04:29 UTC
314b878 bpo-42923: Py_FatalError() avoids fprintf() (GH-24242) * Replace buffered fprintf() with unbuffered _Py_write_noraise() in Py_FatalError(). * _Py_DumpHexadecimal() now accepts uintptr_t. 18 January 2021, 17:34:56 UTC
e232025 bpo-42923: Add Py_FatalError() test in test_capi (GH-24240) Move faulthandler._fatal_error() to _testcapi.fatal_error(). 18 January 2021, 17:24:29 UTC
998ae1f bpo-42931: randbytes missing from random.__all__ (GH-24219) 15 January 2021, 17:50:42 UTC
ba876c4 bpo-42934: use TracebackException(compact=True) in unittest.TestResult (GH-24221) 15 January 2021, 15:59:44 UTC
e56d54e Mark instructions at end of class scope as artificial. (GH-24222) 15 January 2021, 13:52:00 UTC
4c94d74 bpo-42877: add the 'compact' param to TracebackException's __init__ (#24179) Use it to reduce the time and memory taken up by several of traceback's module-level functions. 15 January 2021, 02:45:02 UTC
e5fe509 bpo-42827: Fix crash on SyntaxError in multiline expressions (GH-24140) When trying to extract the error line for the error message there are two distinct cases: 1. The input comes from a file, which means that we can extract the error line by using `PyErr_ProgramTextObject` and which we already do. 2. The input does not come from a file, at which point we need to get the source code from the tokenizer: * If the tokenizer's current line number is the same with the line of the error, we get the line from `tok->buf` and we're ready. * Else, we can extract the error line from the source code in the following two ways: * If the input comes from a string we have all the input in `tok->str` and we can extract the error line from it. * If the input comes from stdin, i.e. the interactive prompt, we do not have access to the previous line. That's why a new field `tok->stdin_content` is added which holds the whole input for the current (multiline) statement or expression. We can then extract the error line from `tok->stdin_content` like we do in the string case above. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 14 January 2021, 21:36:30 UTC
9712358 Docs: Remove stray semicolon in init.rst (GH-23974) Removed stray semicolon which was causing the docs to render weirdly (it's the function right under the one [here](https://docs.python.org/3/c-api/init.html#c._PyInterpreterState_GetEvalFrameFunc)). 14 January 2021, 15:57:08 UTC
14cfa32 bpo-39273: Expose BUTTON5_* constants in the curses module if available (GH-17996) 14 January 2021, 09:40:09 UTC
a330365 bpo-40956: Fix sqlite3.Cursor.fetchmany() default value (GH-24214) 13 January 2021, 23:17:33 UTC
61d8c54 bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) Before, using the * operator to repeat a bytearray would copy data from the start of the internal buffer (ob_bytes) and not from the start of the actual data (ob_start). 13 January 2021, 16:16:40 UTC
1659ad1 Eliminate NOPs in extended blocks. (GH-24209) 13 January 2021, 15:05:04 UTC
3bd6035 bpo-42908: Mark cleanup code at end of try-except and with artificial (#24202) * Mark bytecodes at end of try-except as artificial. * Make sure that the CFG is consistent throughout optimiization. * Extend line-number propagation logic so that implicit returns after 'try-except' or 'with' have the correct line numbers. * Update importlib 13 January 2021, 12:05:43 UTC
2396614 bpo-1635741: Fix PyModule_AddObjectRef to use EXPORT_FUNC (GH-24205) 13 January 2021, 10:15:40 UTC
c314e60 bpo-42901: [Enum] move member creation to `__set_name__` (GH-24196) `type.__new__` calls `__set_name__` and `__init_subclass__`, which means that any work metaclasses do after calling `super().__new__()` will not be available to those two methods. In particular, `Enum` classes that want to make use of `__init_subclass__` will not see any members. Almost all customization is therefore moved to before the `type.__new__()` call, including changing all members to a proto member descriptor with a `__set_name__` that will do the final conversion of a member to be an instance of the `Enum` class. 13 January 2021, 07:47:57 UTC
c47c78b bpo-37324: Remove ABC aliases from collections (GH-23754) Remove deprecated aliases to Abstract Base Classes from the collections module. 12 January 2021, 23:16:37 UTC
6dfd173 bpo-42848: remove recursion from TracebackException (GH-24158) 12 January 2021, 22:14:27 UTC
0f66498 bpo-42874: Remove grep -qE options for Solaris 10 compatibility (GH-24200) According to [bpo-42874](), some versions of grep do not support the `-q` and `-E` options. Although both options are used elsewhere in the configure script, this particular bit of validation can be achieved without them, so there's no real harm in using a grep call with no flags. Would be good to get some people taking advantage of the `--with-tzpath` arguments in the wild to try this out.. Local testing seems to indicate that this does the same thing, but I don't know that we have any buildbots using this option. Maybe @pablogsal? [bpo-42874](): 12 January 2021, 18:17:52 UTC
4db8988 bpo-41994: Fix refcount issues in Python/import.c (GH-22632) https://bugs.python.org/issue41994 12 January 2021, 14:43:32 UTC
11d13e8 bpo-42882: Add test_embed.test_unicode_id_init() (GH-24198) Test that _PyUnicode_FromId() works when Python is initialized multiples times. 12 January 2021, 10:26:26 UTC
44bf57a bpo-42882: _PyRuntimeState_Init() leaves unicode next_index unchanged (GH-24193) Fix the _PyUnicode_FromId() function (_Py_IDENTIFIER(var) API) when Py_Initialize() / Py_Finalize() is called multiple times: preserve _PyRuntime.unicode_ids.next_index value. Use _PyRuntimeState_INIT macro instead memset(0) to reset _PyRuntimeState members to zero. 12 January 2021, 09:29:45 UTC
fb35fa4 bpo-42870: Document change in argparse help output. (GH-24190) 12 January 2021, 00:41:35 UTC
ace008c Fix various ParamSpec errors in typing (GH-24176) 1. ParamSpec -> TypeVar for ``typing.Concatenate`` 2. ParamSpec's call signature should align with its documentation. Noticed in GH-24169 11 January 2021, 00:11:41 UTC
81f87bb bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183) If __repr__ uses instance attributes, as normal, and one steps through the __init__ method, debugger may try to get repr before the instance attributes exist. reprlib.repr handles the error. 10 January 2021, 06:59:47 UTC
d16f617 bpo-24464: Fix sqlite3.enable_shared_cache() deprecation wrapper (GH-24170) 09 January 2021, 11:25:55 UTC
0e2a0f7 bpo-42802: Remove distutils bdist_wininst command (GH-24043) The distutils bdist_wininst command deprecated in Python 3.8 has been removed. The distutils bidst_wheel command is now recommended to distribute binary packages on Windows. * Remove Lib/distutils/command/bdist_wininst.py * Remove PC/bdist_wininst/ project * Remove Lib/distutils/command/wininst-*.exe programs * Remove all references to bdist_wininst 08 January 2021, 23:35:01 UTC
68e1f25 Fix a typo in docs for typing.Concatenate (#24169) Return param spec should be R, not T 08 January 2021, 18:08:21 UTC
11ef53a bpo-42866: Add traverse func to _multibytecodec.MultibyteCodec (GH-24166) Convert _multibytecodec.MultibyteCodec type to a GC type and adds a traverse function. 08 January 2021, 14:43:59 UTC
e542d41 bpo-42866: Fix refleak in CJK getcodec() (GH-24165) Fix a reference leak in the getcodec() function of CJK codecs. 08 January 2021, 14:01:38 UTC
07f2cee bpo-42846: Convert CJK codec extensions to multiphase init (GH-24157) Convert the 6 CJK codec extension modules (_codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw) to the multiphase initialization API (PEP 489). Remove getmultibytecodec() local cache: always import _multibytecodec. It should be uncommon to get a codec. For example, this function is only called once per CJK codec module. Fix a reference leak in register_maps() error path. 07 January 2021, 23:15:22 UTC
07dcd86 bpo-42860: Remove type error from grammar (GH-24156) This is only there so that alternative implementations written in statically-typed languages can use this grammar without having type errors in the way. Automerge-Triggered-By: GH:lysnikolaou 07 January 2021, 22:31:25 UTC
a581a86 bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154) Solution to support calls to `__init_subclass__` with members defined is too brittle and breaks with certain mixins. 07 January 2021, 21:17:55 UTC
8643345 Update frame.f_lineno before any call to the (C) tracing function. (GH-24150) * Minimizes breakage of C extensions and ensures PyFrame_GetLineNumber is efficient. 07 January 2021, 16:49:02 UTC
5c30145 bpo-42783: Documentation for asyncio.sleep(0) (#24002) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> 07 January 2021, 02:03:18 UTC
deab1e5 bpo-42847: Normalise Lib/sqlite3/test/* file encodings (GH-24147) Convert from ISO-8859-1 to UTF-8. 07 January 2021, 00:36:35 UTC
849e339 bpo-40823: Use loadTestsFromTestCase() iso. makeSuite() in sqlite3 tests (GH-20538) 07 January 2021, 00:05:07 UTC
1ab0459 bpo-41798: Allocate the _datetime.datetime_CAPI on the heap memory (GH-24096) 06 January 2021, 19:47:19 UTC
f22b7ca bpo-41798: Allocate _socket module C API on the heap (GH-24126) 06 January 2021, 19:43:06 UTC
ff8458b bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) Automerge-Triggered-By: GH:brettcannon 06 January 2021, 17:42:10 UTC
fe9f446 bpo-41798: Allocate _decimal extension module C API on the heap (GH-24117) 06 January 2021, 11:47:28 UTC
315fc52 bpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602) I think that none of these API calls can fail, but only few of them are documented as such. Add the sentence "This function always succeeds" (which is the same already used e.g. by PyNumber_Check) to all of them. 06 January 2021, 11:38:26 UTC
1a9f51e bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716) 06 January 2021, 02:14:42 UTC
203b249 bpo-40959: Remove unused declarations from sqlite3 headers (GH-20828) 06 January 2021, 00:56:05 UTC
ddb5e11 bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008) 06 January 2021, 00:36:04 UTC
f9949f8 bpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159) 06 January 2021, 00:18:46 UTC
cf0b239 bpo-40810: Require SQLite 3.7.15 (GH-24106) 06 January 2021, 00:02:43 UTC
c7f8d3c bpo-40956: Convert _sqlite3.Cursor to Argument Clinic (GH-24007) 05 January 2021, 23:57:25 UTC
dd74c01 bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675) 05 January 2021, 22:01:56 UTC
afb7144 bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125) 05 January 2021, 21:35:01 UTC
ee9f98d bpo-42823: Fix frame lineno when frame.f_trace is set (GH-24099) * Add test for frame.f_lineno with/without tracing. * Make sure that frame.f_lineno is correct regardless of whether frame.f_trace is set. * Update importlib * Add NEWS 05 January 2021, 12:04:10 UTC
e40e2a2 bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491) Make menu items work with formatter, add docstrings, add 100% tests. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 05 January 2021, 07:26:43 UTC
59f9b4e bpo-42681: Fix test_curses failures related to color pairs (GH-24089) On ncurses 6.1 pair numbers are limited by SHORT_MAX-1, even with extended color support. Improve error reporting and tests for color functions. 05 January 2021, 07:13:15 UTC
27f9daf bpo-40636: Remove overly-strict zip pickling tests (GH-24109) 05 January 2021, 07:05:29 UTC
cde988e Fix broken NEWS markup (GH-24110) 05 January 2021, 06:55:14 UTC
f7f0ed5 bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530) Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.html#version_3_7_15): _"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_ 04 January 2021, 23:16:43 UTC
0b858cd bpo-1635741: Convert _multibytecodec to multi-phase init (GH-24095) Convert the _multibytecodec extension module (CJK codecs) to multi-phase initialization (PEP 489). 04 January 2021, 21:33:45 UTC
958acd2 Post 3.10.0a4 04 January 2021, 21:17:03 UTC
ef2d371 Merge tag 'v3.10.0a4' Python 3.10.0a4 04 January 2021, 21:16:13 UTC
af4cd16 Do not remove x bit from published directories (GH-24101) 04 January 2021, 20:56:32 UTC
127dde5 bpo-42810: Mark jumps at end of if and try statements as artificial. (GH-24091) * Mark jumps at end of if and try statements as artificial. * Update importlib * Add comment explaining the purpose of ADDOP_JUMP_NOLINE. 04 January 2021, 18:06:55 UTC
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
back to top