summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42670: Fix a missing word in the itertools.product() docs (GH-23823)Zackery Spytz2020-12-171-1/+1
|
* bpo-31904: posixpath.expanduser() handles None user home on VxWorks (GH-23530)pxinwr2020-12-172-0/+5
|
* [doc] Fix a few margins due to bad markup (GH-23619)Andre Delfino2020-12-1711-89/+88
|
* bpo-42246: Make sure that `f_lasti`, and thus `f_lineno`, is set correctly ↵Mark Shannon2020-12-1713-225/+317
| | | | | | | | | after raising or reraising an exception (GH-23803) * Ensure that f_lasti is set correctly after an exception is raised to conform to PEP 626. * Update importlib * Add NEWS.
* bpo-26564: fix obsolete comment in traceback.c (GH-23819)Irit Katriel2020-12-171-1/+2
|
* bpo-31904: Skip some asyncio tests on VxWorks (#23815)pxinwr2020-12-173-1/+11
|
* [doc] Fix erroneous backslashes in signatures and names (GH-23658)Andre Delfino2020-12-1732-88/+88
| | | | | The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch). The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did.
* Correct referenced RFC number in cgi module (GH-22827)Mike Lei2020-12-171-1/+1
| | | The quoted sentence can be found from the last paragraph of RFC 2046, Section 5.1, while the content of RFC 2026 is unrelated to this module.
* Fix indentation for get_stats_profile() docs (GH-23618)Matthew Suozzo2020-12-161-1/+1
| | | | The existing method is indented one too many times which makes it look like a sub-method of print_callees().
* bpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)Daniel Hahler2020-12-163-1/+22
| | | Regression in 8d59eb1b66c51b2b918da9881c57d07d08df43b7.
* bpo-38323: Add guard clauses in MultiLoopChildWatcher. (#22756)Chris Jerdonek2020-12-161-14/+18
| | | This is a trivial refactor in preparation for a fix for bpo-38323.
* bpo-23915: update and elucidate documentation of with_traceback (GH-23680)Irit Katriel2020-12-161-2/+7
|
* Clarify eval() doc from library/functions. (GH-22700)Antoine2020-12-161-8/+9
|
* bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614)Victor Stinner2020-12-161-10/+4
| | | | | | | | "uint8_t day" is unsigned and so "day < 0" test is always true. Remove the test to fix the following warnings on Windows: modules\_zoneinfo.c(1224): warning C4068: unknown pragma modules\_zoneinfo.c(1225): warning C4068: unknown pragma modules\_zoneinfo.c(1227): warning C4068: unknown pragma
* Fix reStructuredText typo in NEWS.d. (GH-23800)Julien Palard2020-12-161-1/+1
|
* Add symbols of the stable ABI to python3dll.c (GH-23598)Victor Stinner2020-12-161-0/+7
| | | | | | | | | | | Add the following symbols to python3dll.c: * PyFrame_GetCode (bpo-40421) * PyFrame_GetLineNumber (bpo-40421) * PyModule_AddObjectRef (bpo-1635741) * PyObject_CallNoArgs (bpo-37194) * PyThreadState_GetFrame (bpo-39947) * PyThreadState_GetID (bpo-39947) * PyThreadState_GetInterpreter (bpo-39947)
* bpo-42645: Make sure that return/break/continue are only traced once when ↵Mark Shannon2020-12-164-1676/+1790
| | | | | | | | | exiting via a finally block. (GH-23780) * Make sure that return/break/continue are only traced once when exiting via a finally block. * Add test for return in try-finally. * Update importlib
* bpo-42615: Delete redundant jump instructions that only bypass empty blocks ↵Om G2020-12-165-101/+174
| | | | | | | | | | | | | | | | | | | | | | | (GH-23733) * Delete jump instructions that bypass empty blocks * Add news entry * Explicitly check for unconditional jump opcodes Using the is_jump function results in the inclusion of instructions like returns for which this optimization is not really valid. So, instead explicitly check that the instruction is an unconditional jump. * Handle conditional jumps, delete jumps gracefully * Ensure b_nofallthrough and b_reachable are valid * Add test for redundant jumps * Regenerate importlib.h and edit Misc/ACKS * Fix bad whitespace
* bpo-1635741: Refactor _threadmodule.c (GH-23793)Victor Stinner2020-12-161-311/+226
| | | | | | | | | | | | | * Fix ExceptHookArgsType name: "_thread.ExceptHookArgs", instead of "_thread._ExceptHookArgs". * PyInit__thread() no longer intializes interp->num_threads to 0: it is already done in PyInterpreterState_New(). * Use PyModule_AddType(), Py_NewRef() and Py_XNewRef(). * Replace str_dict variable with _Py_IDENTIFIER(__dict__). * Remove assert(Py_IS_TYPE(obj, &Locktype)) from release_sentinel() to avoid having to retrive the type from this callback. * Add thread_bootstate_free() * Rename t_bootstrap() to thread_run() * bootstate structure: rename keyw member to kwargs
* bpo-42613: Fix freeze.py config directory (GH-23792)Victor Stinner2020-12-162-10/+12
| | | Fix freeze.py tool to use the prope config and library directories.
* bpo-40364: asyncio uses os.waitstatus_to_exitcode() (GH-23798)Victor Stinner2020-12-162-215/+80
| | | | | test_unix_events.py no longer checks if waitstatus_to_exitcode() mock has been called or not to make the test more functional, rather than checking the exact implementation.
* bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)Serhiy Storchaka2020-12-162-6/+0
|
* bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795)Victor Stinner2020-12-161-13/+11
| | | Use shorter timeout and replace send() with sendall().
* bpo-42644: Validate values in logging.disable() (#23786)Matthias Bussonnier2020-12-163-0/+20
| | | | | | | | | | | | | | | | | | | * bpo-42644: Validate values in logging.disable() Technically make the value of manager a property that checks and convert values assigned to it properly. This has the side effect of making `logging.disable` also accept strings representing the various level of warnings. We want to validate the type of the disable attribute at assignment time, as it is later compared to other levels when emitting warnings and would generate a `TypeError: '>=' not supported between ....` in a different part of the code base, which can make it difficult to track down. When assigned an incorrect value; it will raise a TypeError when the wrong type, or ValueError if an invalid str. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-42179: Clarify exception chaining (GH-23160)Vladimir2020-12-161-4/+4
| | | | | | | | | | | | | | | | | * Update errors.rst Clarify exception chaining behaviour and give a reference to the library documentation. * Update errors.rst Wording * Update errors.rst Spelling * Update errors.rst Remove mentioning of special attributes as folks think it's too much for beginners.
* Update Stale action message (GH-23791)Mariatta2020-12-161-1/+1
| | | We don't close PRs after it becomes stale.
* bpo-42090: zipfile.Path.joinpath now accepts multiple arguments (GH-22976)Jason R. Coombs2020-12-164-3/+24
| | | Automerge-Triggered-By: GH:jaraco
* bpo-31904: Skip os.path.expanduser() tests on VxWorks (GH-23776)pxinwr2020-12-152-0/+5
|
* bpo-31904: Skip some tests of changing owner in _test_all_chown_common() on ↵pxinwr2020-12-152-2/+12
| | | | VxWorks (GH-23716)
* bpo-31904: Disable os.popen and popen test cases on VxWorks (GH-21687)pxinwr2020-12-157-46/+58
|
* Adding "stale" GitHub Action (GH-21247)Mariatta2020-12-151-0/+19
| | | | | | | | | | | Adding "stale" GitHub Action Added the "stale" GitHub action to the CPython repo. PR's older than 30 days will be labeled as stale using the "stale-pr" label. Closes https://github.com/python/core-workflow/issues/372 Co-authored-by: Brett Cannon <brett@python.org>
* bpo-40219: Lowered ttk LabeledScale dummy (GH-21467)E-Paine2020-12-152-1/+5
|
* Let dependabot create PRs against the maintenance branches (GH-22992)Mariatta2020-12-151-0/+4
| | | With this, we don't have to manually trigger backport whenever there is update to GitHub Actions dependencies.
* Update stable ABI script for MacOS and update list of exported symbols ↵Pablo Galindo2020-12-152-1/+6
| | | | (GH-23783)
* bpo-42641: Enhance test_select.test_select() (GH-23782)Victor Stinner2020-12-152-9/+23
| | | | | | | | | Enhance test_select.test_select(): it now takes 500 ms rather than 10 seconds. * Use Python rather than a shell as the child process to make the test more portable. * Use a sleep of 50 ms per line rather than 1 second. * Use subprocess.Popen rather than os.popen().
* bpo-36675: Doc: Reveal doctest directives (GH-23620)Julien Palard2020-12-152-19/+39
|
* bpo-42639: atexit._run_exitfuncs() uses sys.unraisablehook (GH-23779)Victor Stinner2020-12-155-184/+140
| | | | | | | | | | atexit._run_exitfuncs() now logs callback exceptions using sys.unraisablehook, rather than logging them directly into sys.stderr and raising the last exception. Run GeneralTest of test_atexit in a subprocess since it calls atexit._clear() which clears all atexit callbacks. _PyAtExit_Fini() sets state->callbacks to NULL.
* bpo-32381: pymain_run_file() uses PySys_FormatStderr() (GH-23778)Victor Stinner2020-12-151-17/+34
| | | | | If config->run_filename doesn't exist, log the error into sys.stderr using "%R" format, to escape properly unencodable characters (usually with backslashreplace).
* bpo-42639: Add script_helper.run_test_script() (GH-23777)Victor Stinner2020-12-153-16/+34
| | | | | | * Add run_test_script() function to test.support.script_helper. * Rename Lib/test/eintrdata/eintr_tester.py to Lib/test/_test_eintr.py. * test_eintr.py uses run_test_script().
* bpo-14935: Remove static state from the _csv module (GH-23224)Petr Viktorin2020-12-152-241/+304
| | | | | | | | Uses code from: https://github.com/python/cpython/pull/16078 Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com> Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com> Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-42639: Move atexit state to PyInterpreterState (GH-23763)Victor Stinner2020-12-157-113/+101
| | | | | | | | | * Add _PyAtExit_Call() function and remove pyexitfunc and pyexitmodule members of PyInterpreterState. The function logs atexit callback errors using _PyErr_WriteUnraisableMsg(). * Add _PyAtExit_Init() and _PyAtExit_Fini() functions. * Remove traverse, clear and free functions of the atexit module. Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-42246: Remove DO_NOT_EMIT_BYTECODE macros, so that while loops and if ↵Mark Shannon2020-12-158-3545/+3486
| | | | statements conform to PEP 626. (GH-23743)
* bpo-33610: Edit idlelib.codecontext (GH-23773)Terry Jan Reedy2020-12-151-5/+8
| | | Add sentence to module docstring and import tkinter items.
* bpo-31904: Enable libpython3.so shared library for VxWorks (GH-23741)pxinwr2020-12-143-4/+5
|
* bpo-42639: atexit now logs callbacks exceptions (GH-23771)Victor Stinner2020-12-148-28/+53
| | | | | | | | | | | At Python exit, if a callback registered with atexit.register() fails, its exception is now logged. Previously, only some exceptions were logged, and the last exception was always silently ignored. Add _PyAtExit_Call() function and remove PyInterpreterState.atexit_func member. call_py_exitfuncs() now calls directly _PyAtExit_Call(). The atexit module must now always be built as a built-in module.
* bpo-42639: Cleanup atexitmodule.c (GH-23770)Victor Stinner2020-12-145-158/+125
| | | | | | | | | * Rename "atexitmodule_state" to "struct atexit_state". * Rename "modstate" to "state". * Rename "self" parameter to "module". * test_atexit uses textwrap.dedent(). * Remove _Py_PyAtExit() function: inline it into atexit_exec(). * PyInterpreterState: rename pyexitfunc to atexit_func, rename pyexitmodule to atexit_module.
* bpo-41877: Check for misspelled speccing arguments (GH-23737)vabr-g2020-12-143-8/+84
| | | | | | | | | | | | patch, patch.object and create_autospec silently ignore misspelled arguments such as autospect, auto_spec and set_spec. This can lead to tests failing to check what they are supposed to check. This change adds a check causing a RuntimeError if the above functions get any of the above misspellings as arguments. It also adds a new argument, "unsafe", which can be set to True to disable this check. Also add "!r" to format specifiers in added error messages.
* bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)Gregory P. Smith2020-12-143-6/+79
| | | | | | | | | Add positional only args support to lib2to3 pgen2. This adds 3.8's PEP-570 support to lib2to3's pgen2. lib2to3, while being deprecated is still used by things to parse all versions of Python code today. We need it to support parsing modern 3.8 and 3.9 constructs. Also add tests for complex *expr and **expr's.
* bpo-42635: Mark JUMP_ABSOLUTE at end of 'for' loop as artificial to avoid ↵Mark Shannon2020-12-144-3767/+3795
| | | | spurious line events. (GH-23761)
* Don't generate spurious line number in try-except-finally. (#23760)Mark Shannon2020-12-144-1732/+1751
|