Staging
v0.5.1

sort by:
Revision Author Date Message Commit Date
ff1ae3d bpo-30612: Tweak Windows registry path syntax in the docs (GH-20281) 20 October 2020, 12:01:12 UTC
f231203 bpo-38324: Fix test__locale.py Windows failures (GH-20529) Use wide-char _W_* fields of lconv structure on Windows Remove "ps_AF" from test__locale.known_numerics on Windows 20 October 2020, 11:39:52 UTC
d5d0521 md5module: Fix doc strings variable names (GH-22722) 20 October 2020, 09:10:43 UTC
5b57fa6 Doc: Add missing spaces after period for `posix_spawn` (GH-22730) 20 October 2020, 09:08:58 UTC
3185267 bpo-41491: plistlib: accept hexadecimal integer values in xml plist files (GH-22764) 20 October 2020, 07:26:33 UTC
109826c bpo-42093: Add opcode cache for LOAD_ATTR (GH-22803) 20 October 2020, 05:22:44 UTC
871934d bpo-4356: Add key function support to the bisect module (GH-20556) 20 October 2020, 05:04:01 UTC
de73d43 bpo-38912: fix close before connect callback in test_asyncio SSL tests (GH-22691) Reduces the rate at which the ENV CHANGED failure occurs in test_asyncio SSL tests (due to unclosed transport), but does not 100% resolve it. 20 October 2020, 01:18:57 UTC
23c0fb8 bpo-41586: Add pipesize parameter to subprocess & F_GETPIPE_SZ and F_SETPIPE_SZ to fcntl. (GH-21921) * Add F_SETPIPE_SZ and F_GETPIPE_SZ to fcntl module * Add pipesize parameter for subprocess.Popen class This will allow the user to control the size of the pipes. On linux the default is 64K. When a pipe is full it blocks for writing. When a pipe is empty it blocks for reading. On processes that are very fast this can lead to a lot of wasted CPU cycles. On a typical Linux system the max pipe size is 1024K which is much better. For high performance-oriented libraries such as xopen it is nice to be able to set the pipe size. The workaround without this feature is to use my_popen_process.stdout.fileno() in conjuction with fcntl and 1031 (value of F_SETPIPE_SZ) to acquire this behavior. 19 October 2020, 23:30:02 UTC
bf83822 bpo-27321 Fix email.generator.py to not replace a non-existent header. (GH-18074) This PR replaces #1977. The reason for the replacement is two-fold. The fix itself is different is that if the CTE header doesn't exist in the original message, it is inserted. This is important because the new CTE could be quoted-printable whereas the original is implicit 8bit. Also the tests are different. The test_nonascii_as_string_without_cte test in #1977 doesn't actually test the issue in that it passes without the fix. The test_nonascii_as_string_without_content_type_and_cte test is improved here, and even though it doesn't fail without the fix, it is included for completeness. Automerge-Triggered-By: @warsaw 19 October 2020, 22:49:19 UTC
1438c2a bpo-41845: Move PyObject_GenericGetDict() back into the limited API (GH22646) It was moved out of the limited API in 7d95e4072169911b228c9e42367afb5f17fd3db0. This change re-enables it from 3.10, to avoid generating invalid extension modules for earlier versions. 19 October 2020, 22:47:37 UTC
f85658a bpo-40901: Describe what "interface name" means on Windows (GH-20694) 19 October 2020, 22:30:58 UTC
3a8fdb2 bpo-41784: make PyUnicode_AsUTF8AndSize part of the limited API (GH-22252) 19 October 2020, 22:17:50 UTC
4dfb190 bpo-41217: Fix incorrect note in the asyncio.create_subprocess_shell() docs (GH-21360) On Windows, the default asyncio event loop is ProactorEventLoop (as of 3.8). 19 October 2020, 22:08:34 UTC
5456e78 bpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394) Co-authored-by: Christian Heimes <christian@python.org> 19 October 2020, 22:06:05 UTC
33242a9 bpo-41292: Fixes dead link to cx_freeze from Windows FAQ (GH-21463) 19 October 2020, 22:02:43 UTC
5d9e657 Link to the msvcrt module from the Windows FAQ (#22268) 19 October 2020, 21:46:21 UTC
fa87482 bpo-38320: Clarify that expectedFailure is satisfied by either failure or error of the test. (GH-22740) 19 October 2020, 21:27:16 UTC
96ddc58 bpo-42089: Sync with current cpython branch of importlib_metadata (GH-22775) ~~The only differences are in the test files.~~ Automerge-Triggered-By: @jaraco 19 October 2020, 21:14:21 UTC
95ad890 bpo-42084: Language aware diff headers (GH-22776) 19 October 2020, 19:13:01 UTC
93a1cca bpo-41471: Ignore invalid prefix lengths in system proxy settings on macOS (GH-22762) 19 October 2020, 18:16:21 UTC
05ee790 bpo-42051: Reject XML entity declarations in plist files (#22760) 19 October 2020, 18:13:49 UTC
985f0ab bpo-39107: Updated Tcl and Tk to 8.6.10 in Windows installer (GH-22405) 19 October 2020, 15:55:10 UTC
ebc8c38 bpo-41192: Fix some broken anchors for audit event entries (#21310) 19 October 2020, 14:52:42 UTC
b580ed1 Correct name of bytecode in change note. (GH-22723) 19 October 2020, 12:20:33 UTC
5368c2b bpo-19270: Fixed sched.scheduler.cancel to cancel correct event (GH-22729) 19 October 2020, 07:33:43 UTC
1559389 bpo-40484: Document compiler flags under AST module (GH-19885) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> 19 October 2020, 01:14:11 UTC
3c0ac18 bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910) 18 October 2020, 20:48:31 UTC
b81c833 bpo-28660: Make TextWrapper break long words on hyphens (GH-22721) 18 October 2020, 17:01:15 UTC
67f0487 3.9 whatsnew: fix bpo issue for AST change (GH-22742) 18 October 2020, 15:39:26 UTC
1bcaa81 bpo-20184: Convert termios to Argument Clinic. (GH-22693) 18 October 2020, 14:54:06 UTC
c304c9a bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) 18 October 2020, 14:49:48 UTC
a0c603c bpo-38252: Use 8-byte step to detect ASCII sequence in 64bit Windows build (GH-16334) 18 October 2020, 14:48:38 UTC
3635388 bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940) 17 October 2020, 20:38:21 UTC
975d10a [doc] Add mentions of PEP 613 (TypeAlias) to docs (GH-22733) 17 October 2020, 02:34:01 UTC
a22a19f bpo-40341: Remove some "discouraged solutions" in Doc/faq/programming.rst (GH-22726) 16 October 2020, 18:44:17 UTC
1dd6d95 closes bpo-42030: Remove legacy AIX dynload support (GH-22717) Since c19c5a6, AIX builds have defaulted to using dynload_shlib over dynload_aix when dlopen is available. This function has been available since AIX 4.3, which went out of support in 2003, the same year the previously referenced commit was made. It has been nearly 20 years since a version of AIX has been supported which has not used dynload_shlib so there's no reason to keep this legacy code around. 16 October 2020, 18:03:28 UTC
e9959c7 bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) 16 October 2020, 14:14:07 UTC
c9f696c bpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513) * Move the codecs' (un)register operation to testcases. * Remove _codecs._forget_codec() and _PyCodec_Forget() 16 October 2020, 08:34:15 UTC
cf693e5 Document that `test.support.bytecode_helper` is new in 3.9 (GH-22618) 15 October 2020, 19:06:23 UTC
e6b8c52 bpo-1635741: Add a global module state to unicodedata (GH-22712) Prepare unicodedata to add a state per module: start with a global "module" state, pass it to subfunctions which access &UCD_Type. This change also prepares the conversion of the UCD_Type static type to a heap type. 15 October 2020, 14:22:19 UTC
644e942 bpo-42021: Fix possible ref leaks during _sqlite3 module init (GH-22673) 15 October 2020, 12:20:15 UTC
b67cbbd Minor clarification (GH-22708) 15 October 2020, 06:41:55 UTC
2d2af32 bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466) When running in a non-UTF-8 locale, if an error occurs while importing a native Python module (say because a dependent share library is missing), the error message string returned may contain non-ASCII code points causing a UnicodeDecodeError. PyUnicode_DecodeFSDefault is used for buffers which may contain filesystem paths. For consistency with os.strerror(), PyUnicode_DecodeLocale is used for buffers which contain system error messages. While the shortname parameter is always encoded in ASCII according to PEP 489, it is left decoded using PyUnicode_FromString to minimize the changes and since it should not affect the decoding (albeit _potentially_ slower). In dynload_hpux, since the error buffer contains a message generated from a static ASCII string and the module filesystem path, PyUnicode_DecodeFSDefault is used instead of PyUnicode_DecodeLocale as is used elsewhere. * bpo-41894: Fix bugs in dynload error msg handling For both dynload_aix and dynload_hpux, properly handle the possibility that decoding strings may return NULL and when such an error happens, properly decrement any previously decoded strings and return early. In addition, in dynload_aix, ensure that we pass the decoded string *object* pathname_ob to PyErr_SetImportError instead of the original pathname buffer. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 15 October 2020, 01:53:27 UTC
c13b847 bpo-41984: GC track all user classes (GH-22701) 15 October 2020, 01:44:07 UTC
302b616 Update timings for the final release (GH-22697) 14 October 2020, 17:04:04 UTC
c5b049b bpo-39337: encodings.normalize_encoding() now ignores non-ASCII characters (GH-22219) 14 October 2020, 15:43:31 UTC
b4d8953 bpo-41876: Overload __repr__ for tkinter Font objects (GH-22450) 14 October 2020, 10:02:51 UTC
0cafcd3 closes bpo-42029: Remove dynload_dl (GH-22687) All references to this dynamic loading method were removed in b9949db, when support for this method was dropped, but the implementation code was not dropped (seemingly in oversight). 14 October 2020, 01:49:24 UTC
6a48518 bpo-41939: always enable test_site.test_license_exists_at_url (GH-22688) 14 October 2020, 01:38:56 UTC
f2bd04f Improve recipe readability (GH-22685) 13 October 2020, 23:41:26 UTC
7992579 bpo-40422: Move _Py_closerange to fileutils.c (GH-22680) This API is relatively lightweight and organizationally, given that it's used by multiple modules, it makes sense to move it to fileutils. Requires making sure that _posixsubprocess is compiled with the appropriate Py_BUIILD_CORE_BUILTIN macro. 13 October 2020, 20:04:44 UTC
8b2ff4c Add recipe for a version of random() with a larger population (GH-22664) 13 October 2020, 18:54:21 UTC
cfb0f57 bpo-41756: Export PyGen_Send and wrap it in if-defs (#22677) 13 October 2020, 17:26:51 UTC
66c28f5 bpo-41995: Fix null ptr deref in tracemalloc_copy_trace() (GH-22660) Fix a null pointer dereference in tracemalloc_copy_trace() of _tracemalloc. 13 October 2020, 06:46:31 UTC
64eb259 bpo-40422: Move _Py_*_SUPPRESS_IPH bits into _Py_closerange (GH-22672) This suppression is no longer needed in os_closerange_impl, as it just invokes the internal _Py_closerange implementation. On the other hand, consumers of _Py_closerange may not have any other reason to suppress invalid parameter issues, so narrow the scope to here. 12 October 2020, 23:53:16 UTC
ba06a70 Fix typo in "Context manager types" section in typing.rst (GH-22676) Fix typo in the "Context manager types" section in `typing.rst`. Automerge-Triggered-By: @gvanrossum 12 October 2020, 23:34:33 UTC
04b8631 bpo-42015: Reorder dereferencing calls in meth_dealloc, to make sure m_self is kept alive long enough (GH-22670) 12 October 2020, 21:06:19 UTC
24a54c0 Delete PyGen_Send (#22663) 12 October 2020, 19:10:42 UTC
abe244c [doc] Fix typo in the graphlib docs (GH-22661) Automerge-Triggered-By: @pablogsal 12 October 2020, 14:33:34 UTC
8adf8d1 [doc] Remove mention of async and await as soft keywords (GH-22144) 12 October 2020, 13:52:30 UTC
13ff396 bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) The test now waits until all threads complete to avoid leaking running threads. Also, use regular threads rather than daemon threads. 11 October 2020, 22:37:20 UTC
47ecfd8 bpo-41971: Fix test failure in test.test_tools.test_c_analyzer when mutating global state (GH-22652) 11 October 2020, 20:34:51 UTC
1800c60 bpo-40423: Optimization: use close_range(2) if available (GH-22651) close_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old loop over fd range in order of most efficient to least. [note that this version does check for ENOSYS, but currently ignores all other errors] Automerge-Triggered-By: @pablogsal 11 October 2020, 20:18:53 UTC
c230fde bpo-40422: create a common _Py_closerange API (GH-19754) Such an API can be used both for os.closerange and subprocess. For the latter, this yields potential improvement for platforms that have fdwalk but wouldn't have used it there. This will prove even more beneficial later for platforms that have close_range(2), as the new API will prefer that over all else if it's available. The new API is structured to look more like close_range(2), closing from [start, end] rather than the [low, high) of os.closerange(). Automerge-Triggered-By: @gpshead 11 October 2020, 18:54:11 UTC
d5752aa Fix .. code-block :: directives in decimal.rst (GH-22571) 11 October 2020, 18:26:50 UTC
10c98db Fix typo in listobject.h (GH-22588) 11 October 2020, 18:21:51 UTC
8197a93 Fix typo (GH-22582) /af/of/s Automerge-Triggered-By: @Mariatta 11 October 2020, 18:13:43 UTC
8287aad bpo-41993: Fix possible issues in remove_module() (GH-22631) * PyMapping_HasKey() is not safe because it silences all exceptions and can return incorrect result. * Informative exceptions from PyMapping_DelItem() are overridden with RuntimeError and the original exception raised before calling remove_module() is lost. * There is a race condition between PyMapping_HasKey() and PyMapping_DelItem(). 11 October 2020, 13:51:07 UTC
fa1d83d bpo-42002: Clean up initialization of the sys module. (GH-22642) Makes the code clearer and make errors handling more correct. 11 October 2020, 12:30:43 UTC
0ff8a3b Fix typo in typing.rst (GH-22625) 11 October 2020, 06:10:21 UTC
22220ae bpo-38605: bump the magic number for 'annotations' future (#22630) 10 October 2020, 22:19:46 UTC
98c4433 bpo-41991: Remove _PyObject_HasAttrId (GH-22629) It can silence arbitrary exceptions. 10 October 2020, 19:23:42 UTC
02a1603 bpo-42000: Cleanup the AST related C-code (GH-22641) - Use the proper asdl sequence when creating empty arguments - Remove reduntant casts (thanks to new typed asdl_sequences) - Remove MarshalPrototypeVisitor and some utilities from asdl generator - Fix the header of `Python/ast.c` (kept from pgen times) Automerge-Triggered-By: @pablogsal 10 October 2020, 17:14:59 UTC
637a09b bpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to limited API (GH-22621) 10 October 2020, 14:09:45 UTC
a427593 Fix incorrect parameter name (GH-22613) Automerge-Triggered-By: @Mariatta 10 October 2020, 02:38:43 UTC
037245c bpo-41756: Add PyIter_Send function (#22443) 10 October 2020, 00:15:15 UTC
9975cc5 bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for "fildes". (GH-22620) 09 October 2020, 20:00:45 UTC
b2c0a43 bpo-39481: Fix duplicate SimpleQueue type in test_genericalias.py (GH-22619) There are two different `SimpleQueue` types imported (from `multiprocessing.queues` and `queue`) in `Lib/test/test_genericalias.py`, the second one shadowing the first one, making the first one not actually tested. Fix by using different names. Automerge-Triggered-By: @gvanrossum 09 October 2020, 20:00:15 UTC
eb38c6b bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355) 09 October 2020, 19:57:34 UTC
f25323a bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354) 09 October 2020, 18:45:46 UTC
e2ec0b2 bpo-41974: Remove complex.__float__, complex.__floordiv__, etc (GH-22593) Remove complex special methods __int__, __float__, __floordiv__, __mod__, __divmod__, __rfloordiv__, __rmod__ and __rdivmod__ which always raised a TypeError. 09 October 2020, 11:14:37 UTC
48f305f bpo-41979: Accept star-unpacking on with-item targets (GH-22611) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 09 October 2020, 09:56:48 UTC
666f583 Updated README for python 3.10 (GH-22605) Updated python version and link to the release schedule 09 October 2020, 09:32:15 UTC
77f0a23 Fix the attribute names in the docstring of GenericAlias (GH-22594) 08 October 2020, 21:38:36 UTC
3f34237 bpo-39337: Add a test case for normalizing of codec names (GH-19069) 08 October 2020, 19:20:57 UTC
bfe6e03 bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960) 08 October 2020, 18:40:27 UTC
27ac19c bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598) 08 October 2020, 18:31:19 UTC
aecf036 bpo-41306: Allow scale value to not be rounded (GH-21715) This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed). Going into more detail for those who want it, the Tk change was made in [commit 591f68c](https://github.com/tcltk/tk/commit/591f68cb382525b72664c6fecaab87742b6cc87a) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](https://github.com/tcltk/tk/blob/591f68cb382525b72664c6fecaab87742b6cc87a/generic/tkScale.c#L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`). Automerge-Triggered-By: @pablogsal 08 October 2020, 13:30:13 UTC
4a9f82f bpo-41970: Avoid test failure in test_lib2to3 if the module is already imported (GH-22595) … Automerge-Triggered-By: @pablogsal 08 October 2020, 13:24:28 UTC
35f041d bpo-41376: Fix the documentation of `site.getusersitepackages()` (GH-21602) `site.getusersitepackages()` returns the location of the user-specific site-packages directory even when the user-specific site-packages is disabled. ``` $ python -s -m site sys.path = [ '/home/user/conda/lib/python37.zip', '/home/user/conda/lib/python3.7', '/home/user/conda/lib/python3.7/lib-dynload', '/home/user/conda/lib/python3.7/site-packages', ] USER_BASE: '/home/user/.local' (exists) USER_SITE: '/home/user/.local/lib/python3.7/site-packages' (doesn't exist) ENABLE_USER_SITE: False ``` It was not practical to prevent the function from returning None if user-specific site-packages are disabled, since there are other uses of the function which are relying on this behaviour (e.g. `python -m site`). 08 October 2020, 06:37:46 UTC
4e0ce82 Revert "bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)" (GH-22584) This reverts commit 58a7da9e125422323f79c4ee95ac5549989d8162. 07 October 2020, 23:43:44 UTC
4f3c250 bpo-41923: PEP 613: Add TypeAlias to typing module (#22532) This special marker annotation is intended to help in distinguishing proper PEP 484-compliant type aliases from regular top-level variable assignments. 07 October 2020, 21:44:31 UTC
f90dc36 Fix comment about PyObject_IsTrue. (GH-22343) The `for` statement doesn't use a condition and this function, the `while` statement does. 07 October 2020, 14:12:52 UTC
044a104 bpo-38605: Make 'from __future__ import annotations' the default (GH-20434) The hard part was making all the tests pass; there are some subtle issues here, because apparently the future import wasn't tested very thoroughly in previous Python versions. For example, `inspect.signature()` returned type objects normally (except for forward references), but strings with the future import. We changed it to try and return type objects by calling `typing.get_type_hints()`, but fall back on returning strings if that function fails (which it may do if there are future references in the annotations that require passing in a specific namespace to resolve). 06 October 2020, 20:03:02 UTC
bef7d29 bpo-41905: Add abc.update_abstractmethods() (GH-22485) This function recomputes `cls.__abstractmethods__`. Also update `@dataclass` to use it. 06 October 2020, 17:40:50 UTC
a8bf44d bpo-41944: No longer call eval() on content received via HTTP in the UnicodeNames tests (GH-22575) Similarly to GH-22566, those tests called eval() on content received via HTTP in test_named_sequences_full. This likely isn't exploitable because unicodedata.lookup(seqname) is called before self.checkletter(seqname, None) - thus any string which isn't a valid unicode character name wouldn't ever reach the checkletter method. Still, it's probably better to be safe than sorry. 06 October 2020, 14:21:56 UTC
2ef5caa bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566) 06 October 2020, 12:14:51 UTC
91e3339 Post 3.10.0a1 05 October 2020, 20:16:35 UTC
8e9afaf Python 3.10.0a1 05 October 2020, 17:30:18 UTC
back to top