summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38835: Exclude PyFPE macros from the stable API (GH-17228)Victor Stinner2019-11-203-0/+9
| | | | Exclude PyFPE_START_PROTECT() and PyFPE_END_PROTECT() macros of pyfpe.h from Py_LIMITED_API (stable API).
* bpo-38858: Fix reference leak in pycore_init_types() (GH-17286)Victor Stinner2019-11-201-20/+26
| | | | Only call _PyGC_Init(), _PyExc_Init() and _PyErr_Init() in new_interpreter().
* bpo-36854: gcmodule.c gets its state from tstate (GH-17285)Victor Stinner2019-11-204-163/+192
| | | | | | | | | * Add GCState type for readability * gcmodule.c now gets its gcstate from tstate * _PyGC_DumpShutdownStats() now expects tstate rather than runtime * Rename "state" to "gcstate" for readability: to avoid confusion between "state" and "tstate" for example. * collect() now only expects tstate: it gets gcstate from tstate. * Pass tstate to _PyErr_xxx() functions
* bpo-36854: Clear the current thread later (GH-17279)Victor Stinner2019-11-203-28/+35
| | | | | | | | | | Clear the current thread later in the Python finalization. * The PyInterpreterState_Delete() function is now responsible to call PyThreadState_Swap(NULL). * The tstate_delete_common() function is now responsible to clear the "autoTSSKey" thread local storage and it only clears it once the thread state is fully cleared. It allows to still get the current thread from TSS in tstate_delete_common().
* bpo-38823: Fix refleak in _tracemalloc init error handling (GH-17235)Brandt Bucher2019-11-201-1/+3
|
* bpo-38858: Factorize Py_EndInterpreter() code (GH-17273)Victor Stinner2019-11-204-58/+82
| | | | | | * Factorize code in common between Py_FinalizeEx() and Py_EndInterpreter(). * Py_EndInterpreter() now also calls _PyWarnings_Fini(). * Call _PyExc_Fini() and _PyGC_Fini() later in the finalization.
* bpo-38636: Fix IDLE tab toggle and file indent width (GH-17008)Terry Jan Reedy2019-11-205-6/+48
| | | | | These Format menu functions (default shortcuts Alt-T and Alt-U) were mistakenly disabled in 3.7.5 and 3.8.0.
* closes bpo-38712: Add signal.pidfd_send_signal. (GH-17070)Benjamin Peterson2019-11-206-1/+153
| | | | | | | | This exposes a Linux-specific syscall for sending a signal to a process identified by a file descriptor rather than a pid. For simplicity, we don't support the siginfo_t parameter to the syscall. This parameter allows implementing a pidfd version of rt_sigqueueinfo(2), which Python also doesn't support.
* bpo-38835: Don't use PyFPE_START_PROTECT and PyFPE_END_PROTECT (GH-17231)Victor Stinner2019-11-209-101/+20
| | | | | The PyFPE_START_PROTECT() and PyFPE_END_PROTECT() macros are empty: they have been doing nothing for the last year (since commit 735ae8d139a673b30b321dc10acfd3d14f0d633b), so stop using them.
* bpo-36710: Add PyInterpreterState.runtime field (GH-17270)Victor Stinner2019-11-208-94/+81
| | | | | | | | | | | Add PyInterpreterState.runtime field: reference to the _PyRuntime global variable. This field exists to not have to pass runtime in addition to tstate to a function. Get runtime from tstate: tstate->interp->runtime. Remove "_PyRuntimeState *runtime" parameter from functions already taking a "PyThreadState *tstate" parameter. _PyGC_Init() first parameter becomes "PyThreadState *tstate".
* Post 3.9.0a1Łukasz Langa2019-11-201-1/+1
|
* Merge tag 'v3.9.0a1'Łukasz Langa2019-11-20573-1382/+6113
|\
| * Python 3.9.0a1v3.9.0a1Łukasz Langa2019-11-19573-1382/+6113
| |
* | bpo-38823: Fix refleak in marshal init error path (GH-17260)Brandt Bucher2019-11-201-1/+4
| |
* | bpo-36710: Pass tstate parameter to GC collect() (GH-17267)Victor Stinner2019-11-201-37/+50
| | | | | | | | Pass tstate parameter (PyThreadState) to GC collect() function and other GC subfunctions.
* | bpo-38753: AsyncMock added in version 3.8 (GH-17102)John Belmonte2019-11-201-0/+1
| |
* | bpo-38631: Avoid Py_FatalError() in handle_legacy_finalizers() (GH-17266)Victor Stinner2019-11-205-12/+32
| | | | | | | | | | * Rename _PyGC_Initialize() to _PyGC_InitializeRuntime() * Add _PyGC_Init(): initialize _PyRuntime.gc.garbage list * Call _PyGC_Init() before _PyTypes_Init()
* | bpo-37957: Allow regrtest to receive a file with test (and subtests) to ↵Pablo Galindo2019-11-197-24/+169
| | | | | | | | | | | | | | ignore (GH-16989) When building Python in some uncommon platforms there are some known tests that will fail. Right now, the test suite has the ability to ignore entire tests using the -x option and to receive a filter file using the --matchfile filter. The problem with the --matchfile option is that it receives a file with patterns to accept and when you want to ignore a couple of tests and subtests, is too cumbersome to lists ALL tests that are not the ones that you want to accept and he problem with -x is that is not easy to ignore just a subtests that fail and the whole test needs to be ignored. For these reasons, add a new option to allow to ignore a list of test and subtests for these situations.
* | bpo-38858: Reorganize pycore_init_types() (GH-17265)Victor Stinner2019-11-191-20/+11
| | | | | | | | * Call _PyLong_Init() and _PyExc_Init() earlier * new_interpreter() reuses pycore_init_types()
* | bpo-38823: Fix refleaks in faulthandler init error path on Windows (GH-17250)Brandt Bucher2019-11-191-10/+21
| |
* | Remove binding of captured exceptions when not used to reduce the chances of ↵Pablo Galindo2019-11-1928-39/+39
| | | | | | | | | | | | | | creating cycles (GH-17246) Capturing exceptions into names can lead to reference cycles though the __traceback__ attribute of the exceptions in some obscure cases that have been reported previously and fixed individually. As these variables are not used anyway, we can remove the binding to reduce the chances of creating reference cycles. See for example GH-13135
* | bpo-38707: Fix for multiprocessing.Process MainThread.native_id (GH-17088)Jake Tesler2019-11-193-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR implements a fix for `multiprocessing.Process` objects; the error occurs when Processes are created using either `fork` or `forkserver` as the `start_method`. In these instances, the `MainThread` of the newly created `Process` object retains all attributes from its parent's `MainThread` object, including the `native_id` attribute. The resulting behavior is such that the new process' `MainThread` captures an incorrect/outdated `native_id` (the parent's instead of its own). This change forces the Process object to update its `native_id` attribute during the bootstrap process. cc @vstinner https://bugs.python.org/issue38707 Automerge-Triggered-By: @pitrou
* | bpo-38839: Fix some unused functions in tests (GH-17189)Adam Johnson2019-11-199-19/+12
| |
* | bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236)Brandt Bucher2019-11-191-1/+3
| |
* | bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755)Vincent Michel2019-11-193-0/+40
| | | | | | | | | | | | | | | | | | Ignore `GeneratorExit` exceptions when throwing an exception into the `aclose` coroutine of an asynchronous generator. https://bugs.python.org/issue35409
* | Added missing coma after end of list in subprocess.rst (GH-17217)Jules Lasne (jlasne)2019-11-191-1/+1
| | | | | | Automerge-Triggered-By: @csabella
* | Add missing comma and period in unittest docs (GH-17211)Jules Lasne (jlasne)2019-11-191-1/+1
|/ | | Automerge-Triggered-By: @csabella
* bpo-21767: explicitly mention abc support in functools.singledispatch docs ↵Batuhan Taşkaya2019-11-192-0/+15
| | | | (#17171)
* bpo-22367: Update test_fcntl.py for spawn process mode (#17154)Dong-hee Na2019-11-191-9/+19
|
* Clean up module initialization. (GH-17215)Brandt Bucher2019-11-191-3/+1
|
* bpo-38807: Add os.PathLike to exception message raised by _check_arg_types ↵Tomás Farías2019-11-192-2/+3
| | | | (#17160)
* Add @pablogsal to code owners file for the garbage collector (GH-17248)Pablo Galindo2019-11-191-0/+4
| | | | | Add myself to the codeowners file as I would like to be automatically added as a reviewer for PRs that touch that component and its documentation.
* Minor fixes to the formatting of the notes of Modules/gcmodule.c (GH-17247)Pablo Galindo2019-11-191-2/+2
|
* bpo-38622: Ensure ctypes.PyObj_FromPtr audit event passes tuples as a single ↵Steve Dower2019-11-181-2/+2
| | | | argument (GH-17243)
* bpo-38622: Add missing audit events for ctypes module (GH-17158)Steve Dower2019-11-185-7/+106
|
* Revert "remove a strange non-ASCII character in _iomodule.c" (GH-17240)Tal Einat2019-11-181-1/+1
| | | | This reverts commit bcc1cc5c, which removed an intentionally placed "form feed" character.
* bpo-38722: Runpy use io.open_code() (GH-17234)jsnklln2019-11-182-2/+5
| | | | | | | https://bugs.python.org/issue38722 Automerge-Triggered-By: @taleinat
* remove a strange non-ASCII character in _iomodule.c (GH-17239)Tal Einat2019-11-181-1/+1
|
* bpo-38809: Windows build scripts use python.exe from virtual envs (GH-17164)Tal Einat2019-11-182-0/+5
| | | https://bugs.python.org/issue38809
* bpo-38631: Avoid Py_FatalError() in _multibytecodec init (GH-17233)Victor Stinner2019-11-181-1/+0
| | | | | If an exception is raised and PyInit__multibytecodec() returns NULL, Python reports properly the exception to the user. There is no need to crash Python with Py_FatalError().
* bpo-38631: Avoid Py_FatalError() in float.__getformat__() (GH-17232)Victor Stinner2019-11-182-1/+4
| | | | Replace Py_FatalError() with a regular RuntimeError exception in float.__getformat__().
* Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)Роман Донченко2019-11-181-1/+1
| | | `~` is now treated as an unreserved character (i.e. it doesn't get quoted), not a reserved one.
* bpo-38823: Clean up refleaks in _tkinter initialization. (GH-17206)Brandt Bucher2019-11-181-0/+2
| | | https://bugs.python.org/issue38823
* bpo-38830: Correct slot signature in Qt example. (GH-17220)Vinay Sajip2019-11-181-1/+1
|
* Revert "bpo-38811: Check for presence of os.link method in pathlib. ↵Victor Stinner2019-11-183-27/+1
| | | | | (GH-17170)" (#17219) This reverts commit 111772fc27cfe388bc060f019d68a3e33481ec65.
* bpo-38678: Improve argparse example in tutorial (GH-17207)Raymond Hettinger2019-11-182-16/+20
|
* bpo-25866: Minor cleanups to "sequence" in docs (GH-17177)alclarks2019-11-171-5/+9
|
* bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766)Zackery Spytz2019-11-173-21/+26
| | | | Return None instead of 1.
* bpo-38811: Check for presence of os.link method in pathlib. (GH-17170)Toke Høiland-Jørgensen2019-11-173-1/+27
| | | | | Fix also the Path.symplink() method implementation for the case when symlinks are not supported.
* bpo-38724: Implement subprocess.Popen.__repr__ (GH-17151)Andrey Doroschenko2019-11-173-0/+34
|