Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-38835: Don't use PyFPE_START_PROTECT and PyFPE_END_PROTECT (GH-17231) | Victor Stinner | 2019-11-20 | 4 | -63/+18 |
| | | | | | 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 Stinner | 2019-11-20 | 2 | -3/+3 |
| | | | | | | | | | | | 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". | ||||
* | bpo-36710: Pass tstate parameter to GC collect() (GH-17267) | Victor Stinner | 2019-11-20 | 1 | -37/+50 |
| | | | | Pass tstate parameter (PyThreadState) to GC collect() function and other GC subfunctions. | ||||
* | bpo-38631: Avoid Py_FatalError() in handle_legacy_finalizers() (GH-17266) | Victor Stinner | 2019-11-20 | 1 | -6/+18 |
| | | | | | * Rename _PyGC_Initialize() to _PyGC_InitializeRuntime() * Add _PyGC_Init(): initialize _PyRuntime.gc.garbage list * Call _PyGC_Init() before _PyTypes_Init() | ||||
* | bpo-38823: Fix refleaks in faulthandler init error path on Windows (GH-17250) | Brandt Bucher | 2019-11-19 | 1 | -10/+21 |
| | |||||
* | bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236) | Brandt Bucher | 2019-11-19 | 1 | -1/+3 |
| | |||||
* | Clean up module initialization. (GH-17215) | Brandt Bucher | 2019-11-19 | 1 | -3/+1 |
| | |||||
* | 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 | 2 | -7/+65 |
| | |||||
* | 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. | ||||
* | remove a strange non-ASCII character in _iomodule.c (GH-17239) | Tal Einat | 2019-11-18 | 1 | -1/+1 |
| | |||||
* | 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-38823: Clean up refleaks in _tkinter initialization. (GH-17206) | Brandt Bucher | 2019-11-18 | 1 | -0/+2 |
| | | | https://bugs.python.org/issue38823 | ||||
* | bpo-36589: Fix the error handling in curses.update_lines_cols(). (GH-12766) | Zackery Spytz | 2019-11-17 | 2 | -21/+24 |
| | | | | Return None instead of 1. | ||||
* | 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 | ||||
* | bpo-38639: Optimize floor(), ceil() and trunc() for floats. (GH-16991) | Serhiy Storchaka | 2019-11-16 | 1 | -20/+28 |
| | |||||
* | bpo-38677: Fix arraymodule error handling in module initialization. (GH-17039) | Marco Paolini | 2019-11-15 | 1 | -8/+12 |
| | |||||
* | bpo-38785: Prevent asyncio from crashing (GH-17144) | Andrew Svetlov | 2019-11-13 | 1 | -0/+1 |
| | | | | | | | if parent `__init__` is not called from a constructor of object derived from `asyncio.Future` https://bugs.python.org/issue38785 | ||||
* | closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. ↵ | Benjamin Peterson | 2019-11-12 | 1 | -9/+15 |
| | | | | | (GH-17112) This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode. | ||||
* | bpo-16576: Add checks for bitfields passed by value to functions. (GH-17097) | Vinay Sajip | 2019-11-12 | 2 | -3/+60 |
| | |||||
* | Minor readability improvement for argument handling in itertools.repeat() ↵ | Raymond Hettinger | 2019-11-10 | 1 | -5/+5 |
| | | | | | | (GH-17101) | ||||
* | bpo-38644: Add _PyObject_VectorcallTstate() (GH-17052) | Victor Stinner | 2019-11-08 | 1 | -7/+14 |
| | | | | | * Add _PyObject_VectorcallTstate() function: similar to _PyObject_Vectorcall(), but with tstate parameter * Add tstate parameter to _PyObject_MakeTpCall() | ||||
* | closes bpo-38713: Expose P_PIDFD in os if it's defined. (GH-17071) | Benjamin Peterson | 2019-11-06 | 1 | -0/+6 |
| | | | https://bugs.python.org/issue38713 | ||||
* | bpo-38692: Add os.pidfd_open. (GH-17063) | Benjamin Peterson | 2019-11-06 | 2 | -1/+68 |
| | |||||
* | bpo-35381 Remove all static state from posixmodule (GH-15892) | Eddie Elizondo | 2019-11-05 | 2 | -226/+273 |
| | | | | | | | | | | | | | | After #9665, this moves the remaining types in posixmodule to be heap-allocated to make it compatible with PEP384 as well as modifying all the type accessors to fully make the type opaque. The original PR that got messed up a rebase: https://github.com/python/cpython/pull/10854. All the issues in that commit have now been addressed since https://github.com/python/cpython/pull/11661 got committed. This change also removes any state from the data segment and onto the module state itself. https://bugs.python.org/issue35381 Automerge-Triggered-By: @encukou | ||||
* | _json.c: use Py_UNUSED() macro (GH-17053) | Victor Stinner | 2019-11-05 | 1 | -10/+4 |
| | | | Remove UNUSED macro: use Py_UNUSED() macro instead. | ||||
* | bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (#17043) | Alexandru Ardelean | 2019-11-04 | 1 | -1/+1 |
| | |||||
* | Years overdue, explain why unreachable objects are moved. (GH-17030) | Tim Peters | 2019-11-02 | 1 | -1/+38 |
| | |||||
* | bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. ↵ | Anthony Sottile | 2019-10-31 | 2 | -1/+207 |
| | | | | (GH-16938) | ||||
* | bpo-16575: Add checks for unions passed by value to functions. (GH-16799) | Vinay Sajip | 2019-10-31 | 4 | -0/+98 |
| | |||||
* | bpo-38631: Avoid Py_FatalError() in readline (GH-16998) | Victor Stinner | 2019-10-30 | 1 | -6/+11 |
| | | | | readline now calls PyErr_NoMemory() rather than Py_FatalError() on memory allocation failure, when importing the module. | ||||
* | Permutations Python code equivalent in comment was invalid for Python 3 ↵ | Sergey | 2019-10-29 | 1 | -3/+6 |
| | | | | (GH-16927) | ||||
* | bpo-37330: open() no longer accept 'U' in file mode (GH-16959) | Victor Stinner | 2019-10-28 | 2 | -29/+3 |
| | | | | | open(), io.open(), codecs.open() and fileinput.FileInput no longer accept "U" ("universal newline") in the file mode. This flag was deprecated since Python 3.3. | ||||
* | bpo-38602: Add fcntl.F_OFD_XXXX for fcntlmodule (GH-16956) | Dong-hee Na | 2019-10-28 | 1 | -0/+9 |
| | |||||
* | Replace _pysqlite_long_from_int64() with PyLong_FromLongLong() (GH-16882) | Sergey Fedoseev | 2019-10-23 | 4 | -20/+3 |
| | |||||
* | bpo-38303: Make audioop extension module PEP-384 compatible (GH-16497) | Tyler Kieft | 2019-10-22 | 1 | -55/+77 |
| | | | | | | | https://bugs.python.org/issue38303 Automerge-Triggered-By: @encukou | ||||
* | visit_reachable: replace release-mode test with an assert. (GH-16866) | Tim Peters | 2019-10-21 | 1 | -2/+5 |
| | | | | | | | It should be impossible for an untracked object to have the collecting flag set. Back when state was stored in gc_refs, it obviously was impossible (gc_refs couldn't possibly have a positive & negative value simultaneously). While the _implementation_ of "state" has gotten much more complicated, it's still _logically_ just as impossible. | ||||
* | bpo-38493: Add os.CLD_KILLED and os.CLD_STOPPED. (GH-16821) | Dong-hee Na | 2019-10-21 | 1 | -0/+6 |
| | |||||
* | bpo-27961: Replace PY_LONG_LONG with long long. (GH-15386) | Sergey Fedoseev | 2019-10-21 | 1 | -2/+2 |
| | |||||
* | bpo-38465: Convert the type of exports counters to Py_ssize_t. (GH-16746) | Hai Shi | 2019-10-21 | 2 | -2/+2 |
| | |||||
* | validate_list: make flags argument impossible to spell wrongly. (GH-16843) | Tim Peters | 2019-10-19 | 1 | -16/+37 |
| | |||||
* | bpo-38418: Fixes audit event for os.system to be named 'os.system' (GH-16670) | Steve Dower | 2019-10-18 | 1 | -2/+2 |
| | | | | | | | https://bugs.python.org/issue38418 Automerge-Triggered-By: @zooba | ||||
* | bpo-34953: Implement `mmap.mmap.__repr__` (GH-9891) | Taine Zhao | 2019-10-17 | 1 | -12/+57 |
| | |||||
* | bpo-37587: json: Use _PyUnicodeWriter when scanning string. (GH-15591) | Inada Naoki | 2019-10-17 | 1 | -57/+23 |
| | |||||
* | bpo-38006: Add unit test for weakref clear bug (GH-16788) | Neil Schemenauer | 2019-10-16 | 1 | -0/+55 |
| | |||||
* | bpo-37961, tracemalloc: add Traceback.total_nframe (GH-15545) | Julien Danjou | 2019-10-15 | 1 | -13/+32 |
| | | | | Add a total_nframe field to the traces collected by the tracemalloc module. This field indicates the original number of frames before it was truncated. | ||||
* | bpo-11410: Standardize and use symbol visibility attributes across POSIX and ↵ | Vinay Sajip | 2019-10-15 | 3 | -7/+5 |
| | | | | Windows. (GH-16347) | ||||
* | Misc gc code & comment cleanups. (GH-16752) | Tim Peters | 2019-10-13 | 1 | -22/+44 |
| | | | | | | | | | | | | * Misc gc code & comment cleanups. validate_list: there are two temp flags polluting pointers, but this checked only one. Now it checks both, and verifies that the list head's pointers are not polluted. move_unreachable: repaired incoherent comments. Added new comments. Cleared the pollution of the unreachable list head's 'next' pointer (it was expedient while the function was running, but there's no excuse for letting this damage survive the function's end). * Update Modules/gcmodule.c Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com> |