Staging
v0.8.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
c6e5c11 bpo-39489: Remove COUNT_ALLOCS special build (GH-18259) Remove: * COUNT_ALLOCS macro * sys.getcounts() function * SHOW_ALLOC_COUNT code in listobject.c * SHOW_TRACK_COUNT code in tupleobject.c * PyConfig.show_alloc_count field * -X showalloccount command line option * @test.support.requires_type_collecting decorator 03 February 2020, 14:17:15 UTC
869c0c9 bpo-36051: Fix compiler warning. (GH-18325) 03 February 2020, 10:03:34 UTC
032de73 bpo-39450 Stripped whitespace before parsing the docstring in TestCase.shortDescription (GH-18175) 03 February 2020, 07:06:50 UTC
0f2f35e bpo-39492: Fix a reference cycle between reducer_override and a Pickler instance (GH-18266) This also needs a backport to 3.8 https://bugs.python.org/issue39492 Automerge-Triggered-By: @pitrou 02 February 2020, 18:55:21 UTC
339fd46 bpo-39349: Add *cancel_futures* to Executor.shutdown() (GH-18057) 02 February 2020, 12:49:00 UTC
be8147b Fix 5-space indentation and trailing whitespace (GH-18311) 02 February 2020, 11:37:02 UTC
78c7183 bpo-39496: Remove redundant checks from _sqlite/cursor.c (GH-18270) 01 February 2020, 20:45:34 UTC
b94737a fixes typos in http.client documentation (#18300) 01 February 2020, 12:31:00 UTC
90d9ba6 bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533) 01 February 2020, 11:12:52 UTC
abb9a44 Update sum comment. (#18240) 01 February 2020, 11:08:34 UTC
4d96b46 bpo-39511: PyThreadState_Clear() calls on_delete (GH-18296) PyThreadState.on_delete is a callback used to notify Python when a thread completes. _thread._set_sentinel() function creates a lock which is released when the thread completes. It sets on_delete callback to the internal release_sentinel() function. This lock is known as Threading._tstate_lock in the threading module. The release_sentinel() function uses the Python C API. The problem is that on_delete is called late in the Python finalization, when the C API is no longer fully working. The PyThreadState_Clear() function now calls the PyThreadState.on_delete callback. Previously, that happened in PyThreadState_Delete(). The release_sentinel() function is now called when the C API is still fully working. 01 February 2020, 01:30:25 UTC
7dc1401 bpo-39511: Fix multiprocessing semlock_acquire() (GH-18298) The Python C API must not be used when the GIL is released: only access Py_None when the GIL is hold. 01 February 2020, 00:25:59 UTC
f03a8f8 bpo-37224: Improve test__xxsubinterpreters.DestroyTests (GH-18058) Adds an additional assertion check based on a race condition for `test__xxsubinterpreters.DestroyTests.test_still_running` discovered in the bpo issue. https://bugs.python.org/issue37224 31 January 2020, 20:07:09 UTC
58a4054 Doc: Fix s/pseudo random/pseudo-random/ (GH-18289) 31 January 2020, 09:50:14 UTC
bfdeaa3 bpo-38792: Remove IDLE shell calltip before new prompt. (#17150) Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tal Einat <taleinat+github@gmail.com> 31 January 2020, 01:55:42 UTC
46874c2 bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) Moving repetitive `_Py_IDENTIFIER` instances to a global location helps identify them more easily in regards to sub-interpreter support. 30 January 2020, 23:20:25 UTC
c232c91 bpo-39502: Skip test_zipfile.test_add_file_after_2107() on AIX (GH-18282) Skip test_zipfile.test_add_file_after_2107() if time.localtime() fails with OverflowError. It is the case on AIX 6.1 for example. 30 January 2020, 14:47:53 UTC
8d49f7c bpo-39434: Improve float __floordiv__ performance and error message (GH-18147) 30 January 2020, 13:23:15 UTC
2a4903f bpo-38631: Add _Py_NO_RETURN to functions calling Py_FatalError() (GH-18278) Add _Py_NO_RETURN to functions calling Py_FatalError(): * _PyObject_AssertFailed() * dummy_dealloc() * faulthandler_fatal_error_thread() * none_dealloc() * notimplemented_dealloc() 30 January 2020, 12:09:11 UTC
17c68b8 bpo-38631: Replace Py_FatalError() with assert() in ceval.c (GH-18279) Replace a few Py_FatalError() calls if tstate is NULL with assert(tstate != NULL) in ceval.c. PyEval_AcquireThread(), PyEval_ReleaseThread() and PyEval_RestoreThread() must never be called with a NULL tstate. 30 January 2020, 11:20:48 UTC
ec3c99c bpo-38631: Avoid Py_FatalError() in unicodeobject.c (GH-18281) Replace Py_FatalError() calls with _PyErr_WriteUnraisableMsg(), _PyObject_ASSERT_FAILED_MSG() or Py_UNREACHABLE() in unicode_dealloc() and unicode_release_interned(). 30 January 2020, 11:18:32 UTC
38c878b bpo-39424: Use assertRaisesRegex instead of assertRaisesRegexp. (GH-18277) 30 January 2020, 10:26:22 UTC
1f44e77 bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271) 30 January 2020, 09:39:25 UTC
c38fd0d bpo-39353: binascii.crc_hqx() is no longer deprecated (GH-18276) The binascii.crc_hqx() function is no longer deprecated. 30 January 2020, 08:56:40 UTC
2bf127d bpo-38631: Replace tp_new_wrapper() fatal error with SystemError (GH-18262) tp_new_wrapper() now raises a SystemError if called with non-type self, rather than calling Py_FatalError() which cannot be catched. 30 January 2020, 08:02:49 UTC
7a1f6c2 bpo-38631: Avoid Py_FatalError() in init_slotdefs() (GH-18263) Rename init_slotdefs() to _PyTypes_InitSlotDefs() and add a return value of type PyStatus. The function is now called exactly once from _PyTypes_Init(). Replace calls to init_slotdefs() with an assertion checking that slotdefs is initialized. 30 January 2020, 08:02:14 UTC
5eb8bff bpo-38631: Replace Py_FatalError() with _PyObject_ASSERT_FAILED_MSG() (GH-18258) Replace Py_FatalError() with _PyObject_ASSERT_FAILED_MSG() in object.c and typeobject.c to also dump the involved Python object on a fatal error. It should ease debug when such fatal error occurs. If the double linked list is inconsistent, _Py_ForgetReference() no longer dumps previous and next objects in the fatal error, it now only dumps the current object. It ensures that the error message is displayed even if dumping the object does crash Python. Enhance _Py_ForgetReference() error messages; _PyObject_ASSERT_FAILED_MSG() logs the "_Py_ForgetReference" function name. 30 January 2020, 08:01:07 UTC
188bb5b bpo-39494: Remove extra null terminators from kwlist vars (GH-18267) 30 January 2020, 04:12:53 UTC
2e6569b bpo-39493: Fix definition of IO.closed in typing.py (#18265) 30 January 2020, 02:52:36 UTC
d47d0c8 Improve grammar in the import system reference documentation (GH-18209) Replaced the period with a comma. Automerge-Triggered-By: @Mariatta 30 January 2020, 02:23:50 UTC
5428f48 Remove deadcode in _Py_inc_count() (GH-18257) (tp->tp_next != NULL) check became redundant with commit 45294a9562e5c360ee8ef8498d8792e05a6eb25e (merged in 2006). 29 January 2020, 18:22:11 UTC
db5e86a Get mock coverage back to 100% (GH-18228) * use the `: pass` and `: yield` patterns for code that isn't expected to ever be executed. * The _Call items passed to _AnyComparer are only ever of length two, so assert instead of if/else * fix typo * Fix bug, where stop-without-start patching dict blows up with `TypeError: 'NoneType' object is not iterable`, highlighted by lack of coverage of an except branch. * The fix for bpo-37972 means _Call.count and _Call.index are no longer needed. * add coverage for calling next() on a mock_open with readline.return_value set. * __aiter__ is defined on the Mock so the one on _AsyncIterator is never called. 29 January 2020, 16:24:54 UTC
a327677 bpo-39485: fix corner-case in method-detection of mock (GH-18252) Replace check for whether something is a method in the mock module. The previous version fails on PyPy, because there no method wrappers exist (everything looks like a regular Python-defined function). Thus the isinstance(getattr(result, '__get__', None), MethodWrapperTypes) check returns True for any descriptor, not just methods. This condition could also return erroneously True in CPython for C-defined descriptors. Instead to decide whether something is a method, just check directly whether it's a function defined on the class. This passes all tests on CPython and fixes the bug on PyPy. 29 January 2020, 15:43:37 UTC
3cb49b6 bpo-39460: Fix test_zipfile.test_add_file_after_2107() (GH-18247) XFS filesystem is limited to 32-bit timestamp, but the utimensat() syscall doesn't fail. Moreover, there is a VFS bug which returns a cached timestamp which is different than the value on disk. https://bugzilla.redhat.com/show_bug.cgi?id=1795576 https://bugs.python.org/issue39460#msg360952 29 January 2020, 14:23:29 UTC
35eac45 Doc: Fix external links to functional programming tutorial. (GH-18249) 29 January 2020, 13:10:54 UTC
e1e8000 bpo-39153: Clarify C API *SetItem refcounting semantics (GH-18220) Some of the *SetItem methods in the C API steal a reference to the given value. This annotates the better behaved ones to assure the reader that these are not the ones with the inconsistent behaviour. * 📜🤖 Added by blurb_it. * make docs consistent with signature Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 29 January 2020, 11:20:53 UTC
d07d9f4 bpo-36051: Drop GIL during large bytes.join() (GH-17757) Improve multi-threaded performance by dropping the GIL in the fast path of bytes.join. To avoid increasing overhead for small joins, it is only done if the output size exceeds a threshold. 29 January 2020, 07:09:24 UTC
6a65eba bpo-39401: Avoid unsafe DLL load on Windows 7 and earlier (GH-18231) As Windows 7 is not supported by Python 3.9, we just replace the dynamic load with a static import. Backports will have a different fix to ensure they continue to behave the same. 29 January 2020, 02:46:33 UTC
0cd5bff bpo-39459: include missing test files in windows installer Adds missing test files to Windows installer to wrap up bpo-39459 28 January 2020, 21:24:12 UTC
aabdeb7 bpo-38960: DTrace build fix for FreeBSD. (GH-17451) DTrace build fix for FreeBSD. - allowing passing an extra flag as it need to define the arch size. - casting some probe's arguments. 28 January 2020, 12:53:32 UTC
2cca8ef bpo-36350: inspect: Replace OrderedDict with dict. (GH-12412) 28 January 2020, 12:47:03 UTC
0be3246 bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158) 28 January 2020, 10:34:23 UTC
148610d bpo-39287: Doc: Add UTF-8 mode section in using/windows. (GH-17935) Co-Authored-By: Kyle Stanley <aeros167@gmail.com> 28 January 2020, 10:12:31 UTC
13c1c35 bpo-39393: Misleading error message on dependent DLL resolution failure (GH-18093) 28 January 2020, 09:42:43 UTC
c45a2aa bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on Windows (GH-17961) In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows. Path.expanduser/home still honored HOME despite being documented as behaving the same as os.path.expanduser. This makes them also ignore HOME so that both implementations behave the same way again. 28 January 2020, 09:41:50 UTC
61f4db8 bpo-38644: Pass tstate in ceval.c (GH-18222) Pass explicitly the Python thread state (tstate) in ceval.c. 28 January 2020, 02:37:45 UTC
01bf219 bpo-36018: Minor fixes to the NormalDist() examples and recipes. (GH-18226) * Change the source for the SAT data to a primary source. * Fix typo in the standard deviation * Clarify that the binomial probabalities are just for the Python room. 28 January 2020, 02:31:46 UTC
884eb89 bpo-39205: Tests that highlight a hang on ProcessPoolExecutor shutdown (#18221) 28 January 2020, 00:50:37 UTC
2824c45 bpo-39392: Turtle overlap fill depends on OS (#18223) Whether or not overlap regions for self-intersecting polygons or multiple shapes are filled depends on the operating system graphics, typeof overlap, and number of overlaps. 27 January 2020, 23:41:18 UTC
a278313 bpo-38631: Avoid Py_FatalError() in PyCode_New() (GH-18215) intern_strings() now raises a SystemError, rather than calling Py_FatalError(). intern_string_constants() now reports exceptions to the caller, rather than ignoring silently exceptions. 27 January 2020, 22:24:13 UTC
d3a1de2 bpo-38631: Avoid Py_FatalError() in _PyCodecRegistry_Init() (GH-18217) _PyCodecRegistry_Init() now reports exceptions to the caller, rather than calling Py_FatalError(). 27 January 2020, 22:23:12 UTC
dd023ad bpo-30780: Add IDLE configdialog tests (#3592) Expose dialog buttons to test code and complete their test coverage. Complete test coverage for highlights and keys tabs. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 27 January 2020, 22:15:56 UTC
2528a6c Add test.test_import.data.unwritable package to makefile (#18211) 27 January 2020, 22:04:56 UTC
47ee8a6 bpo-38631: Avoid Py_FatalError() in _memory_release() (GH-18214) If the export count is negative, _memory_release() now raises a SystemError and returns -1, rather than calling Py_FatalError() which aborts the process. 27 January 2020, 21:37:44 UTC
a94c6b6 bpo-38631: Avoid Py_FatalError() in PyModule_Create2() (GH-18212) If PyModule_Create2() is called when the Python import machinery is not initialized, it now raises a SystemError and returns NULL, instead of calling Py_FatalError() which aborts the process. The caller must be prepared to handle NULL anyway. 27 January 2020, 21:37:05 UTC
4a46adc bpo-39459: test.pythoninfo logs effective uid/gid (GH-18203) Fix also umask formatting: use octal prefix. 27 January 2020, 17:06:42 UTC
9e1ed51 bpo-39453: Add testcase for bpo-39453 (GH-18202) https://bugs.python.org/issue39453 Automerge-Triggered-By: @pablogsal Automerge-Triggered-By: @pablogsal 27 January 2020, 17:04:25 UTC
7023288 Ignore NEWS snippets in code coverage stats (GH-18194) 27 January 2020, 16:05:03 UTC
4dbf2d8 bpo-39453: Make list.__contains__ hold strong references to avoid crashes (GH-18181) 27 January 2020, 15:02:23 UTC
a46575a Clarify and fix assertions that mocks have not been awaited (GH-18196) - The gc.collect is needed for other implementations, such as pypy - Using context managers over multiple lines will only catch the warning from the first line in the context! - remove a skip for a test that no longer fails on pypy 27 January 2020, 14:55:56 UTC
c7dd3c7 Use relative imports in mock and its tests to help backporting (GH-18197) * asyncio.run only available in 3.8+ * iscoroutinefunction has important bungfixes in 3.8 * IsolatedAsyncioTestCase only available in 3.8+ 27 January 2020, 14:11:19 UTC
997443c Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480) 27 January 2020, 12:08:39 UTC
8a4cd70 bpo-39320: Handle unpacking of **values in compiler (GH-18141) * Add DICT_UPDATE and DICT_MERGE bytecodes. Use them for ** unpacking. * Remove BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL, as they are now unused. * Update magic number for ** unpacking opcodes. * Update dis.rst to incorporate new bytecodes. * Add blurb entry. 27 January 2020, 09:57:45 UTC
72b1004 bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock (#16029) 27 January 2020, 06:48:15 UTC
10355ed bpo-36018: Add another example for NormalDist() (#18191) 26 January 2020, 04:21:17 UTC
4515a59 Fix linecache.py add lazycache to __all__ and use dict.clear to clear the cache (GH-4641) 26 January 2020, 02:07:40 UTC
8271441 bpo-39374: Updated sorting documentation (GH-18177) 25 January 2020, 22:18:58 UTC
4b09dc7 bpo-36654: Add examples for using tokenize module programmically (#12947) 25 January 2020, 19:23:00 UTC
7de6174 bpo-15243: Document __prepare__ as classmethod (GH-17124) 25 January 2020, 18:49:58 UTC
aef7dc8 bpo-38932: Mock fully resets child objects on reset_mock(). (GH-17409) 25 January 2020, 15:44:46 UTC
9bfb4a7 Update 3.8.rst (GH-18173) Fixed the name of the contributor (@selik). 25 January 2020, 15:08:13 UTC
d23b08f Post 3.9.0a3 25 January 2020, 13:52:44 UTC
b07ead3 Merge tag 'v3.9.0a3' Python 3.9.0a3 25 January 2020, 13:52:06 UTC
40c0809 bpo-37955: correct mock.patch docs with respect to the returned type (GH-15521) 25 January 2020, 10:53:54 UTC
62865f4 bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18116) 25 January 2020, 10:17:47 UTC
d0d9fa8 bpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 25 January 2020, 09:00:54 UTC
c33378d Python 3.9.0a3 24 January 2020, 21:05:07 UTC
9017e0b bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161) Use `from ... import ...` to ensure module is fully loaded before accessing its attributes. 24 January 2020, 17:55:52 UTC
656c45e bpo-38631: Avoid Py_FatalError() in GC collect() (GH-18164) collect() should not get an exception, but it does, logging the exception is enough. Override sys.unraisablehook to decide how to handle unraisable exceptions. Py_FatalError() should be avoided whenever possible. 24 January 2020, 17:05:24 UTC
8870433 bpo-39390 shutil: fix argument types for ignore callback (GH-18122) 24 January 2020, 14:51:16 UTC
66b00a9 bpo-38473: Handle autospecced functions and methods used with attach_mock (GH-16784) 24 January 2020, 13:14:29 UTC
b8d1262 bpo-39395: putenv() and unsetenv() always available (GH-18135) The os.putenv() and os.unsetenv() functions are now always available. On non-Windows platforms, Python now requires setenv() and unsetenv() functions to build. Remove putenv_dict from posixmodule.c: it's not longer needed. 24 January 2020, 13:05:48 UTC
161e7b3 bpo-39413: Implement os.unsetenv() on Windows (GH-18163) The os.unsetenv() function is now also available on Windows. 24 January 2020, 10:53:44 UTC
2d50976 bpo-39361: Document the removal of PyTypeObject.tp_print (GH-18125) 24 January 2020, 10:35:01 UTC
e9652e8 bpo-39426: Fix outdated default and highest protocols in docs (GH-18154) Some portions of the pickle documentation hadn't been updated for the pickle protocol changes in Python 3.8 (new protocol 5, default protocol 4). This PR fixes those docs. https://bugs.python.org/issue39426 24 January 2020, 10:03:22 UTC
b9783d2 bpo-39429: Add a new "Python Development Mode" doc page (GH-18132) 24 January 2020, 09:22:18 UTC
e131c97 Fix `mock.patch.dict` to be stopped with `mock.patch.stopall` (#17606) As the function was not registering in the active patches, the mocks started by `mock.patch.dict` were not being stopped when `mock.patch.stopall` was being called. 24 January 2020, 08:38:32 UTC
1d0c5e1 bpo-24928: Add test case for patch.dict using OrderedDict (GH -11437) * add test for path.dict using OrderedDict Co-authored-by: Yu Tomita nekobon@users.noreply.github.com 24 January 2020, 08:14:14 UTC
65ecc39 bpo-17005: Minor improvements to the documentation of TopologicalSorter (GH-18155) 23 January 2020, 21:01:50 UTC
7142df5 bpo-39431: Also mention nonlocal in assignment quirk (GH-17375) 23 January 2020, 18:09:21 UTC
99e6c26 bpo-17005: Add a class to perform topological sorting to the standard library (GH-11583) Co-Authored-By: Tim Peters <tim.peters@gmail.com> 23 January 2020, 15:29:52 UTC
79f89e6 bpo-39421: Fix posible crash in heapq with custom comparison operators (GH-18118) * bpo-39421: Fix posible crash in heapq with custom comparison operators * fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators * fixup! fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators 23 January 2020, 14:07:05 UTC
13bc139 bpo-39320: Handle unpacking of *values in compiler (GH-17984) * Add three new bytecodes: LIST_TO_TUPLE, LIST_EXTEND, SET_UPDATE. Use them to implement star unpacking expressions. * Remove four bytecodes BUILD_LIST_UNPACK, BUILD_TUPLE_UNPACK, BUILD_SET_UNPACK and BUILD_TUPLE_UNPACK_WITH_CALL opcodes as they are now unused. * Update magic number and dis.rst for new bytecodes. 23 January 2020, 09:25:17 UTC
f9e07e1 bpo-32989: IDLE - remove unneeded parameter (GH-18138) IDLE does not pass a non-default _synchre in any of its calls to pyparse.find_good_parse_start. 23 January 2020, 04:55:07 UTC
2e43b64 bpo-39050: The Help button in IDLE's config menu works again (GH-17611) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 23 January 2020, 03:54:30 UTC
dd754ca bpo-29435: Allow is_tarfile to take a filelike obj (GH-18090) `is_tarfile()` now supports `name` being a file or file-like object. 23 January 2020, 02:24:16 UTC
41f0ef6 bpo-39427: Document -X opt options in the CLI --help and the man page (GH-18131) https://bugs.python.org/issue39427 Automerge-Triggered-By: @pablogsal 23 January 2020, 01:03:04 UTC
9b6fec4 bpo-39336: Allow packages to not let their child modules be set on them (#18006) * bpo-39336: Allow setattr to fail on modules which aren't assignable When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail. This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored. 23 January 2020, 00:42:38 UTC
d3ae95e bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) (GH-18117) When communicate() is called in a loop, it crashes when the child process has already closed any piped standard stream, but still continues to be running Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com> 22 January 2020, 23:28:31 UTC
1f0f102 bpo-39366: Remove xpath() and xgtitle() methods of NNTP (GH-18035) 22 January 2020, 21:59:43 UTC
back to top