Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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-09 | 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-05 | 1 | -0/+6 | |
| | | | https://bugs.python.org/issue38713 | |||||
* | bpo-38692: Add os.pidfd_open. (GH-17063) | Benjamin Peterson | 2019-11-05 | 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-28 | 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-18 | 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-15 | 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> | |||||
* | bpo-38379: Don't block collection of unreachable objects when some objects ↵ | Pablo Galindo | 2019-10-13 | 1 | -60/+122 | |
| | | | | | | | resurrect (GH-16687) Currently if any finalizer invoked during garbage collection resurrects any object, the gc gives up and aborts the collection. Although finalizers are assured to only run once per object, this behaviour of the gc can lead to an ever-increasing memory situation if new resurrecting objects are allocated in every new gc collection. To avoid this, recompute what objects among the unreachable set need to be resurrected and what objects can be safely collected. In this way, resurrecting objects will not block the collection of other objects in the unreachable set. | |||||
* | bpo-38378: Rename parameters "out" and "in" of os.sendfile(). (GH-16742) | Serhiy Storchaka | 2019-10-13 | 2 | -21/+20 | |
| | | | | | | | They conflicted with keyword "in". Also rename positional-only parameters of private os._fcopyfile() for consistency. | |||||
* | bpo-38282: Correctly manage the Bluetooth L2CAP socket structure in FreeBSD ↵ | Pablo Galindo | 2019-10-13 | 1 | -1/+6 | |
| | | | | (GH-16738) | |||||
* | bpo-38417: Add umask support to subprocess (GH-16726) | Gregory P. Smith | 2019-10-12 | 1 | -5/+9 | |
| | | | | On POSIX systems, allow the umask to be set in the child process before we exec. | |||||
* | bpo-37731: Reorder includes in xmltok.c to avoid redefinition of ↵ | Pablo Galindo | 2019-10-12 | 1 | -8/+8 | |
| | | | | _POSIX_C_SOURCE (GH-16733) | |||||
* | bpo-38437: Activate GC_DEBUG when PY_DEBUG is set (GH-16707) | Pablo Galindo | 2019-10-10 | 1 | -2/+5 | |
| | ||||||
* | bpo-38282: Rewrite getsockaddrarg() helper function (GH-16698) | Victor Stinner | 2019-10-10 | 2 | -39/+25 | |
| | | | | | | | | Rewrite getsockaddrarg() helper function of socketmodule.c (_socket module) to prevent a false alarm when compiling codde using GCC with _FORTIFY_SOURCE=2. Pass a pointer of the sock_addr_t union, rather than passing a pointer to a sockaddr structure. Add "struct sockaddr_tipc tipc;" to the sock_addr_t union. | |||||
* | bpo-38353: Fix typos in calculate_argv0_path_framework() (GH-16695) | Victor Stinner | 2019-10-10 | 1 | -4/+4 | |
| | | | | | bpo-38353, bpo-38429: Fix typos introduced by commit c02b41b1fb115c87693530ea6a480b2e15460424 in calculate_argv0_path_framework() of getpath.c. | |||||
* | bpo-38392: Only declare visit_validate() if Py_DEBUG is defined (GH-16689) | Victor Stinner | 2019-10-10 | 1 | -0/+3 | |
| | | | | | bpo-38392, bpo-38426: Fix a compiler warning in gcmodule.c. Fix also a typo in PYMEM_DEADBYTE macro comment. | |||||
* | bpo-38379: don't claim objects are collected when they aren't (#16658) | Tim Peters | 2019-10-09 | 1 | -6/+4 | |
| | | | | | | * bpo-38379: when a finalizer resurrects an object, nothing is actually collected in this run of gc. Change the stats to relect that truth. |