https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
bc1c8af Python 3.9.0a6 27 April 2020, 20:44:04 UTC
0169d30 bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (GH-19414) 27 April 2020, 12:22:19 UTC
4044c84 Add files in tests/test_peg_generator to the install target lists (GH-19723) Update the "Makefile.pre.in" template and the "PCbuild/lib.pyproj" with the files in "Lib/test/test/test_peg_generator" so they get correctly installed along the rest of the standard library. 27 April 2020, 10:18:04 UTC
6292be7 bpo-40398: Fix typing.get_args() for special generic aliases. (GH-19720) 27 April 2020, 07:27:21 UTC
caf1aad bpo-40348: Fix typos in the programming FAQ (GH-19729) 27 April 2020, 03:23:52 UTC
b54e46c bpo-38387: Formally document PyDoc_STRVAR and PyDoc_STR macros (GH-16607) Adds a short description of `PyDoc_STRVAR` and `PyDoc_STR` to "Useful macros" section of C-API docs. Currently, there is [one lone mention](https://docs.python.org/3/c-api/module.html?highlight=pydoc_strvar#c.PyModuleDef) in the C-API reference, despite the fact that `PyDoc_STRVAR` is ubiquitous to `Modules/`. Additionally, this properly uses `c:macro` within `Doc/c-api/module.rst` to link. 27 April 2020, 02:31:44 UTC
a494caa bpo-40401: Remove duplicate pyhash.h include from pythoncore.vcxproj (GH-19725) 27 April 2020, 02:08:17 UTC
88499f1 bpo-40387: Improve queue join() example. (GH-19724) 27 April 2020, 01:11:27 UTC
68b352a bpo-40396: Support GenericAlias in the typing functions. (GH-19718) 26 April 2020, 18:21:08 UTC
cfaf4c0 Fix typo in Lib/typing.py (GH-19717) 26 April 2020, 17:49:11 UTC
ef33712 Fix typo in object.__format__ docs (GH-19504) 26 April 2020, 01:57:09 UTC
515fce4 bpo-40275: Avoid importing logging in test.support (GH-19601) Import logging lazily in assertLogs() in unittest. Move TestHandler from test.support to logging_helper. 25 April 2020, 08:35:18 UTC
1699491 bpo-40275: Avoid importing socket in test.support (GH-19603) * Move socket related functions from test.support to socket_helper. * Import socket, nntplib and urllib.error lazily in transient_internet(). * Remove importing multiprocess. 25 April 2020, 07:06:29 UTC
3c8a5b4 bpo-40275: Avoid importing asyncio in test.support (GH-19600) * Import asyncio lazily in unittest (only when IsolatedAsyncioTestCase is used). * Import asyncio.events lazily in test.support. 25 April 2020, 07:04:10 UTC
d4f3923 bpo-40279: Add some error-handling to the module initialisation docs example (GH-19705) 25 April 2020, 05:27:53 UTC
f828077 closes bpo-40385: Remove Tools/scripts/checkpyc.py (GH-19709) This is one of the few files that has intimate knowledge of the pyc file format. Since it lacks tests it tends to become outdated fairly quickly. At present it has been broken since the introduction of PEP 552. 25 April 2020, 04:33:59 UTC
0e80b56 bpo-40334: Add What's New sections for PEP 617 and PEP 585 (GH-19704) 25 April 2020, 00:19:56 UTC
5aafa54 bpo-40340: Separate examples more clearly in the programming FAQ (GH-19688) 24 April 2020, 23:39:04 UTC
503de71 bpo-40360: Deprecate lib2to3 module in light of PEP 617 (GH-19663) Deprecate lib2to3 module in light of PEP 617. We anticipate removal in the 3.12 timeframe. 24 April 2020, 18:19:46 UTC
24ffe70 bpo-40334: Rewrite test_c_parser to avoid memory leaks (GH-19694) Previously every test was building an extension module and loading it into sys.modules. The tearDown function was thus not able to clean up correctly, resulting in memory leaks. With this commit, every test function now builds the extension module and runs the actual test code in a new process (using assert_python_ok), so that sys.modules stays intact and no memory gets leaked. 24 April 2020, 13:51:09 UTC
e6f8abd bpo-38061: subprocess uses closefrom() on FreeBSD (GH-19697) Optimize the subprocess module on FreeBSD using closefrom(). A single close(fd) syscall is cheap, but when sysconf(_SC_OPEN_MAX) is high, the loop calling close(fd) on each file descriptor can take several milliseconds. The workaround on FreeBSD to improve performance was to load and mount the fdescfs kernel module, but this is not enabled by default. Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans (kevans) and Kubilay Kocak (koobs): https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274 24 April 2020, 10:06:58 UTC
162c567 bpo-38061: os.closerange() uses closefrom() on FreeBSD (GH-19696) On FreeBSD, os.closerange(fd_low, fd_high) now calls closefrom(fd_low) if fd_high is greater than or equal to sysconf(_SC_OPEN_MAX). Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans (kevans) and Kubilay Kocak (koobs): https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274 24 April 2020, 10:00:51 UTC
4cc4d60 Expand the implementation comments (GH-19699) 24 April 2020, 09:33:07 UTC
2510494 bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691) If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use "goto exit_eval_frame;" rather than "return NULL;" to exit the function in a consistent state. For example, tstate->frame is now reset properly. 24 April 2020, 00:43:18 UTC
9f27dd3 Use Py_ssize_t instead of ssize_t (GH-19685) 24 April 2020, 00:13:33 UTC
50f28de bpo-40334: Allow to run make regen-pegen without distutils (GH-19684) 23 April 2020, 23:53:29 UTC
3e89251 Fix broken mkdir -p call in regen-pegen (#19695) We should use `$(MKDIR_P) <directory>`, not `$(MKDIR_P) -p <directory>`. 23 April 2020, 23:30:42 UTC
bc28805 bpo-40334: Use old compiler when compile mode is func_type (GH-19692) This is invoked by mypy, using ast.parse(source, "<func_type>", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash. https://bugs.python.org/issue40334 23 April 2020, 22:42:56 UTC
40ded94 bpo-40336: Refactor typing._SpecialForm (GH-19620) 23 April 2020, 18:26:48 UTC
d663d34 bpo-39983: Add test.support.print_warning() (GH-19683) Log "Warning -- ..." test warnings into sys.__stderr__ rather than sys.stderr, to ensure to display them even if sys.stderr is captured. test.libregrtest.utils.print_warning() now calls test.support.print_warning(). 23 April 2020, 17:03:52 UTC
02e4484 Update ga_new to use _PyArg_CheckPositional and _PyArg_NoKwnames (GH-19679) 23 April 2020, 16:25:53 UTC
ebebb64 bpo-40334: Improve various PEG-Parser related stuff (GH-19669) The changes in this commit are all related to @vstinner's original review comments of the initial PEP 617 implementation PR. 23 April 2020, 15:36:06 UTC
9e6a131 bpo-40370: Use the same compile and link args as the interpreter used in test_peg_generator (GH-19674) 23 April 2020, 13:46:22 UTC
1221135 gdbinit: Use proper define syntax (GH-19557) Using `def` rather than `define` results in: Ambiguous command "def pu": define, define-prefix. Automerge-Triggered-By: @csabella 23 April 2020, 12:49:26 UTC
8d1cbff bpo-40334: Suppress all output in test_peg_generator (GH-19675) 23 April 2020, 12:22:16 UTC
1df5a9e bpo-40334: Fix build errors and warnings in test_peg_generator (GH-19672) 23 April 2020, 11:42:13 UTC
ee40e4b bpo-40334: Don't downcast from Py_ssize_t to int (GH-19671) 23 April 2020, 02:43:08 UTC
0b7829e Compile extensions in test_peg_generator with C99 (GH-19668) 23 April 2020, 02:24:25 UTC
1def775 bpo-40334: Rename PyConfig.use_peg to _use_peg_parser (GH-19670) * Rename PyConfig.use_peg to _use_peg_parser * Document PyConfig._use_peg_parser and mark it a deprecated * Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated in the documentation. * Add use_old_parser() and skip_if_new_parser() to test.support * Remove sys.flags.use_peg: use_old_parser() uses _testinternalcapi.get_configs() instead. * Enhance test_embed tests * subprocess._args_from_interpreter_flags() copies -X oldparser 23 April 2020, 01:03:24 UTC
a25f3c4 bpo-40334: Fix builds outside the source directory and regenerate autoconf files (GH-19667) 23 April 2020, 00:38:11 UTC
ce0eacb Add @pablogsal as code owner for pegen-related files (GH-19665) 22 April 2020, 23:47:32 UTC
458004b bpo-40334: Fix errors in parse_string.c with old compilers (GH-19666) 22 April 2020, 23:13:47 UTC
3f8a58b PEP 617: Only run the CI with the new parser (GH-19664) 22 April 2020, 23:06:03 UTC
c5fc156 bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) Co-authored-by: Guido van Rossum <guido@python.org> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 22 April 2020, 22:29:27 UTC
a81849b bpo-39939: Add str.removeprefix and str.removesuffix (GH-18939) Added str.removeprefix and str.removesuffix methods and corresponding bytes, bytearray, and collections.UserString methods to remove affixes from a string if present. See PEP 616 for a full description. 22 April 2020, 21:05:48 UTC
39652cd bpo-40260: Remove unnecessary newline in compile() call (GH-19641) Because some people subclass this class and call undocumented methods, and we don't want to break them. 22 April 2020, 18:42:53 UTC
4454057 bpo-39562: Prevent collision of future and compiler flags (GH-19230) The constant values of future flags in the __future__ module is updated in order to prevent collision with compiler flags. Previously PyCF_ALLOW_TOP_LEVEL_AWAIT was clashing with CO_FUTURE_DIVISION. 22 April 2020, 16:09:03 UTC
9b49893 bpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652) 22 April 2020, 16:04:46 UTC
9bee32b bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19637) Fix the Windows implementation of os.waitpid() for exit code larger than "INT_MAX >> 8". The exit status is now interpreted as an unsigned number. os.waitstatus_to_exitcode() now accepts wait status larger than INT_MAX. 22 April 2020, 14:30:35 UTC
bcc136b bpo-38329: python.org macOS installers now update Current symlink (GH-19650) Previously, python.org macOS installers did not alter the Current version symlink in /Library/Frameworks/Python.framework/Versions when installing a version of Python 3.x, only when installing 2.x. Now that Python 2 is retired, it's time to change that. This should make it a bit easier to embed Python 3 into other macOS applications. 22 April 2020, 08:27:13 UTC
b310700 bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480) It is possible to use either '-isysroot /some/path' (with a space) or '-isysroot/some/path' (no space in between). Support both forms in places where special handling of -isysroot is done, rather than just the first form. Co-authored-by: Ned Deily <nad@python.org> 22 April 2020, 07:44:10 UTC
3a69f3c bpo-38439: Add 256px IDLE icon (GH-17473) Icon author: Andrew Clover, bpo-1490384 22 April 2020, 07:21:44 UTC
783a673 bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) 22 April 2020, 02:41:33 UTC
75bedbe bpo-40327: Improve atomicity, speed, and memory efficiency of the items() loop (GH-19628) 21 April 2020, 23:20:52 UTC
d3a8d61 Small improvements to the recipes and examples. (GH-19635) * Add underscores to long numbers to improve readability * Use bigger dataset in the bootstrapping example * Convert single-server queue example to more useful multi-server queue 21 April 2020, 23:11:00 UTC
9c82ea7 bpo-34037: Add Python API whatsnew for loop.shutdown_default_executor() (#19634) Co-Authored-By: Victor Stinner <vstinner@python.org> 21 April 2020, 20:50:51 UTC
11a7f15 bpo-40335: Correctly handle multi-line strings in tokenize error scenarios (GH-19619) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> 21 April 2020, 00:53:04 UTC
6a9e80a bpo-40313: speed up bytes.hex() (GH-19594) Automerge-Triggered-By: @gpshead 21 April 2020, 00:17:52 UTC
bba760e Fix uninitialized struct member (GH-19589) 20 April 2020, 20:47:12 UTC
a25a04f bpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616) https://bugs.python.org/issue39942 20 April 2020, 20:01:53 UTC
eba9f61 bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) The item size must be checked after encoding to bytes, not before. Automerge-Triggered-By: @pitrou 20 April 2020, 18:54:55 UTC
5dd21f5 bpo-39849: Enable assertions in _testcapimodule.c and _testinternalcapi.c (GH-19623) 20 April 2020, 16:49:13 UTC
9b0b5d2 bpo-40260: Revert breaking changes made in modulefinder (GH-19595) 20 April 2020, 14:58:42 UTC
df8913f Fix typo in Lib/tracepack.py (GH-19605) Typo fix: "emites" -> "emit". 20 April 2020, 02:17:37 UTC
3955da8 ignore Modules/python.exp on AIX (autogenerated) (GH-19607) 19 April 2020, 18:02:17 UTC
8aea4b3 bpo-40148: Add PurePath.with_stem() (GH-19295) Add PurePath.with_stem() 19 April 2020, 15:29:49 UTC
c8f1715 bpo-38891: avoid quadratic item access performance of ShareableList (GH-18996) Avoid linear runtime of ShareableList.__getitem__ and ShareableList.__setitem__ by storing running allocated bytes in ShareableList._allocated_bytes instead of the number of bytes for a particular stored item. Co-authored-by: Antoine Pitrou <antoine@python.org> 19 April 2020, 15:19:24 UTC
1ac6e37 bpo-39207: Spawn workers on demand in ProcessPoolExecutor (GH-19453) Roughly based on https://github.com/python/cpython/commit/904e34d4e6b6007986dcc585d5c553ee8ae06f95, but with a few substantial differences. /cc @pitrou @brianquinlan 19 April 2020, 14:00:59 UTC
c12375a bpo-39285: Clarify example for PurePath.match (GH-19458) Fixes Issue39285 The example incorrectly returned True for match. Furthermore the example is ambiguous in its usage of PureWindowsPath. Windows is case-insensitve, however the underlying match functionality utilizes fnmatch.fnmatchcase. Automerge-Triggered-By: @pitrou 19 April 2020, 09:43:11 UTC
4fe0020 bpo-40325: Deprecate set object support in random.sample() (GH-19591) 19 April 2020, 07:36:42 UTC
482259d bpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269) Automerge-Triggered-By: @pitrou 18 April 2020, 18:09:09 UTC
696136b bpo-35113: Fix inspect.getsource to return correct source for inner classes (#10307) * Use ast module to find class definition * Add NEWS entry * Fix class with multiple children and move decorator code to the method * Fix PR comments 1. Use node.decorator_list to select decorators 2. Remove unwanted variables in ClassVisitor 3. Simplify stack management as per review * Add test for nested functions and async calls * Fix pydoc test since comments are returned now correctly * Set event loop policy as None to fix environment related change * Refactor visit_AsyncFunctionDef and tests * Refactor to use local variables and fix tests * Add patch attribution * Use self.addCleanup for asyncio * Rename ClassVisitor to ClassFinder and fix asyncio cleanup * Return first class inside conditional in case of multiple definitions. Remove decorator for class source. * Add docstring to make the test correct * Modify NEWS entry regarding decorators * Return decorators too for bpo-15856 * Move ast and the class source code to top. Use proper Exception. 18 April 2020, 16:19:32 UTC
ce57883 Add spaces around the ":=" operator in ast_unparse.c (GH-19568) 18 April 2020, 16:17:19 UTC
2b56031 bpo-40178: Convert the remaining os functions to Argument Clinic. (GH-19360) Convert os.getgrouplist(), os.initgroups(), os.sendfile() and os.get_terminal_size(). 18 April 2020, 16:14:10 UTC
12446e6 bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364) Co-authored-by: Ammar Askar <ammar@ammaraskar.com> 18 April 2020, 14:52:48 UTC
fb94040 bpo-35967: Skip test with `uname -p` on Android (GH-19577) The uname binary on Android does not support -p [1]. Here is a sample log: ``` 0:06:03 load avg: 0.56 [254/421/8] test_platform failed -- running: test_asyncio (5 min 53 sec) uname: Unknown option p (see "uname --help") test test_platform failed -- Traceback (most recent call last): File "/data/local/tmp/lib/python3.9/test/test_platform.py", line 170, in test_uname_processor proc_res = subprocess.check_output(['uname', '-p'], text=True).strip() File "/data/local/tmp/lib/python3.9/subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/data/local/tmp/lib/python3.9/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['uname', '-p']' returned non-zero exit status 1. ``` [1] https://android.googlesource.com/platform/external/toybox/+/refs/heads/master/toys/posix/uname.c Automerge-Triggered-By: @jaraco 18 April 2020, 14:20:54 UTC
7e64414 bpo-40257: Improve help for the typing module (GH-19546) * Show docstring for special forms. * Show docstring for special generic aliases. * Show documentation for __origin__ for generic aliases. 18 April 2020, 14:13:21 UTC
c606624 Fix two typos in multiprocessing (GH-19571) 18 April 2020, 06:58:29 UTC
87502dd bpo-40286: Use random.randbytes() in tests (GH-19575) 17 April 2020, 20:54:38 UTC
223221b bpo-40286: Makes simpler the relation between randbytes() and getrandbits() (GH-19574) 17 April 2020, 20:51:28 UTC
5b1d918 bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accessor (GH-18836) 17 April 2020, 17:47:27 UTC
c746c4f bpo-39897: Remove needless `Path(self.parent)` call, which makes `is_mount()` misbehave in `Path` subclasses. (GH-18839) 17 April 2020, 17:42:06 UTC
75a3378 bpo-40282: Allow random.getrandbits(0) (GH-19539) 17 April 2020, 17:32:14 UTC
d7c657d bpo-40302: UTF-32 encoder SWAB4() macro use a|b rather than a+b (GH-19572) 17 April 2020, 17:13:34 UTC
1a1bd2e bpo-40302: Replace PY_INT64_T with int64_t (GH-19573) * Replace PY_INT64_T with int64_t * Replace PY_UINT32_T with uint32_t * Replace PY_UINT64_T with uint64_t sha3module.c no longer checks if PY_UINT64_T is defined since it's always defined and uint64_t is always available on platforms supported by Python. 17 April 2020, 17:13:06 UTC
9f5fe79 bpo-40286: Add randbytes() method to random.Random (GH-19527) Add random.randbytes() function and random.Random.randbytes() method to generate random bytes. Modify secrets.token_bytes() to use SystemRandom.randbytes() rather than calling directly os.urandom(). Rename also genrand_int32() to genrand_uint32(), since it returns an unsigned 32-bit integer, not a signed integer. The _random module is now built with Py_BUILD_CORE_MODULE defined. 17 April 2020, 17:05:35 UTC
22386bb bpo-39901: Move `pathlib.Path.owner()` and `group()` implementations into the path accessor. (GH-18844) 17 April 2020, 16:41:07 UTC
06a3554 bpo-40300: Allow empty logging.Formatter.default_msec_format. (GH-19551) 17 April 2020, 16:02:47 UTC
1ae035b bpo-40302: Add pycore_byteswap.h header file (GH-19552) Add a new internal pycore_byteswap.h header file with the following functions: * _Py_bswap16() * _Py_bswap32() * _Py_bswap64() Use these functions in _ctypes, sha256 and sha512 modules, and also use in the UTF-32 encoder. sha256, sha512 and _ctypes modules are now built with the internal C API. 17 April 2020, 15:47:20 UTC
485e715 bpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540) It has not returned the file position after the seek. 17 April 2020, 06:56:35 UTC
bf1a812 Minor modernization and readability improvement to the tokenizer example (GH-19558) 17 April 2020, 02:54:13 UTC
a75e730 bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542) 17 April 2020, 02:09:45 UTC
a388bbd Fix parameter names in assertIn() docs (GH-18829) The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second". 17 April 2020, 01:54:53 UTC
5565c30 bpo-39793: use the same domain on make_msgid tests (#18698) * bpo-39793: use same domain on make_msgid tests * apply suggestions 16 April 2020, 17:29:12 UTC
70f027d bpo-40290: Add zscore() to statistics.NormalDist. (GH-19547) 16 April 2020, 17:25:14 UTC
518835f bpo-35967 resolve platform.processor late (GH-12239) * Replace flag-flip indirection with direct inspection * Use any for simpler code * Avoid flag flip and set results directly. * Resolve processor in a single function. * Extract processor handling into a namespace (class) * Remove _syscmd_uname, unused * Restore platform.processor behavior to match prior expectation (reliant on uname -p in a subprocess). * Extract '_unknown_as_blank' function. * Override uname_result to resolve the processor late. * Add a test intended to capture the expected values from 'uname -p' * Instead of trying to keep track of all of the possible outputs on different systems (probably a fool's errand), simply assert that except for the known platform variance, uname().processor matches the output of 'uname -p' * Use a skipIf directive * Use contextlib.suppress to suppress the error. Inline strip call. * 📜🤖 Added by blurb_it. * Remove use of contextlib.suppress (it would fail with NameError if it had any effect). Rely on _unknown_as_blank to replace unknown with blank. Co-authored-by: blurb-it[bot] <blurb-it[bot]@users.noreply.github.com> 16 April 2020, 12:28:09 UTC
6a5bf15 bpo-40209: Use tokenize.open in test_unparse (GH-19399) 16 April 2020, 10:11:55 UTC
01508dc Fix typo in exception thrown by ast.unparse (GH-19534) 16 April 2020, 10:10:12 UTC
e72cbcb bpo-35967: Make test_platform.test_uname_processor more lenient to satisfy build bots. (GH-19544) * bpo-35967: Make test more lenient to satisfy build bots. * Update Lib/test/test_platform.py Co-Authored-By: Kyle Stanley <aeros167@gmail.com> * Expect '' for 'unknown' Co-authored-by: Kyle Stanley <aeros167@gmail.com> 15 April 2020, 23:55:35 UTC
58d6f2e bpo-40270: Enable json extension in Windows sqlite extension (GH-19528) 15 April 2020, 21:19:26 UTC
back to top