Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove binding of captured exceptions when not used to reduce the chances of ↵ | Pablo Galindo | 2019-11-19 | 28 | -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 Tesler | 2019-11-19 | 3 | -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 Johnson | 2019-11-19 | 9 | -19/+12 |
| | |||||
* | bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236) | Brandt Bucher | 2019-11-19 | 1 | -1/+3 |
| | |||||
* | bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755) | Vincent Michel | 2019-11-19 | 3 | -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-19 | 1 | -1/+1 |
| | | | Automerge-Triggered-By: @csabella | ||||
* | Add missing comma and period in unittest docs (GH-17211) | Jules Lasne (jlasne) | 2019-11-19 | 1 | -1/+1 |
| | | | Automerge-Triggered-By: @csabella | ||||
* | bpo-21767: explicitly mention abc support in functools.singledispatch docs ↵ | Batuhan Taşkaya | 2019-11-19 | 2 | -0/+15 |
| | | | | (#17171) | ||||
* | bpo-22367: Update test_fcntl.py for spawn process mode (#17154) | Dong-hee Na | 2019-11-19 | 1 | -9/+19 |
| | |||||
* | Clean up module initialization. (GH-17215) | Brandt Bucher | 2019-11-19 | 1 | -3/+1 |
| | |||||
* | bpo-38807: Add os.PathLike to exception message raised by _check_arg_types ↵ | Tomás Farías | 2019-11-19 | 2 | -2/+3 |
| | | | | (#17160) | ||||
* | Add @pablogsal to code owners file for the garbage collector (GH-17248) | Pablo Galindo | 2019-11-19 | 1 | -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 Galindo | 2019-11-19 | 1 | -2/+2 |
| | |||||
* | bpo-38622: Ensure ctypes.PyObj_FromPtr audit event passes tuples as a single ↵ | Steve Dower | 2019-11-18 | 1 | -2/+2 |
| | | | | argument (GH-17243) | ||||
* | bpo-38622: Add missing audit events for ctypes module (GH-17158) | Steve Dower | 2019-11-18 | 5 | -7/+106 |
| | |||||
* | Revert "remove a strange non-ASCII character in _iomodule.c" (GH-17240) | Tal Einat | 2019-11-18 | 1 | -1/+1 |
| | | | | This reverts commit bcc1cc5c, which removed an intentionally placed "form feed" character. | ||||
* | bpo-38722: Runpy use io.open_code() (GH-17234) | jsnklln | 2019-11-18 | 2 | -2/+5 |
| | | | | | | | https://bugs.python.org/issue38722 Automerge-Triggered-By: @taleinat | ||||
* | remove a strange non-ASCII character in _iomodule.c (GH-17239) | Tal Einat | 2019-11-18 | 1 | -1/+1 |
| | |||||
* | bpo-38809: Windows build scripts use python.exe from virtual envs (GH-17164) | Tal Einat | 2019-11-18 | 2 | -0/+5 |
| | | | https://bugs.python.org/issue38809 | ||||
* | bpo-38631: Avoid Py_FatalError() in _multibytecodec init (GH-17233) | Victor Stinner | 2019-11-18 | 1 | -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 Stinner | 2019-11-18 | 2 | -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-18 | 1 | -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 Bucher | 2019-11-18 | 1 | -0/+2 |
| | | | https://bugs.python.org/issue38823 | ||||
* | bpo-38830: Correct slot signature in Qt example. (GH-17220) | Vinay Sajip | 2019-11-18 | 1 | -1/+1 |
| | |||||
* | Revert "bpo-38811: Check for presence of os.link method in pathlib. ↵ | Victor Stinner | 2019-11-18 | 3 | -27/+1 |
| | | | | | (GH-17170)" (#17219) This reverts commit 111772fc27cfe388bc060f019d68a3e33481ec65. | ||||
* | bpo-38678: Improve argparse example in tutorial (GH-17207) | Raymond Hettinger | 2019-11-18 | 2 | -16/+20 |
| | |||||
* | bpo-25866: Minor cleanups to "sequence" in docs (GH-17177) | alclarks | 2019-11-17 | 1 | -5/+9 |
| | |||||
* | bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766) | Zackery Spytz | 2019-11-17 | 3 | -21/+26 |
| | | | | Return None instead of 1. | ||||
* | bpo-38811: Check for presence of os.link method in pathlib. (GH-17170) | Toke Høiland-Jørgensen | 2019-11-17 | 3 | -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 Doroschenko | 2019-11-17 | 3 | -0/+34 |
| | |||||
* | bpo-38823: Clean up refleaks in _contextvars initialization. (GH-17198) | Brandt Bucher | 2019-11-16 | 1 | -0/+3 |
| | | | https://bugs.python.org/issue38823 | ||||
* | bpo-38823: Clean up refleaks in _asyncio initialization. (GH-17195) | Brandt Bucher | 2019-11-16 | 1 | -0/+4 |
| | | | https://bugs.python.org/issue38823 | ||||
* | Fix typo in Lib/socketserver.py (GH-17024) | Jason (Perry) Taylor | 2019-11-16 | 1 | -1/+1 |
| | | | | changed 'This is bad class design, but save some typing' into 'This is bad class design, but saves some typing'. | ||||
* | bpo-28286: Deprecate opening GzipFile for writing implicitly. (GH-16417) | Serhiy Storchaka | 2019-11-16 | 5 | -2/+25 |
| | | | | Always specify the mode argument for writing. | ||||
* | bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005) | Serhiy Storchaka | 2019-11-16 | 5 | -3/+11 |
| | | | | Make it a constant and referring to a constant string. | ||||
* | bpo-38639: Optimize floor(), ceil() and trunc() for floats. (GH-16991) | Serhiy Storchaka | 2019-11-16 | 3 | -41/+70 |
| | |||||
* | bpo-38644: Cleanup ceval.h (GH-17185) | Victor Stinner | 2019-11-16 | 2 | -36/+25 |
| | | | | Move CPython API (Py_LIMITED_API macro not defined) from ceval.h to cpython/ceval.h | ||||
* | bpo-38453: Ensure correct short path is obtained for test (GH-17184) | Steve Dower | 2019-11-16 | 1 | -3/+21 |
| | |||||
* | bpo-38644: Add _PyEval_EvalCode() (GH-17183) | Victor Stinner | 2019-11-16 | 3 | -30/+63 |
| | | | _PyFunction_Vectorcall() now pass tstate to function calls. | ||||
* | Updated missing periods in cmdline.rst (GH-17173) | Jules Lasne (jlasne) | 2019-11-15 | 1 | -3/+3 |
| | |||||
* | Fix the description of isdatadescriptor in inspect.rst (#16645) | HongWeipeng | 2019-11-15 | 1 | -1/+1 |
| | |||||
* | bpo-38816: Add notes in the C-API docs about fork in subinterpreters. (GH-17176) | Eric Snow | 2019-11-15 | 3 | -1/+43 |
| | | | | | | The C-API docs are a bit sparse on the interplay between C `fork()` and the CPython runtime. This change adds some more information on the subject. https://bugs.python.org/issue38816 | ||||
* | bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967) | Steve Dower | 2019-11-15 | 4 | -45/+106 |
| | | | | | Ensure isabs() is always True for \\?\ prefixed paths Avoid unnecessary usage of readlink() to avoid resolving broken links incorrectly Ensure shutil tests run in test directory | ||||
* | bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123) | Phil Connell | 2019-11-15 | 2 | -1/+10 |
| | | | | | | | | | | | | | | | Small docs update for [bpo-34651](https://bugs.python.org/issue34651). Other references to fork (e.g. the PyOS.*Fork functions or discussions of fork() when embedding Python) point back to os.fork, so I don't think any other updates are needed. https://bugs.python.org/issue38778 Automerge-Triggered-By: @ericsnowcurrently | ||||
* | bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162) | Andrey Doroschenko | 2019-11-15 | 4 | -3/+4 |
| | |||||
* | bpo-38677: Fix arraymodule error handling in module initialization. (GH-17039) | Marco Paolini | 2019-11-15 | 1 | -8/+12 |
| | |||||
* | Add .pytest_cache to .gitignore (GH-16595) | Brandt Bucher | 2019-11-15 | 1 | -0/+1 |
| | |||||
* | bpo-38692: Add asyncio.PidfdChildWatcher to __all__ (GH-17161) | Kyle Stanley | 2019-11-15 | 1 | -1/+1 |
| | | | | | | | | | | /cc @asvetlov @1st1 https://bugs.python.org/issue38692 Automerge-Triggered-By: @benjaminp | ||||
* | bpo-38644: Add _PyObject_Call() (GH-17089) | Victor Stinner | 2019-11-14 | 10 | -137/+216 |
| | | | | | | | | | | * Add pycore_call.h internal header file. * Add _PyObject_Call(): PyObject_Call() with tstate * Add _PyObject_CallNoArgTstate(): _PyObject_CallNoArg() with tstate * Add _PyObject_FastCallDictTstate(): _PyObject_FastCallDict() with tstate * _PyObject_Call_Prepend() now takes tstate * Replace _PyObject_FastCall() calls with _PyObject_VectorcallTstate() calls | ||||
* | bpo-38644: Add _PyEval_EvalFrame() with tstate (GH-17131) | Victor Stinner | 2019-11-14 | 4 | -7/+20 |
| | | | | Add _PyEval_EvalFrame() static inline function to get eval_frame from tstate->interp. |