https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
50688d2 Improve repr for other printable tags. 06 December 2018, 08:33:09 UTC
fd68224 Add tests. 06 December 2018, 08:15:26 UTC
119ccea Address review comments and fix other errors. 03 December 2018, 14:07:24 UTC
316ec5f bpo-35384: The repr of ctypes.CArgObject no longer fail for non-ascii character. 03 December 2018, 10:52:40 UTC
4013c17 bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848) 03 December 2018, 08:36:45 UTC
062cbb6 bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853) Use "ll" instead of the nonstandard "q". 03 December 2018, 08:31:35 UTC
c667b09 bpo-32153: Add unit test for create_autospec with partial function returned in getattr (#10398) * Add create_autospec with partial function returned in getattr * Use self.assertFalse instead of assert * Use different names and remove object 03 December 2018, 07:58:15 UTC
68b56d0 bpo-35341: Add generic version of OrderedDict to typing (GH-10850) 02 December 2018, 15:53:14 UTC
32bc11c bpo-35371: Fix possible crash in os.utime() on Windows. (GH-10844) 01 December 2018, 12:30:20 UTC
edeca92 bpo-31177: Skip deleted attributes while calling reset_mock (GH-9302) 01 December 2018, 10:03:54 UTC
9890520 Fix compiler warning in structseq_repr() (GH-10841) Replace strncpy() with memcpy() in structseq_repr() to fix the following compiler warning: Objects/structseq.c:187:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(pbuf, typ->tp_name, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Objects/structseq.c:185:11: note: length computed here len = strlen(typ->tp_name) > TYPE_MAXSIZE ? TYPE_MAXSIZE : The function writes the terminating NUL byte later. 01 December 2018, 01:46:40 UTC
503ce5c get_gmtoff() now returns time_t (GH-10838) get_gmtoff() now returns time_t instead of int to fix the following Visual Studio warning: Modules\timemodule.c(1183): warning C4244: 'return': conversion from 'time_t' to 'int', possible loss of data 30 November 2018, 23:39:36 UTC
7212148 bpo-35352: Cleanup test_asyncio/utils.py (GH-10831) 'here' variable is no longer needed. 30 November 2018, 17:30:09 UTC
b062ba7 bpo-35352: test_asyncio uses the certificate set from the test directory (GH-10826) Modify asyncio tests to utilize the certificates from the test directory instead of its own set, as they are the same and with each update they had to be updated as well. 30 November 2018, 16:56:56 UTC
9eea6ea bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) Fix an undefined behaviour in the pthread implementation of PyThread_start_new_thread(): add a function wrapper to always return NULL. Add pythread_callback struct and pythread_wrapper() to thread_pthread.h. 30 November 2018, 15:14:25 UTC
1600f60 Fix compiler warning in call_readline() (GH-10820) Replace strncpy() with memcpy() in call_readline() to fix the following warning, the NUL byte is written manually just after: Modules/readline.c: In function ‘call_readline’: Modules/readline.c:1303:9: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(p, q, n); ^~~~~~~~~~~~~~~~ Modules/readline.c:1279:9: note: length computed here n = strlen(p); ^~~~~~~~~ 30 November 2018, 14:03:53 UTC
b7c2182 Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814) 30 November 2018, 14:03:00 UTC
304315d bpo-35347: Cleanup test_socket.NonBlockingTCPTests (GH-10818) * Replace testInheritFlags() with two tests: testInheritFlagsBlocking() and testInheritFlagsTimeout() to test different default socket timeout. Moreover, the test now checks sock.gettimeout() rather than a functional test on recv(). * Replace time.time() with time.monotonic() * Add socket_setdefaulttimeout() context manager to restore the default timeout when the test completes. * Remove testConnect(): accept() wasn't blocking and testAccept() already tests non-blocking accept(). * Remove accept() functional test from testInitNonBlocking(): already tested by testAccept() * Rewrite testSetBlocking() with a new assert_sock_timeout() method * Use addCleanup() and context manager to close sockets * Replace assertTrue(x < y) with assertLess(x, y) 30 November 2018, 12:22:44 UTC
ebd5d6d bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791) testAccept() and testRecv() of test_socket.NonBlockingTCPTests have a race condition: time.sleep() is used as a weak synchronization primitive and the tests fail randomly on slow buildbots. Use a reliable threading.Event to fix these tests. Other changes: * Replace send() with sendall() * Expect specific BlockingIOError rather than generic OSError * Add a timeout to select() in testAccept() and testRecv() * Use addCleanup() to close sockets * Use assertRaises() 30 November 2018, 11:29:25 UTC
55e4980 bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C locale if the LC_CTYPE locale is "C". 30 November 2018, 10:34:47 UTC
a407004 Fix typo in Memory Management doc. (GH-10798) 30 November 2018, 07:42:47 UTC
a2e3585 bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808) 30 November 2018, 07:40:16 UTC
9724348 bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10150) 29 November 2018, 17:17:44 UTC
b2774c8 Use assertEqual to fix DeprecationWarning. (GH-10794) 29 November 2018, 13:07:00 UTC
82daa60 bpo-30167: Remove __cached__ from __main__ when removing __file__ (GH-7415) 29 November 2018, 11:01:27 UTC
9fbcfc0 bpo-16086: Fix PyType_GetFlags() documentation (GH-10758) PyType_GetFlags() return type is unsigned long, not long. 29 November 2018, 09:11:36 UTC
73104fa bpo-35345: Remove platform.popen() (GH-10781) Remove platform.popen() function, it was deprecated since Python 3.3: use os.popen() instead. Rename also the "Removed" section to "API and Feature Removals" of What's New in Python 3.8. 29 November 2018, 08:58:20 UTC
7cc1fa4 bpo-28167: Remove platform._dist_try_harder() (GH-10787) platform._dist_try_harder() was an helper function for platform.linux_distribution() which has been removed by the commit 8b94b41ab7b12f745dea744e8940631318816935. 29 November 2018, 02:14:03 UTC
2956bff bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782) test_eintr no longer fails if the signal handler has not been called. 29 November 2018, 00:34:51 UTC
48498dd bpo-33723: Remove busy loop from test_time (GH-10773) The "busy loops" of test_process_time() and test_thread_time() are not reliable and fail randomly on Windows: remove them. 28 November 2018, 17:30:10 UTC
f7e4d36 bpo-34100: compile: Re-enable frozenset merging (GH-10760) This reverts commit 1005c84535191a72ebb7587d8c5636a065b7ed79. 28 November 2018, 15:58:46 UTC
1cdfcfc bpo-35337: Fix gettmarg(): use PyStructSequence_GET_ITEM() (GH-10765) PyStructSequence_GET_ITEM() must be used instead of PyTuple_GET_ITEM() on a StructTimeType. 28 November 2018, 14:19:51 UTC
54ba556 bpo-35134: Create Include/cpython/tupleobject.h (GH-10764) Move tupleobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/tupleobject.h header file. Add cpython/ header files to Makefile.pre.in and pythoncore project of PCbuild. 28 November 2018, 12:01:32 UTC
bde9d6b bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759) Fix memory leak in PyUnicode_EncodeLocale() and PyUnicode_EncodeFSDefault() on error handling. Changes: * Fix unicode_encode_locale() error handling * Fix test_codecs.LocaleCodecTest 28 November 2018, 09:26:20 UTC
a22df48 bpo-35240: Add "doctest" job to Travis CI (GH-10753) Create a new "doctest" job in Travis CI to run "make doctest". 28 November 2018, 09:24:08 UTC
b727873 bpo-33676: Fix dangling thread in _test_multiprocessing (GH-10755) Fix WithThreadsTestPool.test_wrapped_exception() of test_multiprocessing_fork: join the pool. WithThreadsTestPool.test_del_pool() is now also decorated with @support.reap_threads. 28 November 2018, 00:14:31 UTC
9bdd2de bpo-35134: Don't define types twice in header files (GH-10754) Fix the following clang warning: Include/cpython/pystate.h:217:3: warning: redefinition of typedef 'PyThreadState' is a C11 feature [-Wtypedef-redefinition] 27 November 2018, 22:54:59 UTC
1c60715 bpo-33012: Fix more invalid function cast warnings with gcc 8. (GH-10751) Fix warnings with gcc 8 for wrapperfunc <-> wrapperfunc_kwds casts. 27 November 2018, 19:34:27 UTC
c57e6e2 bpo-35312: Make lib2to3.pgen2.parse.ParseError round-trip pickle-able. (GH-10710) 27 November 2018, 18:39:49 UTC
d4f9cf5 bpo-33029: Fix signatures of getter and setter functions. (GH-10746) Fix also return type for few other functions (clear, releasebuffer). 27 November 2018, 17:34:35 UTC
1005c84 bpo-34100: Partially revert merge_consts_recursive() (GH-10743) Partically revert commit c2e1607a51d7a17f143b5a34e8cff7c6fc58a091 to fix a reference leak. 27 November 2018, 14:12:47 UTC
4808338 bpo-35134: Update "make tags": add Include/cpython/ (GH-10739) "make tags" and "make TAGS" now also parse Include/cpython/ header files. 27 November 2018, 11:42:25 UTC
163403a bpo-33954: Fix compiler warning in _PyUnicode_FastFill() (GH-10737) 'data' argument of unicode_fill() is modified, so it must not be constant. Add more assertions to unicode_fill(): check the maximum character value. 27 November 2018, 11:41:17 UTC
cfaafda bpo-35317: Fix mktime() error in test_email (GH-10721) Fix mktime() overflow error in test_email: run test_localtime_daylight_true_dst_true() and test_localtime_daylight_false_dst_true() with a specific timezone. 27 November 2018, 11:40:50 UTC
62be742 bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749) Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code. 27 November 2018, 11:27:31 UTC
8152402 bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736) 27 November 2018, 11:05:02 UTC
4a934d4 bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. (GH-6748) Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS in Argument Clinic generated code. 27 November 2018, 09:27:36 UTC
b619b09 bpo-31241: Fix AST node position for list and generator comprehensions. (GH-10633) The lineno and col_offset attributes of AST nodes for list comprehensions, generator expressions and tuples are now point to the opening parenthesis or square brace. For tuples without parenthesis they point to the position of the first item. 27 November 2018, 07:40:29 UTC
d1cbc6f Include the highest pickle protocol in a couple of tests. (GH-10735) test_reduce_ex() in test_array.py and test_reversevaluesiterator_pickling() in test_dict.py weren't using the highest pickle protocol. 27 November 2018, 05:40:49 UTC
da324d5 closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. (GH-8712) 27 November 2018, 02:21:31 UTC
f2a9d5c bpo-35134: Create Include/cpython/pystate.h (GH-10733) Move pystate.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/pystate.h header file. 26 November 2018, 23:20:00 UTC
ffedd9a bpo-35134: Create Include/cpython/dictobject.h (GH-10732) * Move dictobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/dictobject.h header file. * Add PyAPI_FUNC() to _PyDictView_New(). * Reorganize dictobject.h: move views and iterators at the end. 26 November 2018, 23:12:26 UTC
dd12aa0 bpo-35134: Create Include/cpython/pylifecycle.h (GH-10731) Move pylifecycle.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/pylifecycle.h header file. 26 November 2018, 23:12:05 UTC
4060283 bpo-35134: Create Include/cpython/abstract.h (GH-10728) Move abstract.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/abstract.h header file. 26 November 2018, 21:42:04 UTC
8c281ed bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693) Regression introduced in e3ce695 and 25b804a, where the old parameter update_tryorder to _synthesize was first ignored, then given the opposite value in the attempt to fix bpo-31014. 26 November 2018, 21:29:45 UTC
5a8c240 bpo-35134: Add Include/cpython/pyerrors.h (GH-10727) Move pyerrors.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/pyerrors.h header file. 26 November 2018, 21:11:25 UTC
65c216e bpo-33723: Fix test_time.test_thread_time() (GH-10724) Tolerate up to 30 ms, instead of 15 min, in other threads. 26 November 2018, 20:19:29 UTC
433433f Adds IPv6 support when invoking http.server directly. (GH-10595) 26 November 2018, 18:43:38 UTC
75e4699 bpo-35134: Create Include/cpython/unicodeobject.h (GH-10680) Move unicodeobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/unicodeobject.h header file. 26 November 2018, 16:29:38 UTC
5719f27 Doc: Delete now useless Windows FAQ section (GH-10557) 26 November 2018, 16:13:41 UTC
6eb9966 bpo-35134: Create Include/cpython/object.h (GH-10679) * Move object.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/object.h header file. * "typedef struct _typeobject PyTypeObject;" is now always defined in object.h, but if Py_LIMITED_API is not defined, Include/cpython/object.h also defines the structure. * Complete the printfunc comment to mention Py_LIMITED_API define. 26 November 2018, 16:09:16 UTC
282c03d pythoninfo: log more environment variable (GH-10719) Log TZ to debug a timezone issue... and a few more :-) 26 November 2018, 16:03:16 UTC
59423e3 bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) Fix str.format(), float.__format__() and complex.__format__() methods for non-ASCII decimal point when using the "n" formatter. Changes: * Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires a _PyUnicodeWriter object for the buffer and a Python str object for digits. * Rename FILL() macro to unicode_fill(), convert it to static inline function, add "assert(0 <= start);" and rework its code. 26 November 2018, 12:40:01 UTC
df108dc Add assertion to _PyTuple_CAST(op) (GH-10712) Add "assert(PyTuple_Check(op));" to _PyTuple_CAST() to check that the argument is a tuple object in debug mode. PyTuple_GET_SIZE() now uses _PyTuple_CAST() to get its assertion. 26 November 2018, 12:37:13 UTC
c2e1607 bpo-34100: Merge constants recursively (GH-8341) There are some same consts in a module. This commit merges them into single instance. It reduces number of objects in memory after loading modules. https://bugs.python.org/issue34100 26 November 2018, 12:23:22 UTC
f0b366a bpo-35313: Cleanup test_embed.py (GH-10716) * Remove an unused import. * Move get_expected_config() call to check_config() to ease backport to Python 3.7. 26 November 2018, 11:37:34 UTC
a6537fb bpo-35313: Fix test_embed when run from venv (GH-10713) test_embed.InitConfigTests now gets the expected configuration from a child process run with -S to not run the site module. 26 November 2018, 10:54:12 UTC
f0e0f20 bpo-35300: Add usage note to the lru_cache() docs (GH-10707) https://bugs.python.org/issue35300 26 November 2018, 00:24:52 UTC
ec13b93 bpo-35081: Add Include/internal/pycore_tupleobject.h (GH-10705) Move _PyTuple_ITEMS() to a new header file: Include/internal/pycore_tupleobject.h 25 November 2018, 22:56:17 UTC
8ac6539 bpo-35081: Add _PyTuple_CAST() (GH-10704) 25 November 2018, 22:30:32 UTC
1586958 closes bpo-35309: cpath should be capath (GH-10699) 25 November 2018, 18:32:50 UTC
4bb186d bpo-32035: Fix words about strings and bytes in zipfile documentation. (GH-10592) 25 November 2018, 07:51:14 UTC
7f4ba4a Doc: Bump sphinx. (GH-10676) 24 November 2018, 10:35:21 UTC
5b83ef7 bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689) 23 November 2018, 19:26:46 UTC
1d817e4 bpo-29877: compileall: import ProcessPoolExecutor only when needed (GH-4856) Importing ProcessPoolExecutor may hang or cause an error when the import accesses urandom on a low resource platform https://bugs.python.org/issue29877 23 November 2018, 17:06:55 UTC
9de3632 bpo-34812: subprocess._args_from_interpreter_flags(): add isolated (GH-10675) The "-I" command line option (run Python in isolated mode) is now also copied by the multiprocessing and distutils modules when spawning child processes. Previously, only -E and -s options (enabled by -I) were copied. subprocess._args_from_interpreter_flags() now copies the -I flag. 23 November 2018, 16:54:20 UTC
ba57963 Linkify SMTP.quit() in smtplib documentation. (GH-9785) 23 November 2018, 16:53:24 UTC
e421106 bpo-35134: Create Include/cpython/ subdirectory (GH-10624) Include/*.h should be the "portable Python API", whereas Include/cpython/*.h should be the "CPython API": CPython implementation details. Changes: * Create Include/cpython/ subdirectory * "make install" now creates $prefix/include/cpython and copy Include/cpython/* to $prefix/include/cpython * Create Include/cpython/objimpl.h: move objimpl.h code surrounded by "#ifndef Py_LIMITED_API" to cpython/objimpl.h. * objimpl.h now includes cpython/objimpl.h * Windows installer (MSI) now also install Include/ subdirectories: Include/cpython/ and Include/internal/. 23 November 2018, 16:00:00 UTC
b409ffa bpo-35189: Retry fnctl calls on EINTR (GH-10413) Modify the following fnctl function to retry if interrupted by a signal (EINTR): flock, lockf, fnctl. 23 November 2018, 15:46:12 UTC
f653fd4 bpo-35296: make install now installs the internal API (GH-10665) make install now also installs the internal API: Include/internal/*.h header files. 23 November 2018, 15:30:12 UTC
a1c4001 Doc: Delete "how do I emulate os.kill" section in Windows FAQ (GH-10487) That section is a tip on how to kill process on Windows for Python prior to 2.7 and 3.2. 3.1 end of support was April 2012 and 2.6 was October 2013, so that hasn't been need for supported versions of Python for more than 5 years. Beside not being needed anymore for a long time, when I read it with the eyes of a Python profane, it makes Python looks bad, like a language from the parts with warts you need to circumvent. Let's delete that :) 23 November 2018, 14:35:07 UTC
4ac5328 bpo-35081: add NEWS entry for new Include/internal/pycore_*.h files (GH-10666) 23 November 2018, 14:05:15 UTC
b509d52 bpo-35059: PyObject_INIT() casts to PyObject* (GH-10674) PyObject_INIT() and PyObject_INIT_VAR() now cast their first argument to PyObject*, as done in Python 3.7. Revert partially commit b4435e20a92af474f117b78b98ddc6f515363af5. 23 November 2018, 13:27:38 UTC
353933e bpo-34523: Fix C locale coercion on FreeBSD CURRENT (GH-10672) bpo-34523, bpo-35290: C locale coercion now resets the Python internal "force ASCII" mode. This change fix the filesystem encoding on FreeBSD CURRENT, which has a new "C.UTF-8" locale, when the UTF-8 mode is disabled. Add _Py_ResetForceASCII(): _Py_SetLocaleFromEnv() now calls it. 23 November 2018, 12:08:26 UTC
e89607c bpo-35059: NEWS entry for macros converted to inline funcs (GH-10671) 23 November 2018, 11:34:35 UTC
984061e bpo-35081: Add new internal headers to Makefile (GH-10670) Add pycore_fileutils.h and pycore_object.h to Makefile.pre.in and to the pythoncore project of PCbuild/. 23 November 2018, 11:30:40 UTC
3bb183d bpo-35177, Python-ast.h: Fix "Yield" compiler warning (GH-10664) Partially revert commit 5f2df88b63e50d23914e97ec778861a52abdeaad: add "#undef Yield" to .c files after including Python-ast.h. Fix the warning: winbase.h(102): warning C4005: 'Yield': macro redefinition 22 November 2018, 17:38:38 UTC
2cf5d32 bpo-9263: Fix _PyObject_Dump() for freed object (#10661) If _PyObject_Dump() detects that the object is freed, don't try to dump it (exit immediately). Enhance also _PyObject_IsFreed(): it now detects if the pointer itself looks like freed memory. 22 November 2018, 15:32:57 UTC
9a0d7a7 bpo-24658: os.read() reuses _PY_READ_MAX (GH-10657) os_read_impl() now also truncates the size to _PY_READ_MAX on macOS, to avoid to allocate a larger buffer even if _Py_read() is limited to _PY_READ_MAX bytes (ex: INT_MAX on macOS). 22 November 2018, 14:03:40 UTC
4d73ae7 bpo-18407: ast.c uses Py_ssize_t for asdl_seq_LEN() iterator (GH-10655) When iterating using asdl_seq_LEN(), use 'Py_ssize_t' type instead of 'int' for the iterator variable, to avoid downcast on 64-bit platforms. _Py_asdl_int_seq_new() now also ensures that the index is greater than or equal to 0. 22 November 2018, 13:45:16 UTC
c48ff73 bpo-18407: win32_urandom() uses PY_DWORD_MAX (GH-10656) CryptGenRandom() maximum size is PY_DWORD_MAX, not INT_MAX. Use DWORD type for the 'chunk' variable Co-Authored-By: Jeremy Kloth <jeremy.kloth@gmail.com> 22 November 2018, 13:43:07 UTC
28f468c bpo-9566: Fix compiler warnings in pyexpat.c (GH-10654) Explicit cast a pointer difference (intptr_t) to int to fix two warnings on 64-bit Windows: Modules\pyexpat.c(1181): warning C4244: 'initializing': conversion from '__int64' to 'int', possible loss of data Modules\pyexpat.c(1192): warning C4244: 'initializing': conversion from '__int64' to 'int', possible loss of data 22 November 2018, 12:21:43 UTC
cdbcb77 cjkcodecs: Fix compiler warning (GH-10651) Fixed the following compiler warning in multibytecodec.c: warning C4244: '=': conversion from 'Py_ssize_t' to 'unsigned char', possible loss of data Cast Py_ssize_t to unsigned char: the maximum value is checked on the previous line. 22 November 2018, 09:25:46 UTC
a42de74 bpo-35059: Cast void* to PyObject* (GH-10650) Don't pass void* to Python macros: use _PyObject_CAST(). 22 November 2018, 09:25:22 UTC
b37672d bpo-35059: Cleanup usage of Python macros (GH-10648) Don't pass complex expressions but regular variables to Python macros. * _datetimemodule.c: split single large "if" into two "if" in date_new(), time_new() and datetime_new(). * _pickle.c, load_extension(): flatten complex "if" expression into more regular C code. * _ssl.c: addbool() now uses a temporary bool_obj to only evaluate the value once. * weakrefobject.c: replace "Py_INCREF(result = proxy);" with "result = proxy; Py_INCREF(result);" 22 November 2018, 02:37:50 UTC
2ff8fb7 bpo-35059: Add _PyObject_CAST() macro (GH-10645) Add _PyObject_CAST() and _PyVarObject_CAST() macros to cast argument to PyObject* and PyVarObject* properly. 22 November 2018, 01:57:29 UTC
271753a bpo-35059: Convert _PyObject_GC_TRACK() to inline function (GH-10643) * Add _PyObject_ASSERT_FROM() and _PyObject_ASSERT_FAILED_MSG() macros. * PyObject_GC_Track() now calls _PyObject_ASSERT_FAILED_MSG(), instead of Py_FatalError(), if the object is already tracked, to dump more information on error. * _PyObject_GC_TRACK() no longer checks if the object is already tracked at runtime, use an assertion instead for best performances; PyObject_GC_Track() still checks at runtime. * pycore_object.h now includes pycore_pystate.h. * Convert _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() macros to inline functions. 22 November 2018, 00:02:54 UTC
f1d002c bpo-35059: Enhance _PyObject_AssertFailed() (GH-10642) Enhance _PyObject_AssertFailed() * Exchange 'expr' and 'msg' parameters * 'expr' and 'func' arguments can now be NULL 21 November 2018, 22:53:44 UTC
bcda8f1 bpo-35081: Add Include/internal/pycore_object.h (GH-10640) Move _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() from Include/objimpl.h to Include/internal/pycore_object.h. 21 November 2018, 21:27:47 UTC
aac1f81 bpo-35189: Fix eintr_tester.py (GH-10637) Call setitimer() before each test method, instead of once per test case, to ensure that signals are sent in each test method. Previously, only the first method of a testcase class got signals. Changes: * Replace setUpClass() with setUp() and replace tearDownClass() with tearDown(). * tearDown() now ensures that at least one signal has been sent. * Replace support.run_unittest() with unittest.main() which has a nicer CLI and automatically discover test cases. 21 November 2018, 15:33:13 UTC
back to top