Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-43268: local_clear() uses _PyInterpreterState_GET() (GH-24583) | Victor Stinner | 2021-02-19 | 1 | -15/+14 |
| | | | Cleanup also the code. | ||||
* | bpo-43268: Pass interp rather than tstate to internal functions (GH-24580) | Victor Stinner | 2021-02-19 | 2 | -19/+19 |
| | | | | | | | | | | | | | | | Pass the current interpreter (interp) rather than the current Python thread state (tstate) to internal functions which only use the interpreter. Modified functions: * _PyXXX_Fini() and _PyXXX_ClearFreeList() functions * _PyEval_SignalAsyncExc(), make_pending_calls() * _PySys_GetObject(), sys_set_object(), sys_set_object_id(), sys_set_object_str() * should_audit(), set_flags_from_config(), make_flags() * _PyAtExit_Call() * init_stdio_encoding() * etc. | ||||
* | bpo-43268: Replace _PyThreadState_GET() with _PyInterpreterState_GET() ↵ | Victor Stinner | 2021-02-19 | 1 | -1/+2 |
| | | | | | | | | | | | (GH-24576) Replace _PyThreadState_GET() with _PyInterpreterState_GET() in functions which only need the current interpreter, but don't need the current Python thread state. Replace also _PyThreadState_UncheckedGet() with _PyThreadState_GET() in faulthandler.c, since _PyThreadState_UncheckedGet() is just an alias to _PyThreadState_GET() in practice. | ||||
* | bpo-43258: Make sqlite3 callback functions static (GH-24574) | Erlend Egeberg Aasland | 2021-02-19 | 1 | -2/+4 |
| | |||||
* | bpo-43258: Don't allocate sqlite3 aggregate context for empty queries (GH-24569) | Erlend Egeberg Aasland | 2021-02-19 | 1 | -2/+6 |
| | |||||
* | bpo-43249: Improve scoping in _pysqlite_fetch_one_row() (GH-24565) | Erlend Egeberg Aasland | 2021-02-18 | 1 | -10/+9 |
| | |||||
* | bpo-43249: sqlite3_column_bytes() must follow sqlite_column_blob() (GH-24562) | Erlend Egeberg Aasland | 2021-02-18 | 1 | -4/+14 |
| | |||||
* | bpo-42960: Add resource.RLIMIT_KQUEUES constant from FreeBSD (GH-24251) | David CARLIER | 2021-02-18 | 1 | -0/+4 |
| | |||||
* | bpo-35134, Include: Move pytime.h to cpython/pytime.h (GH-23988) | Nicholas Sim | 2021-02-16 | 1 | -1/+0 |
| | | | | This change is backward compatible since C extension modules must not include "pytime.h" directly, but only include "Python.h". | ||||
* | bpo-42819, readline: Disable bracketed paste (GH-24108) | Dustin Rodrigues | 2021-02-15 | 1 | -0/+23 |
| | |||||
* | bpo-43210: Fix byteswap comment in sha512.module.c (GH-24518) | Erlend Egeberg Aasland | 2021-02-14 | 1 | -1/+1 |
| | |||||
* | bpo-43172: readline now passes its tests when built against libedit (GH-24499) | Gregory P. Smith | 2021-02-12 | 2 | -12/+36 |
| | | | | | | | bpo-43172: readline now passes its tests when built against libedit. Existing irreconcilable API differences remain in readline.get_begidx and readline.get_endidx behavior based on libreadline vs libedit use. A note about that has been documented. | ||||
* | bpo-43204: Fix LibTomCrypt URL in md5module.c and sha*module.c comments ↵ | Erlend Egeberg Aasland | 2021-02-12 | 4 | -4/+4 |
| | | | | | (GH-24507) Automerge-Triggered-By: GH:tiran | ||||
* | bpo-40956: Fix segfault when Connection.backup is called without target ↵ | Erlend Egeberg Aasland | 2021-02-10 | 2 | -21/+12 |
| | | | | (GH-24503) | ||||
* | bpo-13501: allow choosing between readline and libedit (GH-24189) | Roland Hieber | 2021-02-09 | 1 | -3/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | In contrast to macOS, libedit is available as its own include file and library on Linux systems to prevent file name clashes. So if both libraries are available on the system, readline is currently chosen by default; and if only libedit is available, it is not found at all. This patch adds a way to link against libedit by adding the following arguments to configure: --with-readline link against libreadline (the default) --with-readline=editline link against libeditline --with-readline=no disable building the readline module --without-readline (same) The runtime detection of libedit vs. readline was already done in commit 7105319ada2e66365902 (2019-12-04, serge-sans-paille: "bpo-38634: Allow non-apple build to cope with libedit (GH-16986)"). Fixes: GH-12076 ("bpo-13501 Build or disable readline with Editline") Fixes: bpo-13501 ("Make libedit support more generic; port readline / libedit to FreeBSD") Co-authored-by: Enji Cooper (ngie-eign) Co-authored-by: Martin Panter (vadmium) Co-authored-by: Robert Marshall (kellinm) | ||||
* | bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo ↵ | Zackery Spytz | 2021-02-05 | 1 | -6/+17 |
| | | | | | | | (GH-24450) PyObject_RichCompareBool() returns -1 on error, but this case is not handled by the find_in_strong_cache() function. Any exception raised by PyObject_RichCompareBool() should be propagated. | ||||
* | bpo-43106: Add os.O_EVTONLY/O_FSYNC/O_SYMLINK/O_NOFOLLOW_ANY (GH-24428) | Dong-hee Na | 2021-02-03 | 1 | -1/+12 |
| | |||||
* | bpo-43108: Fix a reference leak in the curses module (GH-24420) | Pablo Galindo | 2021-02-02 | 1 | -1/+3 |
| | |||||
* | bpo-42834: Fix _json internal caches for subinterpreters (GH-24121) | Ken Jin | 2021-02-01 | 1 | -38/+39 |
| | | | | Make internal caches of the _json extension module compatible with subinterpreters. | ||||
* | bpo-41604: Don't decrement the reference count of the previous user_ptr when ↵ | Anonymous Maarten | 2021-01-31 | 1 | -1/+3 |
| | | | | set_panel_usertpr fails (GH-21933) | ||||
* | bpo-43083: Fix error handling in _sqlite3 (GH-24395) | Serhiy Storchaka | 2021-01-31 | 2 | -7/+19 |
| | |||||
* | bpo-42323: Fix math.nextafter() on AIX (GH-24381) | Victor Stinner | 2021-01-29 | 1 | -2/+2 |
| | | | math_nextafter_impl() must return a Python object, not a C double. | ||||
* | bpo-42979: Enhance abstract.c assertions checking slot result (GH-24352) | Victor Stinner | 2021-01-27 | 1 | -4/+15 |
| | | | | | | | | * bpo-42979: Enhance abstract.c assertions checking slot result Add _Py_CheckSlotResult() function which fails with a fatal error if a slot function succeeded with an exception set or failed with no exception set: write the slot name, the type name and the current exception (if an exception is set). | ||||
* | bpo-42979: _zoneinfo exec function checks for PyDateTime_IMPORT failure ↵ | Hai Shi | 2021-01-27 | 1 | -0/+3 |
| | | | | | (GH-24333) Importing datetime can fail. | ||||
* | bpo-43033: Fix the handling of PyObject_SetAttrString() in _zoneinfo.c ↵ | Zackery Spytz | 2021-01-27 | 1 | -1/+5 |
| | | | | (GH-24345) | ||||
* | Typo in comment (GH-24199) | borispopoff | 2021-01-25 | 1 | -1/+1 |
| | | | Automerge-Triggered-By: GH:Mariatta | ||||
* | bpo-41798: Allocate the _curses._C_API on the heap memory (GH-24186) | Hai Shi | 2021-01-22 | 1 | -9/+30 |
| | |||||
* | bpo-42323: Fix math.nextafter() for NaN on AIX (GH-24265) | Victor Stinner | 2021-01-20 | 1 | -0/+6 |
| | |||||
* | bpo-41798: Allocate unicodedata CAPI on the heap (GH-24128) | Erlend Egeberg Aasland | 2021-01-20 | 1 | -8/+29 |
| | |||||
* | bpo-41995: Handle allocation failure in _tracemalloc and _zoneinfo (GH-22635) | Yunlongs | 2021-01-20 | 1 | -0/+12 |
| | |||||
* | closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes ↵ | Benjamin Peterson | 2021-01-18 | 1 | -32/+19 |
| | | | | param reprs. (24239) | ||||
* | bpo-42923: Dump extension modules on fatal error (GH-24207) | Victor Stinner | 2021-01-18 | 1 | -0/+3 |
| | | | | | | | The Py_FatalError() function and the faulthandler module now dump the list of extension modules on a fatal error. Add _Py_DumpExtensionModules() and _PyModule_IsExtension() internal functions. | ||||
* | bpo-42923: Add Py_FatalError() test in test_capi (GH-24240) | Victor Stinner | 2021-01-18 | 2 | -23/+25 |
| | | | Move faulthandler._fatal_error() to _testcapi.fatal_error(). | ||||
* | bpo-39273: Expose BUTTON5_* constants in the curses module if available ↵ | Zackery Spytz | 2021-01-14 | 1 | -0/+8 |
| | | | | (GH-17996) | ||||
* | bpo-40956: Fix sqlite3.Cursor.fetchmany() default value (GH-24214) | Erlend Egeberg Aasland | 2021-01-13 | 2 | -5/+9 |
| | |||||
* | bpo-42866: Add traverse func to _multibytecodec.MultibyteCodec (GH-24166) | Victor Stinner | 2021-01-08 | 1 | -3/+13 |
| | | | | Convert _multibytecodec.MultibyteCodec type to a GC type and adds a traverse function. | ||||
* | bpo-42866: Fix refleak in CJK getcodec() (GH-24165) | Victor Stinner | 2021-01-08 | 1 | -0/+1 |
| | | | Fix a reference leak in the getcodec() function of CJK codecs. | ||||
* | bpo-42846: Convert CJK codec extensions to multiphase init (GH-24157) | Victor Stinner | 2021-01-07 | 1 | -29/+39 |
| | | | | | | | | | | | Convert the 6 CJK codec extension modules (_codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw) to the multiphase initialization API (PEP 489). Remove getmultibytecodec() local cache: always import _multibytecodec. It should be uncommon to get a codec. For example, this function is only called once per CJK codec module. Fix a reference leak in register_maps() error path. | ||||
* | bpo-41798: Allocate the _datetime.datetime_CAPI on the heap memory (GH-24096) | Hai Shi | 2021-01-06 | 1 | -21/+43 |
| | |||||
* | bpo-41798: Allocate _socket module C API on the heap (GH-24126) | Erlend Egeberg Aasland | 2021-01-06 | 2 | -16/+47 |
| | |||||
* | bpo-41798: Allocate _decimal extension module C API on the heap (GH-24117) | Erlend Egeberg Aasland | 2021-01-06 | 1 | -5/+20 |
| | |||||
* | bpo-40959: Remove unused declarations from sqlite3 headers (GH-20828) | Erlend Egeberg Aasland | 2021-01-06 | 5 | -16/+0 |
| | |||||
* | bpo-40810: Require SQLite 3.7.15 (GH-24106) | Erlend Egeberg Aasland | 2021-01-06 | 3 | -38/+6 |
| | |||||
* | bpo-40956: Convert _sqlite3.Cursor to Argument Clinic (GH-24007) | Erlend Egeberg Aasland | 2021-01-05 | 3 | -68/+396 |
| | |||||
* | bpo-42681: Fix test_curses failures related to color pairs (GH-24089) | Serhiy Storchaka | 2021-01-05 | 1 | -20/+40 |
| | | | | | | | On ncurses 6.1 pair numbers are limited by SHORT_MAX-1, even with extended color support. Improve error reporting and tests for color functions. | ||||
* | bpo-1635741: Convert _multibytecodec to multi-phase init (GH-24095) | Erlend Egeberg Aasland | 2021-01-04 | 2 | -261/+218 |
| | | | | Convert the _multibytecodec extension module (CJK codecs) to multi-phase initialization (PEP 489). | ||||
* | bpo-1635741: Port pyexpat to multi-phase init (PEP 489) (GH-22222) | Mohamed Koubaa | 2021-01-04 | 2 | -164/+177 |
| | |||||
* | bpo-42692: fix __builtin_available check on older compilers (GH-23873) | Joshua Root | 2021-01-04 | 1 | -1/+7 |
| | | | | | | A compiler that doesn't define `__has_builtin` will error out when it is used on the same line as the check for it. Automerge-Triggered-By: GH:ronaldoussoren | ||||
* | bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874) | Serhiy Storchaka | 2021-01-03 | 2 | -61/+76 |
| | |||||
* | bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061) | Hai Shi | 2021-01-03 | 1 | -27/+40 |
| |