Staging
v0.5.0
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
c13d899 bpo-41818: Updated tests for the standard pty library (GH-22962) 25 November 2020, 13:41:25 UTC
be319c0 bpo-42299: Remove formatter module (GH-23476) 25 November 2020, 13:17:30 UTC
b9127dd bpo-42392: Improve removal of *loop* parameter in asyncio primitives (GH-23499) * Update code after merge review from 1st1 * Use a sentinel approach for loop parameter Remove unnecessary _get_running_loop patching * Use more clear function name (_verify_parameter_is_marker -> _verify_no_loop) * Add init method to _LoopBoundMixin to check that loop param wasn't used 25 November 2020, 11:50:44 UTC
7301979 bpo-42202: Store func annotations as a tuple (GH-23316) Reduce memory footprint and improve performance of loading modules having many func annotations. >>> sys.getsizeof({"a":"int","b":"int","return":"int"}) 232 >>> sys.getsizeof(("a","int","b","int","return","int")) 88 The tuple is converted into dict on the fly when `func.__annotations__` is accessed first. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Inada Naoki <songofacandy@gmail.com> 25 November 2020, 10:43:18 UTC
85c8492 Add more tests to the descriptor howto guide (GH-23506) 25 November 2020, 09:54:24 UTC
4fedd71 bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409) Restore fix from 011525ee92eb1c13ad1a62d28725a840e28f8160. 25 November 2020, 09:23:17 UTC
c9c6e9f bpo-42238: Doc: Remove make suspicious from the CI and docs builds. (GH-23313) It probably helped a lot a while back, but may not be as usefull today. We'll continue monitoring it before deletion, so true positives can be migrated to rstlint. 25 November 2020, 09:18:00 UTC
8d17d2b Doc: Minor fixes (GH-23422) 25 November 2020, 04:59:59 UTC
2d44a6b Add doctests to the descriptor HowTo (GH-23500) 25 November 2020, 04:57:02 UTC
ed1a5a5 bpo-40170: Hide impl detail of Py_TRASHCAN_BEGIN macro (GH-23235) The Py_TRASHCAN_BEGIN macro no longer accesses PyTypeObject attributes, but now can get the condition by calling the new private _PyTrash_cond() function which hides implementation details. 24 November 2020, 22:03:31 UTC
0ec34ca bpo-42392: Remove loop parameter form asyncio locks and Queue (#23420) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 24 November 2020, 18:08:54 UTC
b0b4285 bpo-42370: Check element before making mouse click in ttk tests (GH-23491) 24 November 2020, 17:35:39 UTC
ac7d016 bpo-42212: smelly.py also checks the dynamic library (GH-23423) The smelly.py script now also checks the Python dynamic library and extension modules, not only the Python static library. Make also the script more verbose: explain what it does. The GitHub Action job now builds Python with the libpython dynamic library. 24 November 2020, 12:38:08 UTC
14d81dc bpo-42260: Improve error handling in _PyConfig_FromDict (GH-23488) 24 November 2020, 12:07:32 UTC
c0c23ea bpo-41100: in test_platform, ignore 10.16 (GH-23485) 24 November 2020, 06:20:35 UTC
936533c bpo-41100: minor build installer fixes (GH-23480) 24 November 2020, 00:04:40 UTC
989af25 Typo (#23482) 23 November 2020, 23:56:30 UTC
79d2e62 Added support for negative indexes to PurePath.parents (GH-21799) This commit also fixes up some of the overlapping documentation changed in bpo-35498, which added support for indexing with slices. Fixes bpo-21041. https://bugs.python.org/issue21041 Co-authored-by: Paul Ganssle <p.ganssle@gmail.com> Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr> 23 November 2020, 20:06:22 UTC
ffae932 Descriptor HowTo: Improve the fidelity of the member object simulation (GH-23475) 23 November 2020, 18:56:59 UTC
2f2f9d0 bpo-15450: Allow subclassing of dircmp (GH-23424) (#23424) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com> 23 November 2020, 16:29:37 UTC
ff420f0 bpo-28850: Fix PrettyPrinter.format overrides ignored for contents of small containers (GH-22120) 23 November 2020, 13:31:31 UTC
dd844a2 bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300) The function accepts now the representation of the default state as empty sequence (as returned by Style.map()). The structure of the result is now the same on all platform and does not depend on the value of wantobjects. 22 November 2020, 20:48:52 UTC
313467e bpo-42435: Speed up comparison of bytes and bytearray object (GH--23461) * Speed up comparison of bytes objects with non-bytes objects when option -b is specified. * Speed up comparison of bytarray objects with non-buffer object. 22 November 2020, 20:00:53 UTC
5ef53a8 Doc: fix typo in typing.Type docs (GH-23460) 22 November 2020, 14:54:19 UTC
686c203 bpo-42423: Accept single base class in PyType_FromModuleAndSpec() (GH-23441) 22 November 2020, 11:25:02 UTC
c4d45ee bpo-42427: Use the errno attribute of OSError instead of args[0] (GH-23449) 22 November 2020, 08:28:34 UTC
bd8c22e bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348) Removing 'evaluate' makes it more consistent with other assertX entries. 22 November 2020, 05:59:48 UTC
404a719 bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) On macOS system provided libraries are in a shared library cache and not at their usual location. This PR teaches distutils to search in the SDK, even if there was no "-sysroot" argument in the compiler flags. 22 November 2020, 05:14:25 UTC
453bc1d bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447) 22 November 2020, 05:06:51 UTC
442746a bpo-41100: Stripping '-arch arm64' didn't work after all (GH-23280) 22 November 2020, 02:17:18 UTC
690a5fa bpo-42361: Use Tcl/Tk 8.6.10 when building the installer on recent macOS (GH-23293) Building on older versions, and in particular macOS 10.9 still use Tk 8.6.8 because of build problems on that version of macOS. 22 November 2020, 02:05:34 UTC
0f20bd9 bpo-38443: Check that the specified universal architectures work (GH-22910) As [bpo-38443]() says the error message from configure when specifying --enable-universalsdk with a set of architectures that is not supported by the compiler is not very helpful. This PR explicitly checks if the compiler works and bails out if it doesn't. 22 November 2020, 01:13:11 UTC
68f68fa Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272) 21 November 2020, 19:56:24 UTC
ea97eba bpo-1635741: Port select module to multiphase init (GH-23409) 21 November 2020, 19:29:26 UTC
035deee bpo-1635741: Port _posixsubprocess module to multiphase init (GH-23406) 21 November 2020, 19:28:14 UTC
ed1007c bpo-42425: Fix possible leak in initialization of errmap for OSError (GH-23446) 21 November 2020, 17:17:46 UTC
0e62efc bpo-42232: mmap module add Darwin specific madvise options. (GH-23076) 21 November 2020, 11:39:56 UTC
1db7639 bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() (GH-23410) * There were leaks if Py_tp_bases is used more than once or if some call is failed before setting tp_bases. * There was a crash if the bases argument or the Py_tp_bases slot is not a tuple. * The documentation was not accurate. 21 November 2020, 10:02:53 UTC
01a202a bpo-40550: Fix time-of-check/time-of-action issue in subprocess.Popen.send_signal. (GH-20010) send_signal() now swallows the exception if the process it thought was still alive winds up not to exist anymore (always a plausible race condition despite the checks). Co-authored-by: Gregory P. Smith <greg@krypto.org> 21 November 2020, 09:22:08 UTC
3172936 bpo-40791: Make compare_digest more constant-time. (GH-20444) * bpo-40791: Make compare_digest more constant-time. The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization. (This is change #1 from https://bugs.python.org/issue40791 .) 21 November 2020, 08:55:23 UTC
aa3a352 bpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421) 21 November 2020, 04:07:22 UTC
6edf06b bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400) 21 November 2020, 02:37:54 UTC
9f02b47 bpo-36876: [c-analyzer tool] Tighten up the results and output. (GH-23431) We also update the "ignored" file with a temporary list of all known globals. 20 November 2020, 22:39:28 UTC
a993e90 bpo-28002: Roundtrip f-strings with ast.unparse better (#19612) By attempting to avoid backslashes in f-string expressions. We also now proactively raise errors for some backslashes we can't avoid while unparsing FormattedValues Co-authored-by: hauntsaninja <> Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> 20 November 2020, 21:16:42 UTC
9fc319d bpo-42360: Add advice to help avoid pickling issues. (GH-23305) 20 November 2020, 20:49:32 UTC
4c24b08 Fix wrong availability for signal.SIGCHLD (#23285) I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows. 20 November 2020, 18:16:46 UTC
4520584 bpo-35498: Added slice support to PathLib parents attribute. (GH-11165) Added slice support to the `pathlib.Path.parents` sequence. For a `Path` `p`, slices of `p.parents` should return the same thing as slices of `tuple(p.parents)`. 20 November 2020, 15:40:39 UTC
d20b7ed bpo-42212: Check if generated files are up-to-date in GitHub Actions (GH-23042) See https: //github.com/python/core-workflow/issues/380 Signed-off-by: Filipe Laíns <lains@archlinux.org> 20 November 2020, 14:14:16 UTC
3be8e22 bpo-42403: Use @staticmethod in importlib (GH-23395) Use @staticmethod on methods using @classmethod but don't use their cls parameter on the following classes: * BuiltinImporter * FrozenImporter * WindowsRegistryFinder * PathFinder Leave methods using @_requires_builtin or @_requires_frozen unchanged, since this decorator requires the wrapped method to have an extra parameter (cls or self). 20 November 2020, 13:44:02 UTC
a6109ef bpo-1635741: Convert _sre types to heap types and establish module state (PEP 384) (GH-23393) 20 November 2020, 12:36:23 UTC
2db8e35 bpo-1635741: Enhance _datetime error handling (GH-23139) 20 November 2020, 10:39:40 UTC
5c36da7 bpo-42333: Port _ssl extension module to heap types (GH-23392) All types in _ssl module are now heap types. 20 November 2020, 08:40:12 UTC
03c8ddd bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413) Signed-off-by: Christian Heimes <christian@python.org> 20 November 2020, 08:26:07 UTC
7ddbaa7 bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416) Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None. 20 November 2020, 06:59:11 UTC
e1dc0db bpo-42345: Add whatsnew and versionchanged for typing.Literal in 3.9 (GH-23386) * Whatsnew entry in 3.9 same as the one in 3.10. * versionchanged for typing.Literal docs Needs backport to 3.9. 19 November 2020, 17:37:26 UTC
1b54077 bpo-42345: Fix hash implementation of typing.Literal (GH-23383) Fix hash implementation of `typing.Literal`. Update docs regarding `typing.Litaral` caching. Base implementation was done in PR #23294. 19 November 2020, 16:17:38 UTC
b437aa8 bpo-1635741: Port _posixshmem extension module to multiphase initialization (GH-23404) Signed-off-by: Christian Heimes <christian@python.org> 19 November 2020, 15:20:42 UTC
588c7c9 bpo-1635741: Fix _struct for build bot error (GH-23402) Automerge-Triggered-By: GH:tiran 19 November 2020, 14:14:34 UTC
646d7fd bpo-1635741: Port gc module to multiphase initialization (GH-23377) Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran 19 November 2020, 14:08:34 UTC
cfeb543 bpo-1635741: Port _struct to multiphase initialization (GH-23398) Signed-off-by: Christian Heimes <christian@python.org> 19 November 2020, 13:36:23 UTC
3390347 bpo-42403: Simplify importlib external bootstrap (GH-23397) Simplify the importlib external bootstrap code: importlib._bootstrap_external now uses regular imports to import builtin modules. When it is imported, the builtin __import__() function is already fully working and so can be used to import builtin modules like sys. 19 November 2020, 12:43:43 UTC
7d9d25d bpo-42403: Fix pyflakes warnings in importlib (GH-23396) Remove unused imports and unused local variables. 19 November 2020, 10:20:57 UTC
bf9d70a bpo-1635741: Port spwd to multiphase initialization (GH-23390) Signed-off-by: Christian Heimes <christian@python.org> 19 November 2020, 09:54:03 UTC
3094dd5 bpo-1635741: Port _queue to multiphase initialization (GH-23376) Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran 19 November 2020, 08:24:37 UTC
fa2eee9 bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360) Signed-off-by: Christian Heimes <christian@python.org> 19 November 2020, 07:47:32 UTC
cc0cd43 bpo-1635741: Port _random to multiphase initialization (GH-23359) Signed-off-by: Christian Heimes <christian@python.org> 19 November 2020, 07:46:29 UTC
13b865f bpo-42375: subprocess DragonFlyBSD build update. (GH-23320) Same as FreeBSD, file descriptors in /dev/fd id from 0 to 63. 19 November 2020, 07:24:15 UTC
4687338 bpo-42345: Add whatsnew for typing.Literal in 3.10 (GH-23385) 19 November 2020, 04:44:24 UTC
a85fefe bpo-42381: Document walrus-related syntax changes in whatsnew (GH-23382) Automerge-Triggered-By: GH:lysnikolaou 18 November 2020, 23:49:28 UTC
6f4635f bpo-1635741: Port _warnings to the multi-phase init (GH-23379) Port the _warnings extension module to the multi-phase initialization API (PEP 489). 18 November 2020, 23:19:06 UTC
829b177 [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769) 18 November 2020, 22:45:17 UTC
6223071 bpo-1635741: Convert _imp to multi-phase init (GH-23378) Convert the _imp extension module to the multi-phase initialization API (PEP 489). * Add _PyImport_BootstrapImp() which fix a bootstrap issue: import the _imp module before importlib is initialized. * Add create_builtin() sub-function, used by _imp_create_builtin(). * Initialize PyInterpreterState.import_func earlier, in pycore_init_builtins(). * Remove references to _PyImport_Cleanup(). This function has been renamed to finalize_modules() and moved to pylifecycle.c. 18 November 2020, 22:18:29 UTC
e025178 bpo-39573: Remove What's new entry for Py_SIZE() (GH-23375) A follow up for 0e2ac21dd4960574e89561243763eabba685296a 18 November 2020, 21:39:03 UTC
7c9487d bpo-42085: Add documentation for Py_TPFLAGS_HAVE_AM_SEND (GH-23374) Updated docs to include `Py_TPFLAGS_HAVE_AM_SEND`. News section should not be necessary. Automerge-Triggered-By: GH:asvetlov 18 November 2020, 18:58:38 UTC
0e2ac21 bpo-39573: Convert Py_TYPE() and Py_SIZE() back to macros (GH-23366) This change partically reverts commit ad3252bad905d41635bcbb4b76db30d570cf0087 and the commit fe2978b3b940fe2478335e3a2ca5ad22338cdf9c. Many third party C extension modules rely on the ability of using Py_TYPE() to set an object type: "Py_TYPE(obj) = type;" or to set an object type using: "Py_SIZE(obj) = size;". 18 November 2020, 17:48:06 UTC
2156d96 bpo-42336: Improve PCbuild batch files (GH-23275) 18 November 2020, 17:24:36 UTC
07f2ade bpo-40998: Address compiler warnings found by ubsan (GH-20929) Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran 18 November 2020, 15:38:53 UTC
46f59eb bpo-1635741: Port _hashlib to multiphase initialization (GH-23358) Signed-off-by: Christian Heimes <christian@python.org> 18 November 2020, 15:12:13 UTC
c701101 bpo-1635741: Port symtable module to multiphase initialization (GH-23361) Signed-off-by: Christian Heimes <christian@python.org> 18 November 2020, 15:03:51 UTC
d1e38d4 bpo-40998: Fix a refleak in create_filter() (GH-23365) 18 November 2020, 14:57:10 UTC
8fba952 bpo-42398: Fix "make regen-all" race condition (GH-23362) Fix a race condition in "make regen-all" when make -jN option is used to run jobs in parallel. The clinic.py script now only use atomic write to write files. Moveover, generated files are now left unchanged if the content does not change, to not change the file modification time. The "make regen-all" command runs "make clinic" and "make regen-importlib" targets: * "make regen-importlib" builds object files (ex: Modules/_weakref.o) from source files (ex: Modules/_weakref.c) and clinic files (ex: Modules/clinic/_weakref.c.h) * "make clinic" always rewrites all clinic files (ex: Modules/clinic/_weakref.c.h) Since there is no dependency between "clinic" and "regen-importlib" Makefile targets, these two targets can be run in parallel. Moreover, half of clinic.py file writes are not atomic and so there is a race condition when "make regen-all" runs jobs in parallel using make -jN option (which can be passed in MAKEFLAGS environment variable). Fix clinic.py to make all file writes atomic: * Add write_file() function to ensure that all file writes are atomic: write into a temporary file and then use os.replace(). * Moreover, write_file() doesn't recreate or modify the file if the content does not change to avoid modifying the file modification file. * Update test_clinic to verify these assertions with a functional test. * Remove Clinic.force attribute which was no longer used, whereas Clinic.verify remains useful. 18 November 2020, 14:36:27 UTC
ce04e71 bpo-41561: skip test_min_max_version_mismatch (GH-22308) skip test_min_max_version_mismatch when TLS 1.0 is not available Signed-off-by: Christian Heimes <christian@python.org> 18 November 2020, 12:10:53 UTC
ccdcb20 bpo-40656: Clean up detect_socket() (GH-20148) 18 November 2020, 00:08:58 UTC
d0d4a45 bpo-42395: Add aclosing to __all__ (GH-23356) Automerge-Triggered-By: GH:asvetlov 17 November 2020, 23:18:05 UTC
9c98e8c bpo-42396: Add a whatsnew entry about async contextlib.nullcontext (GH-23357) Automerge-Triggered-By: GH:asvetlov 17 November 2020, 22:58:35 UTC
7f9b25a bpo-41713: Port _signal module to multi-phase init (GH-23355) Port the _signal extension module to the multi-phase initialization API (PEP 489). Co-Authored-By: Mohamed Koubaa <koubaa.m@gmail.com> 17 November 2020, 22:28:25 UTC
1de61d3 bpo-41625: Skip os.splice() tests on AIX (GH-23354) On AIX, splice() only works with a socket, whereas the test uses a pipe. 17 November 2020, 22:08:10 UTC
29aa624 bpo-41686: Move _Py_RestoreSignals() to signalmodule.c (GH-23353) 17 November 2020, 21:55:30 UTC
282282a Fix: Docstrings hidden by slots. (GH-23352) Some `__slots__` where before the docstring, hiding them. 17 November 2020, 21:50:23 UTC
2a9eddf bpo-41625: Add a guard for Linux for splice() constants in the os module (GH-23350) 17 November 2020, 19:57:49 UTC
e59958f bpo-41625: Specify that Linux >= 2.6.17 *and* glibc >= 2.5 are requir… (GH-23351) …ed for splice() 17 November 2020, 19:57:03 UTC
266b462 bpo-42349: Compiler clean up. More yak-shaving for PEP 626. (GH-23267) Make sure that CFG from compiler front-end is correct. Be a bit more aggressive in the compiler back-end. 17 November 2020, 19:30:14 UTC
fa96608 bpo-41625: Add versionadded to os.splice() constants (GH-23340) 17 November 2020, 18:13:50 UTC
cda23be bpo-41686: Refactor signal_exec() (GH-23346) * Add signal_add_constants() function and add ADD_INT_MACRO macro. * The Python SIGINT handler is now installed at the end of signal_exec(). * Use Py_NewRef(). 17 November 2020, 17:57:32 UTC
0ae323b bpo-41686: Always create the SIGINT event on Windows (GH-23344) bpo-41686, bpo-41713: On Windows, the SIGINT event, _PyOS_SigintEvent(), is now created even if Python is configured to not install signal handlers (PyConfig.install_signal_handlers=0 or Py_InitializeEx(0)). Changes: * Move global variables initialization from signal_exec() to _PySignal_Init() to clarify that they are global variables cleared by _PySignal_Fini(). * _PySignal_Fini() now closes sigint_event. * IntHandler is no longer a global variable. 17 November 2020, 17:15:20 UTC
a1f401a bpo-42264: Deprecate sqlite3.OptimizedUnicode (GH-23163) 17 November 2020, 15:55:12 UTC
296a796 bpo-41713: Remove PyOS_InitInterrupts() function (GH-23342) Remove the undocumented PyOS_InitInterrupts() C function. * Rename PyOS_InitInterrupts() to _PySignal_Init(). It now installs other signal handlers, not only SIGINT. * Rename PyOS_FiniInterrupts() to _PySignal_Fini() 17 November 2020, 15:22:23 UTC
975022b bpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980) Skip testing of pure Python PBKDF2 when one or more builtin hash module is not available. Otherwise the import of hashlib prints noise on stderr. Signed-off-by: Christian Heimes <christian@python.org> 17 November 2020, 14:40:35 UTC
2ffba2a bpo-41861, _sqlite3 : Add NEWS entry and rename variables (GH-23337) 17 November 2020, 12:52:54 UTC
f03d318 bpo-42345: Fix three issues with typing.Literal parameters (GH-23294) Literal equality no longer depends on the order of arguments. Fix issue related to `typing.Literal` caching by adding `typed` parameter to `typing._tp_cache` function. Add deduplication of `typing.Literal` arguments. 17 November 2020, 02:23:19 UTC
back to top