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

sort by:
Revision Author Date Message Commit Date
85f5a69 bpo-39877: Refactor take_gil() function (GH-18885) * Remove ceval parameter of take_gil(): get it from tstate. * Move exit_thread_if_finalizing() call inside take_gil(). Replace exit_thread_if_finalizing() with tstate_must_exit(): the caller is now responsible to call PyThread_exit_thread(). * Move is_tstate_valid() assertion inside take_gil(). Remove is_tstate_valid(): inline code into take_gil(). * Move gil_created() assertion inside take_gil(). 09 March 2020, 21:12:04 UTC
363fab8 bpo-27115: Use Query subclass for IDLE editor Goto (GH-18871) Replace tkinter tkSimpleDialog.askinteger with a standard IDLE query dialog. The new box checks for positivity before returning. 09 March 2020, 20:51:20 UTC
e7cab7f bpo-38870: Simplify sequence interleaves in ast.unparse (GH-17892) 09 March 2020, 20:27:03 UTC
111e4ee bpo-39877: Py_Initialize() pass tstate to PyEval_InitThreads() (GH-18884) 09 March 2020, 20:24:14 UTC
3225b9f bpo-39877: Remove useless PyEval_InitThreads() calls (GH-18883) Py_Initialize() calls PyEval_InitThreads() since Python 3.7. It's no longer needed to call it explicitly. 09 March 2020, 19:56:57 UTC
eebaa9b bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release mode. (GH-16329) Co-authored-by: Victor Stinner <vstinner@python.org> 09 March 2020, 18:49:52 UTC
6d0ee60 bpo-36184: Port python-gdb.py to FreeBSD (GH-18873) python-gdb.py now checks for "take_gil" function name to check if a frame tries to acquire the GIL, instead of checking for "pthread_cond_timedwait" which is specific to Linux and can be a different condition than the GIL. 09 March 2020, 18:35:26 UTC
e5ccc94 bpo-38643: Raise SystemError instead of crashing when PyNumber_ToBase is called with invalid base. (GH-18863) 09 March 2020, 18:03:38 UTC
413f013 bpo-39904: Move handling of one-argument call of type() from type.__new__() to type.__call__(). (GH-18852) 09 March 2020, 17:59:03 UTC
6012f30 bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866) 09 March 2020, 13:48:01 UTC
dccd41e bpo-39822: Use NULL instead of None for empty attrib in Element. (GH-18735) 09 March 2020, 13:12:41 UTC
88944a4 bpo-39903: Fix double decref in _elementtree.Element.__getstate__ (GH-18850) 09 March 2020, 12:37:08 UTC
fc72ab6 bpo-38691: importlib ignores PYTHONCASEOK if -E is used (GH-18627) The importlib module now ignores the PYTHONCASEOK environment variable when the -E or -I command line options are being used. 09 March 2020, 11:57:53 UTC
e53a393 bpo-27115: Move IDLE Query error blanking (GH-18868) Move required blanking of error text to non-overridden entry_ok(). (Omit news item.) 09 March 2020, 05:38:07 UTC
d7a04a8 Fix typo in the parser generator (GH-18603) 09 March 2020, 02:58:24 UTC
0911ea5 bpo-39517: Allow runpy.run_path() to accept path-like objects (GH-18699) 08 March 2020, 20:43:17 UTC
4ca060d bpo-39885: IDLE context menu clears selection (#18859) Since clicking to get an IDLE context menu moves the cursor, any text selection should be and now is cleared. 08 March 2020, 19:30:04 UTC
2522db1 bpo-39852: IDLE 'Go to line' deletes selection, updates status (GH-18801) It appears standard that moving the text insert cursor away from a selection clears the selection. Clearing prevents accidental deletion of a possibly off-screen bit of text. The update is for Ln and Col on the status bar. 08 March 2020, 18:32:42 UTC
c580981 fix typo: add space (GH-18853) Fix typo in cmdline.rst Add space between the `-m` option and the module name (`timeit`). 08 March 2020, 17:52:15 UTC
28ca43b closes bpo-39898: Remove unused arg from append_formattedvalue. (GH-18840) 08 March 2020, 16:53:59 UTC
db283b3 bpo-39567: Document audit for os.walk, os.fwalk, Path.glob and Path.rglob. (GH-18499) 08 March 2020, 12:31:47 UTC
eb4e2ae bpo-39877: Fix PyEval_RestoreThread() for daemon threads (GH-18811) * exit_thread_if_finalizing() does now access directly _PyRuntime variable, rather than using tstate->interp->runtime since tstate can be a dangling pointer after Py_Finalize() has been called. * exit_thread_if_finalizing() is now called *before* calling take_gil(). _PyRuntime.finalizing is an atomic variable, we don't need to hold the GIL to access it. * Add ensure_tstate_not_null() function to check that tstate is not NULL at runtime. Check tstate earlier. take_gil() does not longer check if tstate is NULL. Cleanup: * PyEval_RestoreThread() no longer saves/restores errno: it's already done inside take_gil(). * PyEval_AcquireLock(), PyEval_AcquireThread(), PyEval_RestoreThread() and _PyEval_EvalFrameDefault() now check if tstate is valid with the new is_tstate_valid() function which uses _PyMem_IsPtrFreed(). 08 March 2020, 10:57:45 UTC
d5aa2e9 bpo-39890: Don't mutate the AST when compiling starred assignments (GH-18833) 08 March 2020, 03:44:18 UTC
4663f66 bpo-36144: Update MappingProxyType with PEP 584's operators (#18814) We make `|=` raise TypeError, since it would be surprising if `C.__dict__ |= {'x': 0}` silently did nothing, while `C.__dict__.update({'x': 0})` is an error. 07 March 2020, 19:03:09 UTC
8f13053 bpo-39702: Update the Language Reference (PEP 614) (GH-18802) 07 March 2020, 18:23:49 UTC
02f64cb bpo-39199: Use 'eval' mode for the examples with expression nodes (GH-18828) Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> 07 March 2020, 18:22:58 UTC
eb7560a bpo-38894: Fix pathlib.Path.glob in the presence of symlinks and insufficient permissions (GH-18815) Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net> 07 March 2020, 17:53:20 UTC
aa450a0 closes bpo-39886: Remove unused arg from config_get_stdio_errors. (GH-18823) 07 March 2020, 17:36:04 UTC
ad0c775 closes bpo-39878: Remove unused arguments from static functions. (GH-18822) calc_number_widths -> PyObject *number fill_number -> Py_ssize_t d_end 07 March 2020, 17:29:10 UTC
c4928fc bpo-39889: Fix ast.unparse() for subscript. (GH-18824) 07 March 2020, 15:25:32 UTC
31350f9 bpo-39837: Disable macOS tests on Azure Pipelines (GH-18818) 07 March 2020, 00:11:47 UTC
9e5d30c bpo-39882: Py_FatalError() logs the function name (GH-18819) The Py_FatalError() function is replaced with a macro which logs automatically the name of the current function, unless the Py_LIMITED_API macro is defined. Changes: * Add _Py_FatalErrorFunc() function. * Remove the function name from the message of Py_FatalError() calls which included the function name. * Update tests. 06 March 2020, 23:54:20 UTC
7b3c252 bpo-39877: _PyRuntimeState.finalizing becomes atomic (GH-18816) Convert _PyRuntimeState.finalizing field to an atomic variable: * Rename it to _finalizing * Change its type to _Py_atomic_address * Add _PyRuntimeState_GetFinalizing() and _PyRuntimeState_SetFinalizing() functions * Remove _Py_CURRENTLY_FINALIZING() function: replace it with testing directly _PyRuntimeState_GetFinalizing() value Convert _PyRuntimeState_GetThreadState() to static inline function. 06 March 2020, 23:24:23 UTC
5572870 bpo-39573: Use Py_IS_TYPE() macro to check for types (GH-18809) Co-authored-by: Victor Stinner <vstinner@python.org> 06 March 2020, 22:53:17 UTC
e59334e bpo-17422: slightly more precise language (GH-18682) 06 March 2020, 18:20:48 UTC
9a73705 bpo-39873: Cleanup _PyObject_CheckConsistency() (GH-18807) Remove redundant check on Py_TYPE() value: it's already checked inside _PyType_CheckConsistency(). 06 March 2020, 17:57:48 UTC
57c9d17 bpo-36144: Implement defaultdict union (GH-18729) For PEP 585 (this isn't in the PEP but is an obvious follow-up). 06 March 2020, 17:24:08 UTC
9566842 closes bpo-39872: Remove unused args from symtable_exit_block and symtable_visit_annotations. (GH-18800) 06 March 2020, 15:46:04 UTC
1fb5a9f bpo-39873: PyObject_Init() uses PyObject_INIT() (GH-18804) Avoid duplicated code: * PyObject_Init() uses PyObject_INIT() * PyObject_InitVar() uses PyObject_INIT_VAR() 06 March 2020, 14:55:14 UTC
7598a93 PyPy already supports Python 3 (GH-18774) 06 March 2020, 11:08:17 UTC
8767ce9 bpo-39573: Make Py_IS_TYPE() take constant parameters (GH-18799) Add _PyObject_CAST_CONST() macro: cast a pointer to (const PyObject *). 06 March 2020, 08:03:58 UTC
8bae219 bpo-39868: Update Language Reference for PEP 572. (#18793) 06 March 2020, 05:19:22 UTC
e63117a closes bpo-39859: Do not downcast result of hstrerror (GH-18790) set_herror builds a string by calling hstrerror but downcasts its return value to char *. It should be const char *. Automerge-Triggered-By: @benjaminp 06 March 2020, 04:43:36 UTC
da4d656 closes bpo-39870: Remove unused arg from sys_displayhook_unencodable. (GH-18796) Also move int err to its innermost scope. 06 March 2020, 04:34:36 UTC
ce305d6 IDLE doc: improve Startup failure subsection. (#18771) Eliminate repeat of 'Options', reported by Jules Lasne, and improve wording elsewhere. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 06 March 2020, 01:28:14 UTC
efc28bb Add a comment to _Py_RestoreSignals() (GH-18792) subprocess _posix_spawn() should stay in sync with _Py_RestoreSignals(). 05 March 2020, 17:13:56 UTC
f7b5d41 bpo-39855: Fix test_subprocess if nobody user doesn't exist (GH-18781) test_subprocess.test_user() now skips the test on an user name if the user name doesn't exist. For example, skip the test if the user "nobody" doesn't exist on Linux. 05 March 2020, 13:28:40 UTC
85cf1d5 bpo-13487: Use sys.modules.copy() in inspect.getmodule() for thread safety. (GH-18786) `list(sys.modules.items())` was apparently not immune to "dictionary changed size during iteration" errors. Tested internally using an integration test that has run into this a couple of times in the past two years. With this patch applied, the test is no longer flaky. 05 March 2020, 00:45:22 UTC
d4a09c1 Add a missing space after a period in 'typing.TypedDict' documentation (GH-18784) 05 March 2020, 00:12:28 UTC
67152d0 bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) 04 March 2020, 22:51:50 UTC
942f7a2 bpo-39674: Revert "bpo-37330: open() no longer accept 'U' in file mode (GH-16959)" (GH-18767) This reverts commit e471e72977c83664f13d041c78549140c86c92de. The mode will be removed from Python 3.10. 04 March 2020, 17:50:22 UTC
00c77ae bpo-39763: Refactor setup.py (GH-18778) Split long build_extensions() method into sub-methods. Fix also a typo in Popen.wait(): replace sts with status. 04 March 2020, 17:44:49 UTC
d82e469 bpo-39639: Remove the AST "Suite" node and associated code (GH-18513) The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...). Co-Authored-By: Victor Stinner <vstinner@python.org> Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 04 March 2020, 16:16:46 UTC
702e09f bpo-39770, array module: Remove unnecessary descriptor counting (GH-18675) 04 March 2020, 14:52:15 UTC
a6d3546 bpo-39674: Fix typo in What's New In Python 3.9 (GH-18776) 04 March 2020, 14:11:43 UTC
1ec63b6 bpo-39763: distutils.spawn now uses subprocess (GH-18743) Reimplement distutils.spawn.spawn() function with the subprocess module. setup.py now uses a basic implementation of the subprocess module if the subprocess module is not available: before required C extension modules are built. 04 March 2020, 13:50:19 UTC
dffe4c0 bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601) 04 March 2020, 13:15:20 UTC
22a9a54 bpo-39826: add getConnection() hook to logging HTTPHandler (GH-18745) 04 March 2020, 10:49:51 UTC
be501ca bpo-39702: Relax grammar restrictions on decorators (PEP 614) (GH-18570) 03 March 2020, 22:25:44 UTC
116fd4a bpo-39674: Suggest to test with DeprecationWarning (GH-18552) Add a section in What's New In Python 3.9 to strongly advice to check for DeprecationWarning in your Python projects. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 03 March 2020, 21:52:20 UTC
469325c bpo-35712: Make using NotImplemented in a boolean context issue a deprecation warning (GH-13195) 03 March 2020, 18:50:17 UTC
ae75a29 bpo-39831: Remove outdated comment. (GH-18764) 03 March 2020, 17:43:29 UTC
91fe414 bpo-39674: Update collections ABC deprecation doc (GH-18747) 03 March 2020, 16:31:11 UTC
e0acec1 bpo-12915: Skip test_pkgutil.test_name_resolution() non-encodable filenames (GH-18720) When filesystem encoding cannot encode the Unicode string used for a filename continue testing with the next example. 03 March 2020, 10:11:11 UTC
6df421f bpo-39778: Add clarification about tp_traverse and ownership (GH-18754) Automerge-Triggered-By: @pablogsal 03 March 2020, 02:50:40 UTC
4991cf4 bpo-39802: Only expose set_escdelay and set_tabsize when curses extensions are activated (GH-18705) 03 March 2020, 02:00:10 UTC
6daa37f bpo-38091: Import deadlock detection causes deadlock (GH-17518) Automerge-Triggered-By: @brettcannon 03 March 2020, 01:37:25 UTC
ce3a498 bpo-38597: Never statically link extension initialization code on Windows (GH-18724) 03 March 2020, 00:04:11 UTC
0c2b509 bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and tp_clear (GH-18749) Objects do not own weak references to them directly through the __weakref__ list so these do not need to be traversed by the GC. 02 March 2020, 23:12:54 UTC
b3b9ade bpo-39776: Lock ++interp->tstate_next_unique_id. (GH-18746) (#18746) - Threads created by PyGILState_Ensure() could have a duplicate tstate->id. 02 March 2020, 20:22:36 UTC
2d2f855 bpo-39831: Fix a reference leak in PyErr_WarnEx(). (GH-18750) 02 March 2020, 20:05:08 UTC
89aa469 bpo-38870: Add docstring support to ast.unparse (GH-17760) Allow ast.unparse to detect docstrings in functions, modules and classes and produce nicely formatted unparsed output for said docstrings. Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com> 02 March 2020, 18:59:01 UTC
66b7973 bpo-39796: Fix _warnings module initialization (GH-18739) * Add _PyWarnings_InitState() which only initializes the _warnings module state (tstate->interp->warnings) without creating a module object * Py_InitializeFromConfig() now calls _PyWarnings_InitState() instead of _PyWarnings_Init() * Rename also private functions of _warnings.c to avoid confusion between the public C API and the private C API. 02 March 2020, 14:02:18 UTC
4482337 bpo-39764: Make Task.get_stack accept ag_frame (#18669) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 02 March 2020, 12:45:54 UTC
1382c32 bpo-38380: Update macOS & Windows builds to SQLite v3.31.1 (GH-18678) Automerge-Triggered-By: @zooba 02 March 2020, 12:25:10 UTC
2110551 bpo-39775: inspect: Change Signature.parameters back to OrderedDict. (GH-18684) 02 March 2020, 09:54:48 UTC
9f1cb1b Fix misleading statement about mixed-type numeric comparisons (GH-18615) 02 March 2020, 08:57:27 UTC
28d0bca bpo-38913: Fix segfault in Py_BuildValue("(s#O)", ...) if entered with exception raised. (GH-18656) 02 March 2020, 06:42:39 UTC
2565ede bpo-38971: Open file in codecs.open() closes if exception raised. (GH-17666) Open issue in the BPO indicated a desire to make the implementation of codecs.open() at parity with io.open(), which implements a try/except to assure file stream gets closed before an exception is raised. 02 March 2020, 06:39:50 UTC
4edc95c bpo-39495: Remove default value from C impl of TreeBuilder.start (GH-18275) 02 March 2020, 06:33:24 UTC
1f577ce bpo-39378: partial of PickleState struct should be traversed. (GH-18046) 02 March 2020, 06:28:44 UTC
114081f bpo-39199: Add descriptions of non-deprecated nodes to the AST module documentation (GH-17812) Adapted from https://greentreesnakes.readthedocs.io Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> 02 March 2020, 03:14:06 UTC
3fe9117 closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709) 01 March 2020, 21:26:43 UTC
217dce9 bpo-39815: add cached_property to all (GH-18726) Automerge-Triggered-By: @pablogsal 01 March 2020, 21:01:34 UTC
0e89076 bpo-39678: refactor queue manager thread (GH-18551) 01 March 2020, 20:49:14 UTC
397b96f bpo-38870: Implement a precedence algorithm in ast.unparse (GH-17377) Implement a simple precedence algorithm for ast.unparse in order to avoid redundant parenthesis for nested structures in the final output. 01 March 2020, 20:12:17 UTC
185903d bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304) 01 March 2020, 20:07:22 UTC
768d739 bpo-38641: Add lib2to3 support for starred expressions in return/yield statements (GH-16994) 01 March 2020, 19:59:26 UTC
0b0d29f Mention backports (GH-18715) 29 February 2020, 21:39:23 UTC
5e260e0 bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest Auth (GH-18338) * bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest authentication - The 'qop' value in the 'WWW-Authenticate' header is optional. The presence of 'qop' in the header should be checked before its value is parsed with 'split'. Signed-off-by: Stephen Balousek <stephen@balousek.net> * bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest authentication - Add NEWS item Signed-off-by: Stephen Balousek <stephen@balousek.net> * Update Misc/NEWS.d/next/Library/2020-02-06-05-33-52.bpo-39548.DF4FFe.rst Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> 29 February 2020, 20:31:58 UTC
eb47fd5 Cosmetic change to match the surrounding code. (#18704) 29 February 2020, 19:07:48 UTC
815280e bpo-39794: Add --without-decimal-contextvar (#18702) 29 February 2020, 18:43:42 UTC
0aeab5c bpo-39667: Sync zipp 3.0 (GH-18540) * bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0 * 📜🤖 Added by blurb_it. * Update docs for new zipfile.Path.open * Rely on dict, faster than OrderedDict. * Syntax edits on docs Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 29 February 2020, 16:34:11 UTC
1f0cd3c bpo-39379: Remove reference to sys.path[0] being absolute path in whatsnew (GH-18561) Remove reference to sys.path[0] being absolute path in whatsnew Co-Authored-By: Kyle Stanley <aeros167@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kyle Stanley <aeros167@gmail.com> 29 February 2020, 12:25:22 UTC
dc04a05 bpo-37534: Allow adding Standalone Document Declaration when generating XML documents (GH-14912) 29 February 2020, 08:22:19 UTC
0267335 bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) Fix compileall.compile_dir() ddir= behavior on sub-packages. Fixes compileall.compile_dir's ddir parameter and compileall command line flag `-d` to no longer write the wrong pathname to the generated pyc file for submodules beneath the root of the directory tree being compiled. This fixes a regression introduced with Python 3.5. Also marks the _new_ in 3.9 from PR #16012 parameters to compile_dir as keyword only (as that is the only way they will be used) and fixes an omission of them in one place from the docs. 29 February 2020, 01:28:37 UTC
03153dd bpo-39789: Update Windows release build machines to VS 2019 (GH-18695) Also fixes some potential Nuget build issues. 29 February 2020, 00:21:46 UTC
c2f7eb2 bpo-39718: add TYPE_IGNORE, COLONEQUAL to py38 changes in token (GH-18598) 28 February 2020, 23:25:36 UTC
916895f bpo-13790: Change 'string' to 'specification' in format doc (GH-18690) 28 February 2020, 19:59:16 UTC
c705fd1 bpo-39781: Do not jump when select in IDLE codecontext (GH-18683) Previously, the button-up part of selecting with a mouse was treated as a click that meant 'jump' to this line, which modified the context and undid the selection 28 February 2020, 18:22:55 UTC
back to top