https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
b0478d7 Fix Sphynx syntax in the memory.rst document 02 February 2021, 20:45:36 UTC
22dbd9e Python 3.10.0a5 02 February 2021, 20:41:05 UTC
bb739ec bpo-43108: Fix a reference leak in the curses module (GH-24420) 02 February 2021, 20:38:26 UTC
01c4fdd bpo-41149: Fix a bug in threading that causes fals-y threads callables to fail to start. (GH-21201) 02 February 2021, 20:24:24 UTC
58fb156 bpo-42997: Improve error message for missing : before suites (GH-24292) * Add to the peg generator a new directive ('&&') that allows to expect a token and hard fail the parsing if the token is not found. This allows to quickly emmit syntax errors for missing tokens. * Use the new grammar element to hard-fail if the ':' is missing before suites. 02 February 2021, 19:54:22 UTC
802b645 Only eliminate jumps to successor block if jump is unconditional. (GH-24417) * Prevents elimination of the sole test of a value in statements like: if x or True: ... 02 February 2021, 14:59:15 UTC
9eb11a1 bpo-41748: Handles unquoted attributes with commas (#24072) * bpo-41748: Adds tests for unquoted attributes with comma * bpo-41748: Handles unquoted attributes with comma * bpo-41748: Addresses review comments * bpo-41748: Addresses review comments * Adds more test cases * Simplifies the regex for handling spaces * bpo-41748: Moves attributes tests under the right class * bpo-41748: Addresses review about duplicate attributes * bpo-41748: Adds NEWS.d entry for this patch 01 February 2021, 20:32:50 UTC
000cde5 bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348) For back-compatibility, make the new constructor parameter for public classes Function and Class keyword-only with a default of None. Co-authored-by: Aviral Srivastava <aviralsrivastava@Avirals-MacBook-Air.local Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 01 February 2021, 17:38:44 UTC
b5931f1 bpo-42834: Fix _json internal caches for subinterpreters (GH-24121) Make internal caches of the _json extension module compatible with subinterpreters. 01 February 2021, 16:26:56 UTC
574aed1 Fix typo in Lib/trace.py (GH-24309) 01 February 2021, 15:46:38 UTC
0332e56 bpo-42990: Further refactoring of PyEval_ functions. (GH-24368) * Further refactoring of PyEval_EvalCode and friends. Break into make-frame, and eval-frame parts. * Simplify function vector call using new _PyEval_Vector. * Remove unused internal functions: _PyEval_EvalCodeWithName and _PyEval_EvalCode. * Don't use legacy function PyEval_EvalCodeEx. 01 February 2021, 10:42:03 UTC
49926cf bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string 01 February 2021, 03:29:44 UTC
a776da9 bpo-42927: Update the What's new entry for LOAD_ATTR optimizations (GH-24383) 31 January 2021, 22:55:48 UTC
835f14f bpo-43017: Improve error message for unparenthesised tuples in comprehensions (GH24314) 31 January 2021, 22:52:56 UTC
4090151 bpo-42986: Fix parser crash when reporting syntax errors in f-string with newlines (GH-24279) 31 January 2021, 22:48:23 UTC
a1e9a1e bpo-43016: Fix test_curses on platform without cursesw (GH-24405) 31 January 2021, 21:21:55 UTC
3243e8a bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933) 31 January 2021, 17:55:15 UTC
9073180 bpo-43083: Fix error handling in _sqlite3 (GH-24395) 31 January 2021, 15:42:38 UTC
d64fd4b bpo-43016: Rewrite tests for curses (GH-24312) 31 January 2021, 15:22:27 UTC
42b1806 bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350) 31 January 2021, 13:55:13 UTC
89294e3 Doc: errors tutorial improvements (GH-16269) Improvements: - Improvements in how try clause works section This suggestion is because the execution continues after *except*, not after *try* but before *except*. I guess this form more clear. - Surrounding some keywords with \*...\* For uniformity the highlighted terms - Adjust the number of chars per line to 80 31 January 2021, 06:07:11 UTC
e603443 bpo-43059: Remove reference to legacy external sqlite3 repository (GH-24364) 31 January 2021, 05:19:07 UTC
4d11ecb bpo-43077: Update bundled pip to 21.0.1 and setuptools to 52.0.0 (GH-24386) Update bundled pip to 21.0.1 and setuptools to 52.0.0 30 January 2021, 16:42:36 UTC
86e322f bpo-40455: Fix gcc10+ warning about writing into a section of offset 0 (GH-24384) 30 January 2021, 13:54:22 UTC
62437a2 bpo-43047: logging.config formatters documentation update (GH-24358) The documentation for some parts of the logging.config formatters has fallen behind the code. For example, the dictionary-schema section does not list the "class" attribute, however it is discussed in the file/ini discussion; and neither references the style argument which has been added. This modifies the dictionary-schema formatters documentation to list the keys available and overall makes it clearer these are passed to create a logging.Formatter object. The logging.Formatter documentation describes the default values of format/datefmt and the various formatting options. Since we have now more clearly described how the configuration is created via this type of object, we remove the discussion in this document to avoid duplication and rely on users reading the referenced logging.Formatter documenation directly for such details. Instead of duplicating the discussion for the two config types, the file/ini section is modified to link back to the dictionary-schema discussion, making it clear the same arguments are accepted. Automerge-Triggered-By: GH:vsajip 30 January 2021, 10:37:15 UTC
5c5a938 bpo-42927: Inline cache for attributes defined with '__slots__' (#24216) 30 January 2021, 02:02:29 UTC
ba7a99d bpo-38631: Replace compiler fatal errors with exceptions (GH-24369) * Replace Py_FatalError() calls with regular SystemError exceptions. * compiler_exit_scope() calls _PyErr_WriteUnraisableMsg() to log the PySequence_DelItem() failure. * compiler_unit_check() uses _PyMem_IsPtrFreed(). * compiler_make_closure(): remove "(reftype == FREE)" comment since reftype can also be LOCAL or GLOBAL_EXPLICIT. 30 January 2021, 00:46:44 UTC
7fdab83 Fix a reference leak in the compiler for compiler_lambda() (GH-24382) 29 January 2021, 22:40:59 UTC
0837f99 bpo-42323: Fix math.nextafter() on AIX (GH-24381) math_nextafter_impl() must return a Python object, not a C double. 29 January 2021, 22:04:50 UTC
62949f6 bpo-41282: Add deprecation warning and docs for distutils (PEP 632) (GH-24355) 29 January 2021, 21:48:55 UTC
6baaae5 Fixing typos in turtle.rst (GH-24376) Automerge-Triggered-By: GH:JulienPalard 29 January 2021, 21:40:45 UTC
11d75ec bpo-43008: Add 'Patch by Ken Hilton' (GH-24370) 29 January 2021, 18:02:05 UTC
6372a4c Fixed typo in turtle.rst (GH-24371) Found it while translating it to french 🤷 Automerge-Triggered-By: GH:JulienPalard 29 January 2021, 17:46:39 UTC
a619263 bpo-42979: Use _Py_CheckSlotResult() to check slots result (GH-24356) When Python is built in debug mode (with C assertions), calling a type slot like sq_length (__len__() in Python) now fails with a fatal error if the slot succeeded with an exception set, or failed with no exception set. The error message contains the slot, the type name, and the current exception (if an exception is set). * Check the result of all slots using _Py_CheckSlotResult(). * No longer pass op_name to ternary_op() in release mode. * Replace operator with dunder Python method name in error messages. For example, replace "*" with "__mul__". * Fix compiler_exit_scope() when an exception is set. * Fix bytearray.extend() when an exception is set: don't call bytearray_setslice() with an exception set. 29 January 2021, 15:53:03 UTC
d6c33fb bpo-42990: Introduce 'frame constructor' struct to simplify API for PyEval_CodeEval and friends (GH-24298) * Introduce 'frame constructor' to simplify API for frame creation * Embed struct using a macro to conform to PEP 7 29 January 2021, 13:24:55 UTC
23a567c bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163) Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 28 January 2021, 23:13:22 UTC
64fc105 bpo-42955: Remove sub-packages from sys.stdlib_module_names (GH-24353) 27 January 2021, 23:03:23 UTC
c9b8e9c bpo-42979: Enhance abstract.c assertions checking slot result (GH-24352) * bpo-42979: Enhance abstract.c assertions checking slot result Add _Py_CheckSlotResult() function which fails with a fatal error if a slot function succeeded with an exception set or failed with no exception set: write the slot name, the type name and the current exception (if an exception is set). 27 January 2021, 16:39:16 UTC
eeb701a bpo-42979: _zoneinfo exec function checks for PyDateTime_IMPORT failure (GH-24333) Importing datetime can fail. 27 January 2021, 10:23:33 UTC
6790005 bpo-43031: Set a timeout when running tests in PGO build (GH-24339) Pass --timeout=$(TESTTIMEOUT) option to the default profile task "./python -m test --pgo" command. 27 January 2021, 10:16:15 UTC
5327f37 bpo-43033: Fix the handling of PyObject_SetAttrString() in _zoneinfo.c (GH-24345) 27 January 2021, 08:16:20 UTC
7a34380 bpo-43008: Make IDLE respect sys.excepthook (GH-24302) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 26 January 2021, 23:55:52 UTC
01faf45 bpo-38250: [Enum] only include .rst test if file available (GH-24342) * [Enum] only include .rst test if file available In order to ensure the ReST documentation is up to date for Enum, use doctest to check it -- but only if the .rst files have not been stripped. 26 January 2021, 20:52:52 UTC
dea5bf9 bpo-33387: update documentation for exception handling opcode changes (GH-24334) * bpo-33387: remove obsolete comment * bpo-33387: update SETUP_WITH opcode documentation 26 January 2021, 10:17:13 UTC
c92cd0f Fix minor typo in the rest format in the enum docs (GH-24335) 25 January 2021, 23:23:30 UTC
7c8e0b0 Document new parenthesized with statements (GH-24281) 25 January 2021, 23:15:51 UTC
c7c3b7d Typo in comment (GH-24199) Automerge-Triggered-By: GH:Mariatta 25 January 2021, 22:51:48 UTC
7aaeb2a bpo-38250: [Enum] single-bit flags are canonical (GH-24215) Flag members are now divided by one-bit verses multi-bit, with multi-bit being treated as aliases. Iterating over a flag only returns the contained single-bit flags. Iterating, repr(), and str() show members in definition order. When constructing combined-member flags, any extra integer values are either discarded (CONFORM), turned into ints (EJECT) or treated as errors (STRICT). Flag classes can specify which of those three behaviors is desired: >>> class Test(Flag, boundary=CONFORM): ... ONE = 1 ... TWO = 2 ... >>> Test(5) <Test.ONE: 1> Besides the three above behaviors, there is also KEEP, which should not be used unless necessary -- for example, _convert_ specifies KEEP as there are flag sets in the stdlib that are incomplete and/or inconsistent (e.g. ssl.Options). KEEP will, as the name suggests, keep all bits; however, iterating over a flag with extra bits will only return the canonical flags contained, not the extra bits. Iteration is now in member definition order. If member definition order matches increasing value order, then a more efficient method of flag decomposition is used; otherwise, sort() is called on the results of that method to get definition order. ``re`` module: repr() has been modified to support as closely as possible its previous output; the big difference is that inverted flags cannot be output as before because the inversion operation now always returns the comparable positive result; i.e. re.A|re.I|re.M|re.S is ~(re.L|re.U|re.S|re.T|re.DEBUG) in both of the above terms, the ``value`` is 282. re's tests have been updated to reflect the modifications to repr(). 25 January 2021, 22:26:19 UTC
9852cb3 bpo-42955: Rename module_names to sys.stdlib_module_names (GH-24332) * Rename _Py_module_names to _Py_stdlib_module_names. * Rename Python/module_names.h to Python/stdlib_module_names.h. 25 January 2021, 22:12:50 UTC
501d4a5 bpo-42383: pdb: do not fail to restart the target if the current directory changed (#23412) This commit only adds tests and a news entry. The actual bug was fixed in the earlier commit. 25 January 2021, 21:08:01 UTC
f066bd9 bpo-37319: Improve documentation, code and tests of randrange. (GH-19112) 25 January 2021, 21:02:04 UTC
eb9983c bpo-42869: Avoid an HTTP redirection. (GH-24174) 25 January 2021, 14:50:14 UTC
5c1f15b bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282) 25 January 2021, 14:46:06 UTC
4833591 bpo-42955: Fix sys.module_names doc (GH-24329) Replace versionchanged markup with versionadded. 25 January 2021, 12:59:02 UTC
db584bd bpo-42955: Add sys.modules_names (GH-24238) Add sys.module_names, containing the list of the standard library module names. 25 January 2021, 12:24:42 UTC
879986d bpo-43013: Fix old tkinter module names in idlelib (GH-24326) Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and 'tkMessageBox' and remove 'tk'. Just lowercase 'tkFont' as 'font' is already used. Adjust import. 25 January 2021, 11:33:18 UTC
cf19cc3 bpo-27772: Make preceding width with 0 valid in string format. (GH-11270) Previously it was an error with confusing error message. 25 January 2021, 09:56:33 UTC
8dfe156 bpo-43013: Update idlelib code to 3.x (GH-24315) Remove 9 remaining '(object)' occurrences in class headers in idlelib and 25 '()' occurrences in idlelib.idle_test class headers. 24 January 2021, 19:08:50 UTC
15bd9ef bpo-43014: Improve performance of tokenize.tokenize by 20-30% 24 January 2021, 09:23:17 UTC
bf9239b Remove full stop from a bytes-related SyntaxError message (GH-24300) 23 January 2021, 22:56:57 UTC
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
back to top