038770e | Victor Stinner | 10 February 2020, 23:58:23 UTC | bpo-38325: Skip non-BMP tests of test_winconsoleio (GH-18448) Skip tests on non-BMP characters of test_winconsoleio. | 10 February 2020, 23:58:23 UTC |
c4a65ed | Ogi Moore | 10 February 2020, 23:51:01 UTC | bpo-39417: Fix broken link to guide to building venvs (GH-18432) | 10 February 2020, 23:51:01 UTC |
bf15d5b | Eric Wieser | 10 February 2020, 23:32:18 UTC | Correct the documented default encoding (GH-18429) From the source for `PyUnicode_Decode`, the implementation is: ``` if (encoding == NULL) { return PyUnicode_DecodeUTF8Stateful(s, size, errors, NULL); } ``` which is pretty clearly not defaulting to ASCII. --- I assume this needs neither a news entry nor bpo link. | 10 February 2020, 23:32:18 UTC |
95d024d | Tim D. Smith | 10 February 2020, 22:51:01 UTC | bpo-13826: Clarify Popen constructor example (GH-18438) Clarifies that the use of `shlex.split` is more instructive than normative, and provides a simpler example. https://bugs.python.org/issue13826 | 10 February 2020, 22:51:01 UTC |
37c55b2 | Roger Hurwitz | 10 February 2020, 22:50:19 UTC | bpo-39594: Fix typo in os.times documentation (GH-18443) There was an extra space in the url markup, causing the documentation not rendered properly. https://bugs.python.org/issue39594 | 10 February 2020, 22:50:19 UTC |
d68e0a8 | Carl | 10 February 2020, 21:15:34 UTC | Issue3950: Fix docs for default locale used by gettext to match implementation (#18435) documentation for default locale directory Doc/library/gettext.rst changed to match gettext implementation line 63. | 10 February 2020, 21:15:34 UTC |
3c5dec6 | Christophe Nanteuil | 10 February 2020, 20:17:54 UTC | Remove redundant references in struct doc (GH-18053) | 10 February 2020, 20:17:54 UTC |
6c9974e | Wellington Pardim | 10 February 2020, 20:13:41 UTC | bpo-39369 Doc: Update mmap readline method documentation (GH-17957) * Update mmap readline method documentation Update mmap `readline` method description. The fact that the `readline` method does update the file position should not be ignored since this might give the impression for the programmer that it doesn't update it. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | 10 February 2020, 20:13:41 UTC |
ed335cf | Victor Stinner | 10 February 2020, 19:41:26 UTC | bpo-39600, IDLE: Remove duplicated font names (GH-18430) In the font configuration window, remove duplicated font names. | 10 February 2020, 19:41:26 UTC |
e00c1d0 | Brian Curtin | 10 February 2020, 17:47:17 UTC | Remove note saying patch is straightforward (#18431) While `unittest.mock.patch` is a great thing, it is not straightforward. If it were straightforward there wouldn't be such a huge amount of documentation for it, and frankly, when myself and others who I've read about often struggle to figure out what on earth `patch()` wants, coming to the docs to read that it's straightforward is not helpful. | 10 February 2020, 17:47:17 UTC |
29b3fc0 | Hugo van Kemenade | 10 February 2020, 13:26:40 UTC | bpo-39586: Deprecate distutils bdist_msi command (GH-18415) | 10 February 2020, 13:26:40 UTC |
5305cc9 | idomic | 10 February 2020, 09:48:40 UTC | bpo-39128: Added happy_eyeballs_delay, interleave to function signature (GH-18315) | 10 February 2020, 09:48:40 UTC |
3ed4d25 | Don Kirkby | 10 February 2020, 00:57:46 UTC | Grammar fix in tutorial (GH-18425) | 10 February 2020, 00:57:46 UTC |
c6dedde | sweeneyde | 09 February 2020, 08:16:43 UTC | bpo-39590: make deque.__contains__ and deque.count hold strong references (GH-18421) | 09 February 2020, 08:16:43 UTC |
7f6f7ee | Dong-hee Na | 08 February 2020, 23:45:52 UTC | bpo-39573: Use Py_TYPE() macro in ctypes.h (GH-18411) | 08 February 2020, 23:45:52 UTC |
0edc2c7 | Saiyang Gou | 08 February 2020, 00:48:06 UTC | Doc: sys.__unraisablehook__ and bytearray.hex separators are new in 3.8 (GH-17884) Minor fix in documentation: - `sys.__unraisablehook__` is new in version 3.8 - Optional `sep` and `bytes_per_sep` parameters for `bytearray.hex` is also supported in Python 3.8 (just like `bytes.hex`) | 08 February 2020, 00:48:06 UTC |
9a978dd | Fangrui Song | 07 February 2020, 23:46:29 UTC | closes bpo-39575: Change -lgcov to --coverage. (GH-18382) This allows clang to get rid of the dependency on libgcov. When linking, GCC passes -lgcov while clang passes the path to libclang_rt.profile-$arch.a | 07 February 2020, 23:46:29 UTC |
d2e1098 | Lysandros Nikolaou | 07 February 2020, 23:36:32 UTC | bpo-39579: Fix Attribute end_col_offset to point at the current node (GH-18405) | 07 February 2020, 23:36:32 UTC |
dc7a50d | Victor Stinner | 07 February 2020, 22:42:51 UTC | bpo-39350: Fix fractions for int subclasses (GH-18375) Fix regression in fractions.Fraction if the numerator and/or the denominator is an int subclass. The math.gcd() function is now used to normalize the numerator and denominator. math.gcd() always return a int type. Previously, the GCD type depended on numerator and denominator. | 07 February 2020, 22:42:51 UTC |
60ac6ed | Victor Stinner | 07 February 2020, 22:18:08 UTC | bpo-39573: Use Py_SET_SIZE() function (GH-18402) Replace direct acccess to PyVarObject.ob_size with usage of the Py_SET_SIZE() function. | 07 February 2020, 22:18:08 UTC |
de6f38d | Michael Felt | 07 February 2020, 17:56:16 UTC | bpo-39502: Fix 64-bit Python PyTime_localtime() on AIX (GH-18285) Fix time.localtime() on 64-bit AIX to support years before 1902 and after 2038. | 07 February 2020, 17:56:16 UTC |
b10dc3e | Victor Stinner | 07 February 2020, 11:05:12 UTC | bpo-39573: Add Py_SET_SIZE() function (GH-18400) Add Py_SET_SIZE() function to set the size of an object. | 07 February 2020, 11:05:12 UTC |
877ea88 | Victor Stinner | 07 February 2020, 10:22:54 UTC | bpo-38644: Add Py_EnterRecursiveCall() to python3.def (GH-18399) Add Py_EnterRecursiveCall and Py_LeaveRecursiveCall functions to python3.def. | 07 February 2020, 10:22:54 UTC |
c65b320 | Victor Stinner | 07 February 2020, 10:18:33 UTC | bpo-39573: Use Py_TYPE() macro in object.c (GH-18398) Replace direct acccess to PyVarObject.ob_size with usage of the Py_SIZE() macro. | 07 February 2020, 10:18:33 UTC |
bec4186 | Victor Stinner | 07 February 2020, 08:20:22 UTC | bpo-35134: Create Include/cpython/listobject.h (GH-18395) Move listobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/listobject.h header file. Add cpython/ header files to Makefile.pre.in and pythoncore project of PCbuild. Add _PyList_CAST() macro. | 07 February 2020, 08:20:21 UTC |
d2ec81a | Victor Stinner | 07 February 2020, 08:17:07 UTC | bpo-39573: Add Py_SET_TYPE() function (GH-18394) Add Py_SET_TYPE() function to set the type of an object. | 07 February 2020, 08:17:07 UTC |
daa9756 | Victor Stinner | 07 February 2020, 02:37:06 UTC | bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) Replace direct access to PyObject.ob_type with Py_TYPE(). | 07 February 2020, 02:37:06 UTC |
58ac700 | Victor Stinner | 07 February 2020, 02:04:21 UTC | bpo-39573: Use Py_TYPE() macro in Objects directory (GH-18392) Replace direct access to PyObject.ob_type with Py_TYPE(). | 07 February 2020, 02:04:21 UTC |
a102ed7 | Victor Stinner | 07 February 2020, 01:24:48 UTC | bpo-39573: Use Py_TYPE() macro in Python and Include directories (GH-18391) Replace direct access to PyObject.ob_type with Py_TYPE(). | 07 February 2020, 01:24:48 UTC |
38aaaaa | Jakub Stasiak | 07 February 2020, 01:15:12 UTC | bpo-39491: Mention Annotated in get_origin() docstring (GH-18379) I forgot to do it in https://github.com/python/cpython/pull/18260. | 07 February 2020, 01:15:12 UTC |
0d76d2b | Victor Stinner | 07 February 2020, 00:53:23 UTC | bpo-39573: Use Py_TYPE() in abstract.c (GH-18390) Replace direct access to PyObject.ob_type with Py_TYPE(). | 07 February 2020, 00:53:23 UTC |
f95cd19 | Victor Stinner | 07 February 2020, 00:43:25 UTC | bpo-39571: Fix clang warning on PyTypeObject typedef (GH-18385) Only define PyTypeObject type once. | 07 February 2020, 00:43:25 UTC |
c86a112 | Victor Stinner | 07 February 2020, 00:24:29 UTC | bpo-39573: Add Py_SET_REFCNT() function (GH-18389) Add a Py_SET_REFCNT() function to set the reference counter of an object. | 07 February 2020, 00:24:29 UTC |
a93c51e | Victor Stinner | 06 February 2020, 23:38:59 UTC | bpo-39573: Use Py_REFCNT() macro (GH-18388) Replace direct acccess to PyObject.ob_refcnt with usage of the Py_REFCNT() macro. | 06 February 2020, 23:38:59 UTC |
446463f | Julien Palard | 06 February 2020, 22:16:48 UTC | bpo-39534: Doc: Clarify return in finally (GH-18324) | 06 February 2020, 22:16:48 UTC |
227af8e | Victor Stinner | 06 February 2020, 22:03:01 UTC | What's New in Python 3.9: sort improved modules (GH-18383) | 06 February 2020, 22:03:01 UTC |
2844336 | Victor Stinner | 06 February 2020, 21:41:34 UTC | bpo-39542: Document limited C API changes (GH-18378) | 06 February 2020, 21:41:34 UTC |
427c84f | Sebastian Berg | 06 February 2020, 14:54:05 UTC | bpo-39274: Ensure Fraction.__bool__() returns a bool (GH-18017) Some numerator types used (specifically NumPy) decides to not return a Python boolean for the "a != b" operation. Using the equivalent call to bool() guarantees a bool return also for such types. | 06 February 2020, 14:54:05 UTC |
3f563ce | Petr Viktorin | 06 February 2020, 14:48:27 UTC | bpo-39245: Make Vectorcall C API public (GH-17893) * Add backcompat defines and move non-limited API declaration to cpython/ This partially reverts commit 2ff58a24e8a1c7e290d025d69ebaea0bbead3b8c which added PyObject_CallNoArgs to the 3.9+ stable ABI. This should not be done; there are enough other call APIs in the stable ABI to choose from. * Adjust documentation Mark all newly public functions as added in 3.9. Add a note about the 3.8 provisional names. Add notes on public API. * Put PyObject_CallNoArgs back in the limited API * Rename PyObject_FastCallDict to PyObject_VectorcallDict | 06 February 2020, 14:48:27 UTC |
d2f9667 | Brandt Bucher | 06 February 2020, 14:45:46 UTC | bpo-38823: Fix refleaks in _ast initialization error path (GH-17276) | 06 February 2020, 14:45:46 UTC |
54b4f14 | Serhiy Storchaka | 06 February 2020, 08:26:37 UTC | bpo-38149: Call sys.audit() only once per call for glob.glob(). (GH-18360) | 06 February 2020, 08:26:37 UTC |
ab0d892 | Steve Dower | 06 February 2020, 04:48:10 UTC | bpo-39555: Fix distutils test to handle _d suffix on Windows debug build (GH-18357) | 06 February 2020, 04:48:10 UTC |
3d06953 | Andy Lester | 05 February 2020, 21:09:57 UTC | bpo-39127: Make _Py_HashPointer's argument be const (GH-17690) | 05 February 2020, 21:09:57 UTC |
8b6f652 | Shantanu | 05 February 2020, 20:43:09 UTC | bpo-39559: Remove unused, undocumented argument from uuid.getnode (GH-18369) | 05 February 2020, 20:43:09 UTC |
58f4e1a | Victor Stinner | 05 February 2020, 17:24:33 UTC | bpo-39542: Declare _Py_AddToAllObjects() in pycore_object.h (GH-18368) _Py_AddToAllObjects() is used in bltinmodule.c and typeobject.c when Py_TRACE_REFS is defined. Fix Py_TRACE_REFS build. | 05 February 2020, 17:24:33 UTC |
b39fb8e | Giampaolo Rodola | 05 February 2020, 17:20:52 UTC | bpo-39488: Skip test_largefile tests if not enough disk space (GH-18261) | 05 February 2020, 17:20:52 UTC |
bf305cc | Victor Stinner | 05 February 2020, 16:39:57 UTC | Add PyInterpreterState.fs_codec.utf8 (GH-18367) Add a fast-path for UTF-8 encoding in PyUnicode_EncodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize(). Add _PyUnicode_FiniEncodings() helper function for _PyUnicode_Fini(). | 05 February 2020, 16:39:57 UTC |
0e4e735 | Victor Stinner | 05 February 2020, 14:10:39 UTC | bpo-39542: Define PyTypeObject earlier in object.h (GH-18366) Replace "struct _typeobject" with PyTypeObject in object.h. | 05 February 2020, 14:10:39 UTC |
509dd90 | Victor Stinner | 05 February 2020, 13:24:17 UTC | bpo-39542: Convert PyType_Check() to static inline function (GH-18364) Convert PyType_HasFeature(), PyType_Check() and PyType_CheckExact() macros to static inline functions. | 05 February 2020, 13:24:17 UTC |
f58bd7c | Victor Stinner | 05 February 2020, 12:12:19 UTC | bpo-39542: Make PyObject_INIT() opaque in limited C API (GH-18363) In the limited C API, PyObject_INIT() and PyObject_INIT_VAR() are now defined as aliases to PyObject_Init() and PyObject_InitVar() to make their implementation opaque. It avoids to leak implementation details in the limited C API. Exclude the following functions from the limited C API, move them from object.h to cpython/object.h: * _Py_NewReference() * _Py_ForgetReference() * _PyTraceMalloc_NewReference() * _Py_GetRefTotal() | 05 February 2020, 12:12:19 UTC |
0fa4f43 | Victor Stinner | 05 February 2020, 11:23:27 UTC | bpo-39542: Exclude trashcan from the limited C API (GH-18362) Exclude trashcan mechanism from the limited C API: it requires access to PyTypeObject and PyThreadState structure fields, whereas these structures are opaque in the limited C API. The trashcan mechanism never worked with the limited C API. Move it from object.h to cpython/object.h. | 05 February 2020, 11:23:27 UTC |
f16433a | Victor Stinner | 05 February 2020, 11:18:28 UTC | bpo-39543: Remove unused _Py_Dealloc() macro (GH-18361) The macro is defined after Py_DECREF() and so is no longer used by Py_DECREF(). Moving _Py_Dealloc() macro back from cpython/object.h to object.h would require to move a lot of definitions as well: PyTypeObject and many related types used by PyTypeObject. Keep _Py_Dealloc() as an opaque function call to avoid leaking implementation details in the limited C API (object.h): remove _Py_Dealloc() macro from cpython/object.h. | 05 February 2020, 11:18:28 UTC |
787b6d5 | schwarzichet | 05 February 2020, 08:16:58 UTC | bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) | 05 February 2020, 08:16:58 UTC |
b439a71 | Zackery Spytz | 05 February 2020, 03:13:00 UTC | bpo-39553: Delete HAVE_SXS protected code (GH-18356) https://bugs.python.org/issue39553 Automerge-Triggered-By: @zooba | 05 February 2020, 03:13:00 UTC |
cf5b109 | Jakub Stasiak | 05 February 2020, 01:10:19 UTC | bpo-39491: Merge PEP 593 (typing.Annotated) support (#18260) * bpo-39491: Merge PEP 593 (typing.Annotated) support PEP 593 has been accepted some time ago. I got a green light for merging this from Till, so I went ahead and combined the code contributed to typing_extensions[1] and the documentation from the PEP 593 text[2]. My changes were limited to: * removing code designed for typing_extensions to run on older Python versions * removing some irrelevant parts of the PEP text when copying it over as documentation and otherwise changing few small bits to better serve the purpose * changing the get_type_hints signature to match reality (parameter names) I wasn't entirely sure how to go about crediting the authors but I used my best judgment, let me know if something needs changing in this regard. [1] https://github.com/python/typing/blob/8280de241fd8c8afe727c7860254b753e383b360/typing_extensions/src_py3/typing_extensions.py [2] https://github.com/python/peps/blob/17710b879882454d55f82c2d44596e8e9f8e4bff/pep-0593.rst | 05 February 2020, 01:10:19 UTC |
89ae20b | Anthony Shaw | 05 February 2020, 00:30:19 UTC | bpo-39185 Add the d[etailed] and q[uiet] verbosity levels for msbuild (GH-17791) | 05 February 2020, 00:30:19 UTC |
95f6001 | Saiyang Gou | 05 February 2020, 00:15:00 UTC | bpo-39184: Add audit events to command execution functions in os and pty modules (GH-17824) | 05 February 2020, 00:15:00 UTC |
40e547d | Victor Stinner | 05 February 2020, 00:11:10 UTC | bpo-39542: Make _Py_NewReference() opaque in C API (GH-18346) _Py_NewReference() becomes a regular opaque function, rather than a static inline function in the C API (object.h), to better hide implementation details. Move _Py_tracemalloc_config from public pymem.h to internal pycore_pymem.h header. Make _Py_AddToAllObjects() private. | 05 February 2020, 00:11:10 UTC |
2545fa8 | Baljak | 05 February 2020, 00:10:16 UTC | Fix MinGW library generation command (GH-17917) To print the exports to stdout, the gendef command requires the option "-". Without this option, no output is generated. | 05 February 2020, 00:10:16 UTC |
cb1c074 | Philipp Gesang | 04 February 2020, 21:25:16 UTC | closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295) When called on a closed object, readinto() segfaults on account of a write to a freed buffer: ==220553== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==220553== Access not within mapped region at address 0x2A ==220553== at 0x48408A0: memmove (vg_replace_strmem.c:1272) ==220553== by 0x58DB0C: _buffered_readinto_generic (bufferedio.c:972) ==220553== by 0x58DCBA: _io__Buffered_readinto_impl (bufferedio.c:1053) ==220553== by 0x58DCBA: _io__Buffered_readinto (bufferedio.c.h:253) Reproducer: reader = open ("/dev/zero", "rb") _void = reader.read (42) reader.close () reader.readinto (bytearray (42)) ### BANG! The problem exists since 2012 when commit dc469454ec added code to free the read buffer on close(). Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com> | 04 February 2020, 21:25:16 UTC |
9538bc9 | Stefan Behnel | 04 February 2020, 15:24:30 UTC | bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit_*" symbol names in distutils (GH-18150) Make it export the correct init symbol also on Windows. https://bugs.python.org/issue39432 | 04 February 2020, 15:24:30 UTC |
850a4bd | Victor Stinner | 04 February 2020, 12:42:13 UTC | Restore PyObject_IsInstance() comment (GH-18345) Restore PyObject_IsInstance() comment explaining why only tuples of types are accepted, but not general sequence. Comment written by Guido van Rossum in commit 03290ecbf1661c0192e6abdbe00ae163af461d77 which implements isinstance(x, (A, B, ...)). The comment was lost in a PyObject_IsInstance() optimization: commit ec569b794737be248671d0dfac11b664fc930eef. Cleanup also the code. recursive_isinstance() is no longer recursive, so rename it to object_isinstance(), whereas object_isinstance() is recursive and so rename it to object_recursive_isinstance(). | 04 February 2020, 12:42:13 UTC |
4590f72 | Eddie Elizondo | 04 February 2020, 10:29:25 UTC | bpo-38076 Clear the interpreter state only after clearing module globals (GH-18039) Currently, during runtime destruction, `_PyImport_Cleanup` is clearing the interpreter state before clearing out the modules themselves. This leads to a segfault on modules that rely on the module state to clear themselves up. For example, let's take the small snippet added in the issue by @DinoV : ``` import _struct class C: def __init__(self): self.pack = _struct.pack def __del__(self): self.pack('I', -42) _struct.x = C() ``` The module `_struct` uses the module state to run `pack`. Therefore, the module state has to be alive until after the module has been cleared out to successfully run `C.__del__`. This happens at line 606, when `_PyImport_Cleanup` calls `_PyModule_Clear`. In fact, the loop that calls `_PyModule_Clear` has in its comments: > Now, if there are any modules left alive, clear their globals to minimize potential leaks. All C extension modules actually end up here, since they are kept alive in the interpreter state. That means that we can't clear the module state (which is used by C Extensions) before we run that loop. Moving `_PyInterpreterState_ClearModules` until after it, fixes the segfault in the code snippet. Finally, this updates a test in `io` to correctly assert the error that it now throws (since it now finds the io module state). The test that uses this is: `test_create_at_shutdown_without_encoding`. Given this test is now working is a proof that the module state now stays alive even when `__del__` is called at module destruction time. Thus, I didn't add a new tests for this. https://bugs.python.org/issue38076 | 04 February 2020, 10:29:25 UTC |
b6999e5 | Chris Withers | 04 February 2020, 08:05:25 UTC | add whatsnew that was missed from 31d6de5aba009914efa8f0f3c3d7da35217578eb (#18344) | 04 February 2020, 08:05:25 UTC |
5807efd | Adorilson Bezerra | 03 February 2020, 17:11:19 UTC | bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973) | 03 February 2020, 17:11:19 UTC |
49932fe | Victor Stinner | 03 February 2020, 16:55:05 UTC | bpo-39542: Simplify _Py_NewReference() (GH-18332) * Remove _Py_INC_REFTOTAL and _Py_DEC_REFTOTAL macros: modify directly _Py_RefTotal. * _Py_ForgetReference() is no longer defined if the Py_TRACE_REFS macro is not defined. * Remove _Py_NewReference() implementation from object.c: unify the two implementations in object.h inline function. * Fix Py_TRACE_REFS build: _Py_INC_TPALLOCS() macro has been removed. | 03 February 2020, 16:55:04 UTC |
24e5ad4 | Stefan Pochmann | 03 February 2020, 16:47:20 UTC | Fixes in sorting descriptions (GH-18317) Improvements in listsort.txt and a comment in sortperf.py. Automerge-Triggered-By: @csabella | 03 February 2020, 16:47:20 UTC |
4b52416 | Victor Stinner | 03 February 2020, 16:28:26 UTC | bpo-39542: Move object.h debug functions to internal C API (GH-18331) Move the following functions from the public C API to the internal C API: * _PyDebug_PrintTotalRefs(), * _Py_PrintReferenceAddresses() * _Py_PrintReferences() | 03 February 2020, 16:28:26 UTC |
c6e5c11 | Victor Stinner | 03 February 2020, 14:17:15 UTC | 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 | Inada Naoki | 03 February 2020, 10:03:34 UTC | bpo-36051: Fix compiler warning. (GH-18325) | 03 February 2020, 10:03:34 UTC |
032de73 | Steve Cirelli | 03 February 2020, 07:06:50 UTC | bpo-39450 Stripped whitespace before parsing the docstring in TestCase.shortDescription (GH-18175) | 03 February 2020, 07:06:50 UTC |
0f2f35e | Pierre Glaser | 02 February 2020, 18:55:21 UTC | 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 | Kyle Stanley | 02 February 2020, 12:49:00 UTC | bpo-39349: Add *cancel_futures* to Executor.shutdown() (GH-18057) | 02 February 2020, 12:49:00 UTC |
be8147b | Mark Dickinson | 02 February 2020, 11:37:02 UTC | Fix 5-space indentation and trailing whitespace (GH-18311) | 02 February 2020, 11:37:02 UTC |
78c7183 | Alex Henrie | 01 February 2020, 20:45:34 UTC | bpo-39496: Remove redundant checks from _sqlite/cursor.c (GH-18270) | 01 February 2020, 20:45:34 UTC |
b94737a | James Corbett | 01 February 2020, 12:31:00 UTC | fixes typos in http.client documentation (#18300) | 01 February 2020, 12:31:00 UTC |
90d9ba6 | Andrew Svetlov | 01 February 2020, 11:12:52 UTC | bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533) | 01 February 2020, 11:12:52 UTC |
abb9a44 | Brandt Bucher | 01 February 2020, 11:08:34 UTC | Update sum comment. (#18240) | 01 February 2020, 11:08:34 UTC |
4d96b46 | Victor Stinner | 01 February 2020, 01:30:25 UTC | 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 | Victor Stinner | 01 February 2020, 00:25:59 UTC | 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 | Kyle Stanley | 31 January 2020, 20:07:09 UTC | 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 | Julien Palard | 31 January 2020, 09:50:14 UTC | Doc: Fix s/pseudo random/pseudo-random/ (GH-18289) | 31 January 2020, 09:50:14 UTC |
bfdeaa3 | Zackery Spytz | 31 January 2020, 01:55:42 UTC | 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 | Hai Shi | 30 January 2020, 23:20:25 UTC | 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 | Victor Stinner | 30 January 2020, 14:47:53 UTC | 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 | Dong-hee Na | 30 January 2020, 13:23:15 UTC | bpo-39434: Improve float __floordiv__ performance and error message (GH-18147) | 30 January 2020, 13:23:15 UTC |
2a4903f | Victor Stinner | 30 January 2020, 12:09:11 UTC | 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 | Victor Stinner | 30 January 2020, 11:20:48 UTC | 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 | Victor Stinner | 30 January 2020, 11:18:32 UTC | 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 | damani42 | 30 January 2020, 10:26:22 UTC | bpo-39424: Use assertRaisesRegex instead of assertRaisesRegexp. (GH-18277) | 30 January 2020, 10:26:22 UTC |
1f44e77 | Alex Henrie | 30 January 2020, 09:39:26 UTC | bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271) | 30 January 2020, 09:39:25 UTC |
c38fd0d | Victor Stinner | 30 January 2020, 08:56:40 UTC | 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 | Victor Stinner | 30 January 2020, 08:02:49 UTC | 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 | Victor Stinner | 30 January 2020, 08:02:14 UTC | 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 | Victor Stinner | 30 January 2020, 08:01:07 UTC | 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 | Alex Henrie | 30 January 2020, 04:12:53 UTC | bpo-39494: Remove extra null terminators from kwlist vars (GH-18267) | 30 January 2020, 04:12:53 UTC |
2e6569b | Shantanu | 30 January 2020, 02:52:36 UTC | bpo-39493: Fix definition of IO.closed in typing.py (#18265) | 30 January 2020, 02:52:36 UTC |
d47d0c8 | Bonifacio de Oliveira | 30 January 2020, 02:23:50 UTC | 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 | Victor Stinner | 29 January 2020, 18:22:11 UTC | 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 | Chris Withers | 29 January 2020, 16:24:54 UTC | 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 |