Hai Shi
2f12a1b7ec
bpo-41798: Allocate the _curses._C_API on the heap memory (GH-24186)
2021-01-22 11:06:43 +01:00
Victor Stinner
c1c3493fb7
bpo-42323: Fix math.nextafter() for NaN on AIX (GH-24265)
2021-01-20 15:20:13 +01:00
Erlend Egeberg Aasland
61d26394f9
bpo-41798: Allocate unicodedata CAPI on the heap (GH-24128)
2021-01-20 12:03:53 +01:00
Yunlongs
f1ff800db1
bpo-41995: Handle allocation failure in _tracemalloc and _zoneinfo (GH-22635)
2021-01-20 09:38:28 +01:00
Benjamin Peterson
916610ef90
closes bpo-42938: Replace snprintf with Python unicode formatting in ctypes param reprs. (24239)
2021-01-18 14:47:05 -06:00
Victor Stinner
250035d134
bpo-42923: Dump extension modules on fatal error (GH-24207)
...
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.
2021-01-18 20:47:13 +01:00
Victor Stinner
e232025025
bpo-42923: Add Py_FatalError() test in test_capi (GH-24240)
...
Move faulthandler._fatal_error() to _testcapi.fatal_error().
2021-01-18 18:24:29 +01:00
Zackery Spytz
14cfa325c2
bpo-39273: Expose BUTTON5_* constants in the curses module if available (GH-17996)
2021-01-14 11:40:09 +02:00
Erlend Egeberg Aasland
a330365ca5
bpo-40956: Fix sqlite3.Cursor.fetchmany() default value (GH-24214)
2021-01-14 01:17:33 +02:00
Victor Stinner
11ef53aefb
bpo-42866: Add traverse func to _multibytecodec.MultibyteCodec (GH-24166)
...
Convert _multibytecodec.MultibyteCodec type to a GC type and adds a
traverse function.
2021-01-08 15:43:59 +01:00
Victor Stinner
e542d417b9
bpo-42866: Fix refleak in CJK getcodec() (GH-24165)
...
Fix a reference leak in the getcodec() function of CJK codecs.
2021-01-08 15:01:38 +01:00
Victor Stinner
07f2cee93f
bpo-42846: Convert CJK codec extensions to multiphase init (GH-24157)
...
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.
2021-01-08 00:15:22 +01:00
Hai Shi
1ab045933b
bpo-41798: Allocate the _datetime.datetime_CAPI on the heap memory (GH-24096)
2021-01-06 20:47:19 +01:00
Erlend Egeberg Aasland
f22b7ca1af
bpo-41798: Allocate _socket module C API on the heap (GH-24126)
2021-01-06 20:43:06 +01:00
Erlend Egeberg Aasland
fe9f446afe
bpo-41798: Allocate _decimal extension module C API on the heap (GH-24117)
2021-01-06 12:47:28 +01:00
Erlend Egeberg Aasland
203b2493ae
bpo-40959: Remove unused declarations from sqlite3 headers (GH-20828)
2021-01-06 02:56:05 +02:00
Erlend Egeberg Aasland
cf0b23908c
bpo-40810: Require SQLite 3.7.15 (GH-24106)
2021-01-06 02:02:43 +02:00
Erlend Egeberg Aasland
c7f8d3caf0
bpo-40956: Convert _sqlite3.Cursor to Argument Clinic (GH-24007)
2021-01-06 01:57:25 +02:00
Serhiy Storchaka
59f9b4e450
bpo-42681: Fix test_curses failures related to color pairs (GH-24089)
...
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.
2021-01-05 09:13:15 +02:00
Erlend Egeberg Aasland
0b858cdd5d
bpo-1635741: Convert _multibytecodec to multi-phase init (GH-24095)
...
Convert the _multibytecodec extension module (CJK codecs) to multi-phase
initialization (PEP 489).
2021-01-04 22:33:45 +01:00
Mohamed Koubaa
c8a87addb1
bpo-1635741: Port pyexpat to multi-phase init (PEP 489) (GH-22222)
2021-01-04 15:34:26 +01:00
Joshua Root
df21f502fd
bpo-42692: fix __builtin_available check on older compilers (GH-23873)
...
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
2021-01-04 02:36:58 -08:00
Serhiy Storchaka
1470edd613
bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874)
2021-01-03 22:51:11 +02:00
Hai Shi
7c83eaa536
bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)
2021-01-03 16:47:44 +01:00
Erlend Egeberg Aasland
b8eb376590
bpo-40077: Add traverse/clear/free to arraymodule (GH-24066)
2021-01-03 14:11:15 +01:00
Erlend Egeberg Aasland
75bf107c62
bpo-40077: Convert arraymodule to use heap types and establish module state (GH-23124)
2021-01-02 17:38:47 +01:00
Erlend Egeberg Aasland
f4936ad1c4
bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in socket.ntohs and socket.htons (GH-23980)
2020-12-31 15:16:50 +02:00
Victor Stinner
ba0e49a464
bpo-40137: Fix refleak in _functools_exec() (GH-24006)
2020-12-30 02:24:43 +01:00
Erlend Egeberg Aasland
84d79cfda9
bpo-40956: Convert _sqlite3.Row to Argument Clinic (GH-23964)
2020-12-29 15:22:55 +02:00
Jakub Kulík
0159e5efee
bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762)
2020-12-29 14:58:27 +02:00
Hai Shi
dd39123970
bpo-40137: Convert _functools module to use PyType_FromModuleAndSpec. (GH-23405)
2020-12-29 04:45:07 -08:00
Jero Bado
a4258e8cd7
Fix minor typo in comments in readline.c (GH-23911)
2020-12-29 14:26:57 +02:00
Pablo Galindo
a6d63a20df
Fix compiler warnings regarding loss of data (GH-23983)
2020-12-29 00:28:09 +00:00
Pablo Galindo
290f5ae997
Use Py_NewRef in Modules/_struct.c (GH-23981)
2020-12-28 23:59:16 +00:00
Erlend Egeberg Aasland
bf108bb21e
bpo-40077: Fix typo in simplequeue_get_state_by_type() (GH-23975)
...
The typo did no damage, but it looks suspicious and confusing.
Introduced by GH-23136.
Skip news.
Automerge-Triggered-By: GH:pitrou
2020-12-28 09:47:16 -08:00
Erlend Egeberg Aasland
897387d2c8
bpo-1635741: sqlite3: Fix ref leak introduced by commit bf64d90
(GH-23972)
2020-12-28 03:09:26 +01:00
Erlend Egeberg Aasland
bf64d9064a
bpo-1635741: sqlite3 uses Py_NewRef/Py_XNewRef (GH-23170)
2020-12-27 12:05:33 +01:00
Erlend Egeberg Aasland
3ccef1ca47
bpo-40956: Convert _sqlite3.Connection to Argument Clinic, part 2 (GH-23838)
2020-12-27 17:32:18 +09:00
Victor Stinner
993e88cf08
bpo-42694: Prevent creating _curses_panel.panel (GH-23948)
...
Fix regression introduced in
commit 1baf030a902392fe92d934ed0fb6a385cf7d8869: restore removed code
to prevent creating a _curses_panel.panel instance directly.
2020-12-26 02:17:46 +01:00
Raymond Hettinger
6b1ac809b9
bpo-25246: Optimize deque.remove() (GH-23898)
2020-12-23 11:45:06 -08:00
Victor Stinner
a12491681f
bpo-32381: pymain_run_command() uses PyCF_IGNORE_COOKIE (GH-23724)
...
The coding cookie (ex: "# coding: latin1") is now ignored in the
command passed to the -c command line option.
Since pymain_run_command() uses UTF-8, pass PyCF_IGNORE_COOKIE
compiler flag to the parser.
pymain_run_python() no longer propages compiler flags between
function calls.
2020-12-23 19:16:56 +01:00
Christian Heimes
6d9ec8bbfa
bpo-1635741: Port resource extension module to module state (GH-23462)
...
Signed-off-by: Christian Heimes <christian@python.org>
2020-12-23 08:55:11 +01:00
Christian Heimes
cf3565ca9a
bpo-42620: Improve socket.getsockname doc string (GH-23742)
...
Signed-off-by: Christian Heimes <christian@python.org>
2020-12-22 23:25:57 -08:00
Victor Stinner
52a327c1cb
bpo-39465: Add pycore_atomic_funcs.h header (GH-20766)
...
Add pycore_atomic_funcs.h internal header file: similar to
pycore_atomic.h but don't require to declare variables as atomic.
Add _Py_atomic_size_get() and _Py_atomic_size_set() functions.
2020-12-23 03:41:08 +01:00
erykoff
b3c77ecbbe
bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868)
...
Automerge-Triggered-By: GH:ronaldoussoren
2020-12-22 03:12:07 -08:00
AMIR
b8fde8b541
bpo-42008: Fix internal _random.Random() seeding for the one argument case (GH-22668)
2020-12-21 15:45:50 -08:00
Dong-hee Na
2179349d8c
bpo-40956: Fix sqlite3 AC code (GH-23837)
2020-12-19 00:41:33 +09:00
Erlend Egeberg Aasland
1ba82bbc50
bpo-40956: Convert _sqlite3.Connection to Argument Clinic (GH-23341)
2020-12-18 23:25:35 +09:00
Victor Stinner
6104013838
bpo-1635741: Port _thread to multiphase init (GH-23811)
...
Port the _thread extension module to the multiphase initialization
API (PEP 489) and convert its static types to heap types.
Add a traverse function to the lock type, so the garbage collector
can break reference cycles.
2020-12-18 01:39:00 +01:00
Victor Stinner
aefb69b23f
bpo-40686: Fix compiler warnings on _zoneinfo.c (GH-23614)
...
"uint8_t day" is unsigned and so "day < 0" test is always true.
Remove the test to fix the following warnings on Windows:
modules\_zoneinfo.c(1224): warning C4068: unknown pragma
modules\_zoneinfo.c(1225): warning C4068: unknown pragma
modules\_zoneinfo.c(1227): warning C4068: unknown pragma
2020-12-16 16:26:15 +01:00