diff --git a/Include/patchlevel.h b/Include/patchlevel.h index ba9e134e8dd..4f91c9b9016 100644 --- a/Include/patchlevel.h +++ b/Include/patchlevel.h @@ -20,10 +20,10 @@ #define PY_MINOR_VERSION 9 #define PY_MICRO_VERSION 0 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA -#define PY_RELEASE_SERIAL 5 +#define PY_RELEASE_SERIAL 6 /* Version as a string */ -#define PY_VERSION "3.9.0a5+" +#define PY_VERSION "3.9.0a6" /*--end constants--*/ /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2. diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py index 11b48fd2657..8aca5c0cb88 100644 --- a/Lib/pydoc_data/topics.py +++ b/Lib/pydoc_data/topics.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Autogenerated by Sphinx on Mon Mar 23 17:18:04 2020 +# Autogenerated by Sphinx on Mon Apr 27 22:35:16 2020 topics = {'assert': 'The "assert" statement\n' '**********************\n' '\n' @@ -1877,9 +1877,9 @@ topics = {'assert': 'The "assert" statement\n' ' value is false. A counter-intuitive implication is that ' 'not-a-number\n' ' values are not equal to themselves. For example, if "x =\n' - ' float(\'NaN\')", "3 < x", "x < 3", "x == x", "x != x" are ' - 'all false.\n' - ' This behavior is compliant with IEEE 754.\n' + ' float(\'NaN\')", "3 < x", "x < 3" and "x == x" are all ' + 'false, while "x\n' + ' != x" is true. This behavior is compliant with IEEE 754.\n' '\n' '* "None" and "NotImplemented" are singletons. **PEP 8** ' 'advises\n' @@ -3150,7 +3150,7 @@ topics = {'assert': 'The "assert" statement\n' '\n' 'When a description of an arithmetic operator below uses the ' 'phrase\n' - '“the numeric arguments are converted to a common type,” this ' + '“the numeric arguments are converted to a common type”, this ' 'means\n' 'that the operator implementation for built-in types works as ' 'follows:\n' @@ -3414,7 +3414,7 @@ topics = {'assert': 'The "assert" statement\n' '\n' ' Changed in version 3.7: "object.__format__(x, \'\')" is ' 'now\n' - ' equivalent to "str(x)" rather than "format(str(self), ' + ' equivalent to "str(x)" rather than "format(str(x), ' '\'\')".\n' '\n' 'object.__lt__(self, other)\n' @@ -5962,19 +5962,18 @@ topics = {'assert': 'The "assert" statement\n' 'convention.\n' '\n' '"__*__"\n' - ' System-defined names. These names are defined by the ' - 'interpreter\n' - ' and its implementation (including the standard library). ' - 'Current\n' - ' system names are discussed in the Special method names ' - 'section and\n' - ' elsewhere. More will likely be defined in future versions ' - 'of\n' - ' Python. *Any* use of "__*__" names, in any context, that ' - 'does not\n' - ' follow explicitly documented use, is subject to breakage ' - 'without\n' - ' warning.\n' + ' System-defined names, informally known as “dunder” names. ' + 'These\n' + ' names are defined by the interpreter and its ' + 'implementation\n' + ' (including the standard library). Current system names are\n' + ' discussed in the Special method names section and ' + 'elsewhere. More\n' + ' will likely be defined in future versions of Python. *Any* ' + 'use of\n' + ' "__*__" names, in any context, that does not follow ' + 'explicitly\n' + ' documented use, is subject to breakage without warning.\n' '\n' '"__*"\n' ' Class-private names. Names in this category, when used ' @@ -6110,19 +6109,19 @@ topics = {'assert': 'The "assert" statement\n' 'convention.\n' '\n' '"__*__"\n' - ' System-defined names. These names are defined by the ' - 'interpreter\n' - ' and its implementation (including the standard library). ' - 'Current\n' - ' system names are discussed in the Special method names ' - 'section and\n' - ' elsewhere. More will likely be defined in future versions ' - 'of\n' - ' Python. *Any* use of "__*__" names, in any context, that ' - 'does not\n' - ' follow explicitly documented use, is subject to breakage ' - 'without\n' - ' warning.\n' + ' System-defined names, informally known as “dunder” names. ' + 'These\n' + ' names are defined by the interpreter and its ' + 'implementation\n' + ' (including the standard library). Current system names ' + 'are\n' + ' discussed in the Special method names section and ' + 'elsewhere. More\n' + ' will likely be defined in future versions of Python. ' + '*Any* use of\n' + ' "__*__" names, in any context, that does not follow ' + 'explicitly\n' + ' documented use, is subject to breakage without warning.\n' '\n' '"__*"\n' ' Class-private names. Names in this category, when used ' @@ -7007,7 +7006,7 @@ topics = {'assert': 'The "assert" statement\n' 'program is represented by objects or by relations between ' 'objects. (In\n' 'a sense, and in conformance to Von Neumann’s model of a “stored\n' - 'program computer,” code is also represented by objects.)\n' + 'program computer”, code is also represented by objects.)\n' '\n' 'Every object has an identity, a type and a value. An object’s\n' '*identity* never changes once it has been created; you may think ' @@ -8168,7 +8167,7 @@ topics = {'assert': 'The "assert" statement\n' '\n' ' Changed in version 3.7: "object.__format__(x, \'\')" is ' 'now\n' - ' equivalent to "str(x)" rather than "format(str(self), ' + ' equivalent to "str(x)" rather than "format(str(x), ' '\'\')".\n' '\n' 'object.__lt__(self, other)\n' @@ -9915,6 +9914,35 @@ topics = {'assert': 'The "assert" statement\n' '*start* and\n' ' *end* are interpreted as in slice notation.\n' '\n' + 'str.removeprefix(prefix, /)\n' + '\n' + ' If the string starts with the *prefix* string, return\n' + ' "string[len(prefix):]". Otherwise, return a copy of the ' + 'original\n' + ' string:\n' + '\n' + " >>> 'TestHook'.removeprefix('Test')\n" + " 'Hook'\n" + " >>> 'BaseTestCase'.removeprefix('Test')\n" + " 'BaseTestCase'\n" + '\n' + ' New in version 3.9.\n' + '\n' + 'str.removesuffix(suffix, /)\n' + '\n' + ' If the string ends with the *suffix* string and that ' + '*suffix* is\n' + ' not empty, return "string[:-len(suffix)]". Otherwise, ' + 'return a copy\n' + ' of the original string:\n' + '\n' + " >>> 'MiscTests'.removesuffix('Tests')\n" + " 'Misc'\n" + " >>> 'TmpDirMixin'.removesuffix('Tests')\n" + " 'TmpDirMixin'\n" + '\n' + ' New in version 3.9.\n' + '\n' 'str.encode(encoding="utf-8", errors="strict")\n' '\n' ' Return an encoded version of the string as a bytes ' @@ -10297,6 +10325,16 @@ topics = {'assert': 'The "assert" statement\n' " >>> 'www.example.com'.lstrip('cmowz.')\n" " 'example.com'\n" '\n' + ' See "str.removeprefix()" for a method that will remove ' + 'a single\n' + ' prefix string rather than all of a set of characters. ' + 'For example:\n' + '\n' + " >>> 'Arthur: three!'.lstrip('Arthur: ')\n" + " 'ee!'\n" + " >>> 'Arthur: three!'.removeprefix('Arthur: ')\n" + " 'three!'\n" + '\n' 'static str.maketrans(x[, y[, z]])\n' '\n' ' This static method returns a translation table usable ' @@ -10410,6 +10448,16 @@ topics = {'assert': 'The "assert" statement\n' " >>> 'mississippi'.rstrip('ipz')\n" " 'mississ'\n" '\n' + ' See "str.removesuffix()" for a method that will remove ' + 'a single\n' + ' suffix string rather than all of a set of characters. ' + 'For example:\n' + '\n' + " >>> 'Monty Python'.rstrip(' Python')\n" + " 'M'\n" + " >>> 'Monty Python'.removesuffix(' Python')\n" + " 'Monty'\n" + '\n' 'str.split(sep=None, maxsplit=-1)\n' '\n' ' Return a list of the words in the string, using *sep* ' @@ -11483,6 +11531,16 @@ topics = {'assert': 'The "assert" statement\n' ' then they can be used interchangeably to index the same\n' ' dictionary entry.\n' '\n' + ' Dictionaries preserve insertion order, meaning that keys will ' + 'be\n' + ' produced in the same order they were added sequentially over ' + 'the\n' + ' dictionary. Replacing an existing key does not change the ' + 'order,\n' + ' however removing a key and re-inserting it will add it to ' + 'the\n' + ' end instead of keeping its old place.\n' + '\n' ' Dictionaries are mutable; they can be created by the "{...}"\n' ' notation (see section Dictionary displays).\n' '\n' @@ -11491,6 +11549,13 @@ topics = {'assert': 'The "assert" statement\n' '"collections"\n' ' module.\n' '\n' + ' Changed in version 3.7: Dictionaries did not preserve ' + 'insertion\n' + ' order in versions of Python before 3.6. In CPython 3.6,\n' + ' insertion order was preserved, but it was considered an\n' + ' implementation detail at that time rather than a language\n' + ' guarantee.\n' + '\n' 'Callable types\n' ' These are the types to which the function call operation (see\n' ' section Calls) can be applied:\n' diff --git a/Misc/NEWS.d/3.9.0a6.rst b/Misc/NEWS.d/3.9.0a6.rst new file mode 100644 index 00000000000..af2cc7c3e97 --- /dev/null +++ b/Misc/NEWS.d/3.9.0a6.rst @@ -0,0 +1,1211 @@ +.. bpo: 40121 +.. date: 2020-03-30-23-16-25 +.. nonce: p2LIio +.. release date: 2020-04-27 +.. section: Security + +Fixes audit events raised on creating a new socket. + +.. + +.. bpo: 39073 +.. date: 2020-03-15-01-28-36 +.. nonce: 6Szd3i +.. section: Security + +Disallow CR or LF in email.headerregistry.Address arguments to guard against +header injection attacks. + +.. + +.. bpo: 39503 +.. date: 2020-01-30-16-15-29 +.. nonce: B299Yq +.. section: Security + +CVE-2020-8492: The :class:`~urllib.request.AbstractBasicAuthHandler` class +of the :mod:`urllib.request` module uses an inefficient regular expression +which can be exploited by an attacker to cause a denial of service. Fix the +regex to prevent the catastrophic backtracking. Vulnerability reported by +Ben Caller and Matt Schwager. + +.. + +.. bpo: 40313 +.. date: 2020-04-20-23-58-35 +.. nonce: USVRW8 +.. section: Core and Builtins + +Improve the performance of bytes.hex(). + +.. + +.. bpo: 40334 +.. date: 2020-04-20-14-06-19 +.. nonce: CTLGEp +.. section: Core and Builtins + +Switch to a new parser, based on PEG. For more details see PEP 617. To +temporarily switch back to the old parser, use ``-X oldparser`` or +``PYTHONOLDPARSER=1``. In Python 3.10 we will remove the old parser +completely, including the ``parser`` module (already deprecated) and +anything that depends on it. + +.. + +.. bpo: 40267 +.. date: 2020-04-14-18-54-50 +.. nonce: Q2N6Bw +.. section: Core and Builtins + +Fix the tokenizer to display the correct error message, when there is a +SyntaxError on the last input character and no newline follows. It used to +be `unexpected EOF while parsing`, while it should be `invalid syntax`. + +.. + +.. bpo: 39522 +.. date: 2020-04-14-18-47-00 +.. nonce: uVeIV_ +.. section: Core and Builtins + +Correctly unparse explicit ``u`` prefix for strings when postponed +evaluation for annotations activated. Patch by Batuhan Taskaya. + +.. + +.. bpo: 40246 +.. date: 2020-04-11-17-52-03 +.. nonce: vXPze5 +.. section: Core and Builtins + +Report a specialized error message, `invalid string prefix`, when the +tokenizer encounters a string with an invalid prefix. + +.. + +.. bpo: 40082 +.. date: 2020-04-08-22-33-24 +.. nonce: WI3-lu +.. section: Core and Builtins + +Fix the signal handler: it now always uses the main interpreter, rather than +trying to get the current Python thread state. + +.. + +.. bpo: 37388 +.. date: 2020-04-07-15-44-29 +.. nonce: stlxBq +.. section: Core and Builtins + +str.encode() and str.decode() no longer check the encoding and errors in +development mode or in debug mode during Python finalization. The codecs +machinery can no longer work on very late calls to str.encode() and +str.decode(). + +.. + +.. bpo: 40077 +.. date: 2020-04-04-12-43-19 +.. nonce: m15TTX +.. section: Core and Builtins + +Fix possible refleaks in :mod:`_json`, memo of PyScannerObject should be +traversed. + +.. + +.. bpo: 37207 +.. date: 2020-04-02-00-25-19 +.. nonce: ZTPmKJ +.. section: Core and Builtins + +Speed up calls to ``dict()`` by using the :pep:`590` ``vectorcall`` calling +convention. + +.. + +.. bpo: 40141 +.. date: 2020-04-01-21-50-37 +.. nonce: 8fCRVj +.. section: Core and Builtins + +Add column and line information to ``ast.keyword`` nodes. Patch by Pablo +Galindo. + +.. + +.. bpo: 1635741 +.. date: 2020-04-01-00-08-18 +.. nonce: bhGWam +.. section: Core and Builtins + +Port :mod:`resource` to multiphase initialization (:pep:`489`). + +.. + +.. bpo: 1635741 +.. date: 2020-03-31-22-15-04 +.. nonce: 8Ir1a0 +.. section: Core and Builtins + +Port :mod:`math` to multiphase initialization (:pep:`489`). + +.. + +.. bpo: 1635741 +.. date: 2020-03-31-21-12-27 +.. nonce: S2nkF3 +.. section: Core and Builtins + +Port _uuid module to multiphase initialization (:pep:`489`). + +.. + +.. bpo: 40077 +.. date: 2020-03-27-01-11-08 +.. nonce: wT002V +.. section: Core and Builtins + +Convert json module to use :c:func:`PyType_FromSpec`. + +.. + +.. bpo: 40067 +.. date: 2020-03-25-20-34-01 +.. nonce: 0bFda2 +.. section: Core and Builtins + +Improve the error message for multiple star expressions in an assignment. +Patch by Furkan Onder + +.. + +.. bpo: 1635741 +.. date: 2020-03-24-22-26-26 +.. nonce: AB38ot +.. section: Core and Builtins + +Port _functools module to multiphase initialization (PEP 489). Patch by +Paulo Henrique Silva. + +.. + +.. bpo: 1635741 +.. date: 2020-03-24-22-17-12 +.. nonce: jWaMRV +.. section: Core and Builtins + +Port operator module to multiphase initialization (PEP 489). Patch by Paulo +Henrique Silva. + +.. + +.. bpo: 20526 +.. date: 2020-03-23-18-08-34 +.. nonce: NHNZIv +.. section: Core and Builtins + +Fix :c:func:`PyThreadState_Clear()`. ``PyThreadState.frame`` is a borrowed +reference, not a strong reference: ``PyThreadState_Clear()`` must not call +``Py_CLEAR(tstate->frame)``. + +.. + +.. bpo: 1635741 +.. date: 2020-03-22-01-01-41 +.. nonce: gR7Igp +.. section: Core and Builtins + +Port time module to multiphase initialization (:pep:`489`). Patch by Paulo +Henrique Silva. + +.. + +.. bpo: 1635741 +.. date: 2020-03-20-13-42-35 +.. nonce: bhIu5M +.. section: Core and Builtins + +Port _weakref extension module to multiphase initialization (:pep:`489`). + +.. + +.. bpo: 40020 +.. date: 2020-03-19-21-53-41 +.. nonce: n-26G7 +.. section: Core and Builtins + +Fix a leak and subsequent crash in parsetok.c caused by realloc misuse on a +rare codepath. + +.. + +.. bpo: 39939 +.. date: 2020-03-11-19-17-36 +.. nonce: NwCnAM +.. section: Core and Builtins + +Added str.removeprefix and str.removesuffix methods and corresponding bytes, +bytearray, and collections.UserString methods to remove affixes from a +string if present. See :pep:`616` for a full description. Patch by Dennis +Sweeney. + +.. + +.. bpo: 39481 +.. date: 2020-01-28-17-19-18 +.. nonce: rqSeGl +.. section: Core and Builtins + +Implement PEP 585. This supports list[int], tuple[str, ...] etc. + +.. + +.. bpo: 32894 +.. date: 2019-12-01-21-36-49 +.. nonce: 5g_UQr +.. section: Core and Builtins + +Support unparsing of infinity numbers in postponed annotations. Patch by +Batuhan Taşkaya. + +.. + +.. bpo: 37207 +.. date: 2019-06-09-10-54-31 +.. nonce: bLjgLS +.. section: Core and Builtins + +Speed up calls to ``list()`` by using the :pep:`590` ``vectorcall`` calling +convention. Patch by Mark Shannon. + +.. + +.. bpo: 40398 +.. date: 2020-04-26-22-25-36 +.. nonce: OdXnR3 +.. section: Library + +:func:`typing.get_args` now always returns an empty tuple for special +generic aliases. + +.. + +.. bpo: 40396 +.. date: 2020-04-26-19-07-40 +.. nonce: Fn-is1 +.. section: Library + +Functions :func:`typing.get_origin`, :func:`typing.get_args` and +:func:`typing.get_type_hints` support now generic aliases like +``list[int]``. + +.. + +.. bpo: 38061 +.. date: 2020-04-24-01-55-00 +.. nonce: XmULB3 +.. section: Library + +Optimize the :mod:`subprocess` module on FreeBSD using ``closefrom()``. A +single ``close(fd)`` syscall is cheap, but when ``sysconf(_SC_OPEN_MAX)`` is +high, the loop calling ``close(fd)`` on each file descriptor can take +several milliseconds. + +The workaround on FreeBSD to improve performance was to load and mount the +fdescfs kernel module, but this is not enabled by default. + +Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans (kevans) +and Kubilay Kocak (koobs): +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274 + +.. + +.. bpo: 38061 +.. date: 2020-04-24-01-27-08 +.. nonce: cdlkMz +.. section: Library + +On FreeBSD, ``os.closerange(fd_low, fd_high)`` now calls +``closefrom(fd_low)`` if *fd_high* is greater than or equal to +``sysconf(_SC_OPEN_MAX)``. + +Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans (kevans) +and Kubilay Kocak (koobs): +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274 + +.. + +.. bpo: 40360 +.. date: 2020-04-22-20-55-17 +.. nonce: Er8sv- +.. section: Library + +The :mod:`lib2to3` module is pending deprecation due to :pep:`617`. + +.. + +.. bpo: 40138 +.. date: 2020-04-22-00-05-10 +.. nonce: i_oGqa +.. section: Library + +Fix the Windows implementation of :func:`os.waitpid` for exit code larger +than ``INT_MAX >> 8``. The exit status is now interpreted as an unsigned +number. + +.. + +.. bpo: 39942 +.. date: 2020-04-20-20-16-02 +.. nonce: NvGnTc +.. section: Library + +Set "__main__" as the default module name when "__name__" is missing in +:class:`typing.TypeVar`. Patch by Weipeng Hong. + +.. + +.. bpo: 40275 +.. date: 2020-04-20-19-06-55 +.. nonce: 9UcN2g +.. section: Library + +The :mod:`logging` package is now imported lazily in :mod:`unittest` only +when the :meth:`~unittest.TestCase.assertLogs` assertion is used. + +.. + +.. bpo: 40275 +.. date: 2020-04-20-18-50-25 +.. nonce: Ofk6J8 +.. section: Library + +The :mod:`asyncio` package is now imported lazily in :mod:`unittest` only +when the :class:`~unittest.IsolatedAsyncioTestCase` class is used. + +.. + +.. bpo: 40330 +.. date: 2020-04-19-17-31-29 +.. nonce: DGjoIS +.. section: Library + +In :meth:`ShareableList.__setitem__`, check the size of a new string item +after encoding it to utf-8, not before. + +.. + +.. bpo: 40148 +.. date: 2020-04-19-14-16-43 +.. nonce: pDZR6V +.. section: Library + +Added :meth:`pathlib.Path.with_stem()` to create a new Path with the stem +replaced. + +.. + +.. bpo: 40325 +.. date: 2020-04-18-19-40-00 +.. nonce: KWSvix +.. section: Library + +Deprecated support for set objects in random.sample(). + +.. + +.. bpo: 40257 +.. date: 2020-04-18-10-52-15 +.. nonce: lv4WTq +.. section: Library + +Improved help for the :mod:`typing` module. Docstrings are now shown for all +special forms and special generic aliases (like ``Union`` and ``List``). +Using ``help()`` with generic alias like ``List[int]`` will show the help +for the correspondent concrete type (``list`` in this case). + +.. + +.. bpo: 40257 +.. date: 2020-04-15-19-34-11 +.. nonce: ux8FUr +.. section: Library + +func:`inspect.getdoc` no longer returns docstring inherited from the type of +the object or from parent class if it is a class if it is not defined in the +object itself. In :mod:`pydoc` the documentation string is now shown not +only for class, function, method etc, but for any object that has its own +``__doc__`` attribute. + +.. + +.. bpo: 40287 +.. date: 2020-04-15-17-21-48 +.. nonce: -mkEJH +.. section: Library + +Fixed ``SpooledTemporaryFile.seek()`` to return the position. + +.. + +.. bpo: 40290 +.. date: 2020-04-15-16-43-48 +.. nonce: eqCMGJ +.. section: Library + +Added zscore() to statistics.NormalDist(). + +.. + +.. bpo: 40282 +.. date: 2020-04-15-10-23-52 +.. nonce: rIYJmu +.. section: Library + +Allow ``random.getrandbits(0)`` to succeed and to return 0. + +.. + +.. bpo: 40286 +.. date: 2020-04-15-00-39-25 +.. nonce: ai80FA +.. section: Library + +Add :func:`random.randbytes` function and :meth:`random.Random.randbytes` +method to generate random bytes. + +.. + +.. bpo: 40277 +.. date: 2020-04-14-21-53-18 +.. nonce: NknSaf +.. section: Library + +:func:`collections.namedtuple` now provides a human-readable repr for its +field accessors. + +.. + +.. bpo: 40270 +.. date: 2020-04-14-16-18-49 +.. nonce: XVJzeG +.. section: Library + +The included copy of sqlite3 on Windows is now compiled with the json +extension. This allows the use of functions such as ``json_object``. + +.. + +.. bpo: 29255 +.. date: 2020-04-14-11-31-07 +.. nonce: 4EcyIN +.. section: Library + +Wait in `KqueueSelector.select` when no fds are registered + +.. + +.. bpo: 40260 +.. date: 2020-04-12-21-18-56 +.. nonce: F6VWaE +.. section: Library + +Ensure :mod:`modulefinder` uses :func:`io.open_code` and respects coding +comments. + +.. + +.. bpo: 40234 +.. date: 2020-04-10-16-13-47 +.. nonce: tar4d_ +.. section: Library + +Allow again to spawn daemon threads in subinterpreters (revert change which +denied them). + +.. + +.. bpo: 39207 +.. date: 2020-04-10-01-24-58 +.. nonce: 2dE5Ox +.. section: Library + +Workers in :class:`~concurrent.futures.ProcessPoolExecutor` are now spawned +on demand, only when there are no available idle workers to reuse. This +optimizes startup overhead and reduces the amount of lost CPU time to idle +workers. Patch by Kyle Stanley. + +.. + +.. bpo: 40091 +.. date: 2020-04-07-23-26-25 +.. nonce: 5M9AW5 +.. section: Library + +Fix a hang at fork in the logging module: the new private _at_fork_reinit() +method is now used to reinitialize locks at fork in the child process. + +.. + +.. bpo: 40149 +.. date: 2020-04-07-18-06-38 +.. nonce: mMU2iu +.. section: Library + +Implement traverse and clear slots in _abc._abc_data type. + +.. + +.. bpo: 40208 +.. date: 2020-04-06-20-09-33 +.. nonce: 3rO_q7 +.. section: Library + +Remove deprecated :meth:`symtable.SymbolTable.has_exec`. + +.. + +.. bpo: 40196 +.. date: 2020-04-06-11-05-13 +.. nonce: Jqowse +.. section: Library + +Fix a bug in the :mod:`symtable` module that was causing incorrectly report +global variables as local. Patch by Pablo Galindo. + +.. + +.. bpo: 40190 +.. date: 2020-04-05-02-58-17 +.. nonce: HF3OWo +.. section: Library + +Add support for ``_SC_AIX_REALMEM`` to :func:`posix.sysconf`. + +.. + +.. bpo: 40182 +.. date: 2020-04-04-23-44-09 +.. nonce: Bf_kFN +.. section: Library + +Removed the ``_field_types`` attribute of the :class:`typing.NamedTuple` +class. + +.. + +.. bpo: 36517 +.. date: 2020-04-04-17-49-39 +.. nonce: Ilj1IJ +.. section: Library + +Multiple inheritance with :class:`typing.NamedTuple` now raises an error +instead of silently ignoring other types. + +.. + +.. bpo: 40126 +.. date: 2020-04-04-00-47-40 +.. nonce: Y-bTNP +.. section: Library + +Fixed reverting multiple patches in unittest.mock. Patcher's ``__exit__()`` +is now never called if its ``__enter__()`` is failed. Returning true from +``__exit__()`` silences now the exception. + +.. + +.. bpo: 40094 +.. date: 2020-04-02-01-13-28 +.. nonce: AeZ34K +.. section: Library + +CGIHTTPRequestHandler of http.server now logs the CGI script exit code, +rather than the CGI script exit status of os.waitpid(). For example, if the +script is killed by signal 11, it now logs: "CGI script exit code -11." + +.. + +.. bpo: 40108 +.. date: 2020-03-31-01-11-20 +.. nonce: EGDVQ_ +.. section: Library + +Improve the error message when triying to import a module using :mod:`runpy` +and incorrently use the ".py" extension at the end of the module name. Patch +by Pablo Galindo. + +.. + +.. bpo: 40094 +.. date: 2020-03-28-18-25-49 +.. nonce: v-wQIU +.. section: Library + +Add :func:`os.waitstatus_to_exitcode` function: convert a wait status to an +exit code. + +.. + +.. bpo: 40089 +.. date: 2020-03-27-17-22-34 +.. nonce: -lFsD0 +.. section: Library + +Fix threading._after_fork(): if fork was not called by a thread spawned by +threading.Thread, threading._after_fork() now creates a _MainThread instance +for _main_thread, instead of a _DummyThread instance. + +.. + +.. bpo: 40089 +.. date: 2020-03-27-16-54-29 +.. nonce: VTq_8s +.. section: Library + +Add a private ``_at_fork_reinit()`` method to :class:`_thread.Lock`, +:class:`_thread.RLock`, :class:`threading.RLock` and +:class:`threading.Condition` classes: reinitialize the lock at fork in the +child process, reset the lock to the unlocked state. Rename also the private +``_reset_internal_locks()`` method of :class:`threading.Event` to +``_at_fork_reinit()``. + +.. + +.. bpo: 25780 +.. date: 2020-03-27-08-57-46 +.. nonce: kIjVge +.. section: Library + +Expose :data:`~socket.CAN_RAW_JOIN_FILTERS` in the :mod:`socket` module. + +.. + +.. bpo: 39503 +.. date: 2020-03-25-16-02-16 +.. nonce: YmMbYn +.. section: Library + +:class:`~urllib.request.AbstractBasicAuthHandler` of :mod:`urllib.request` +now parses all WWW-Authenticate HTTP headers and accepts multiple challenges +per header: use the realm of the first Basic challenge. + +.. + +.. bpo: 39812 +.. date: 2020-03-25-00-35-48 +.. nonce: rIKnms +.. section: Library + +Removed daemon threads from :mod:`concurrent.futures` by adding an internal +`threading._register_atexit()`, which calls registered functions prior to +joining all non-daemon threads. This allows for compatibility with +subinterpreters, which don't support daemon threads. + +.. + +.. bpo: 40050 +.. date: 2020-03-24-16-17-20 +.. nonce: 6GrOlz +.. section: Library + +Fix ``importlib._bootstrap_external``: avoid creating a new ``winreg`` +builtin module if it's already available in :data:`sys.modules`, and remove +redundant imports. + +.. + +.. bpo: 40014 +.. date: 2020-03-23-17-52-00 +.. nonce: Ya70VG +.. section: Library + +Fix ``os.getgrouplist()``: if ``getgrouplist()`` function fails because the +group list is too small, retry with a larger group list. On failure, the +glibc implementation of ``getgrouplist()`` sets ``ngroups`` to the total +number of groups. For other implementations, double the group list size. + +.. + +.. bpo: 40017 +.. date: 2020-03-21-00-46-18 +.. nonce: HFpHZS +.. section: Library + +Add :data:`time.CLOCK_TAI` constant if the operating system support it. + +.. + +.. bpo: 40016 +.. date: 2020-03-19-19-40-27 +.. nonce: JWtxqJ +.. section: Library + +In re docstring, clarify the relationship between inline and argument +compile flags. + +.. + +.. bpo: 39953 +.. date: 2020-03-19-16-33-03 +.. nonce: yy5lC_ +.. section: Library + +Update internal table of OpenSSL error codes in the ``ssl`` module. + +.. + +.. bpo: 36144 +.. date: 2020-03-18-14-51-41 +.. nonce: lQm_RK +.. section: Library + +Added :pep:`584` operators to :class:`weakref.WeakValueDictionary`. + +.. + +.. bpo: 36144 +.. date: 2020-03-18-14-02-58 +.. nonce: ooyn6Z +.. section: Library + +Added :pep:`584` operators to :class:`weakref.WeakKeyDictionary`. + +.. + +.. bpo: 38891 +.. date: 2020-03-15-08-06-05 +.. nonce: 56Yokh +.. section: Library + +Fix linear runtime behaviour of the `__getitem__` and `__setitem__` methods +in :class:`multiprocessing.shared_memory.ShareableList`. This avoids +quadratic performance when iterating a `ShareableList`. Patch by Thomas +Krennwallner. + +.. + +.. bpo: 39682 +.. date: 2020-03-08-11-00-01 +.. nonce: AxXZNz +.. section: Library + +Remove undocumented support for *closing* a `pathlib.Path` object via its +context manager. The context manager magic methods remain, but they are now +a no-op, making `Path` objects immutable. + +.. + +.. bpo: 36144 +.. date: 2020-03-07-11-26-08 +.. nonce: FG9jqy +.. section: Library + +Added :pep:`584` operators (``|`` and ``|=``) to +:class:`collections.ChainMap`. + +.. + +.. bpo: 39011 +.. date: 2020-02-12-01-48-51 +.. nonce: hGve_t +.. section: Library + +Normalization of line endings in ElementTree attributes was removed, as line +endings which were replaced by entity numbers should be preserved in +original form. + +.. + +.. bpo: 38410 +.. date: 2019-10-09-08-14-25 +.. nonce: _YyoMV +.. section: Library + +Properly handle :func:`sys.audit` failures in +:func:`sys.set_asyncgen_hooks`. + +.. + +.. bpo: 36541 +.. date: 2019-06-18-19-38-27 +.. nonce: XI8mi1 +.. section: Library + +lib2to3 now recognizes named assignment expressions (the walrus operator, +``:=``) + +.. + +.. bpo: 35967 +.. date: 2019-04-14-14-11-07 +.. nonce: KUMT9E +.. section: Library + +In platform, delay the invocation of 'uname -p' until the processor +attribute is requested. + +.. + +.. bpo: 35113 +.. date: 2018-11-03-16-18-20 +.. nonce: vwvWKG +.. section: Library + +:meth:`inspect.getsource` now returns correct source code for inner class +with same name as module level class. Decorators are also returned as part +of source of the class. Patch by Karthikeyan Singaravelan. + +.. + +.. bpo: 33262 +.. date: 2018-04-17-13-23-29 +.. nonce: vHC7YQ +.. section: Library + +Deprecate passing None as an argument for :func:`shlex.split()`'s ``s`` +parameter. Patch by Zackery Spytz. + +.. + +.. bpo: 31758 +.. date: 2017-10-14-21-02-40 +.. nonce: 563ZZb +.. section: Library + +Prevent crashes when using an uninitialized ``_elementtree.XMLParser`` +object. Patch by Oren Milman. + +.. + +.. bpo: 27635 +.. date: 2020-04-01-00-27-03 +.. nonce: VwxUty +.. section: Documentation + +The pickle documentation incorrectly claimed that ``__new__`` isn't called +by default when unpickling. + +.. + +.. bpo: 39879 +.. date: 2020-03-16-18-12-02 +.. nonce: CnQ7Cv +.. section: Documentation + +Updated :ref:`datamodel` docs to include :func:`dict` insertion order +preservation. Patch by Furkan Onder and Samy Lahfa. + +.. + +.. bpo: 38387 +.. date: 2019-10-06-23-44-15 +.. nonce: fZoq0S +.. section: Documentation + +Document :c:macro:`PyDoc_STRVAR` macro in the C-API reference. + +.. + +.. bpo: 13743 +.. date: 2019-09-25-23-20-55 +.. nonce: 5ToLDy +.. section: Documentation + +Some methods within xml.dom.minidom.Element class are now better documented. + +.. + +.. bpo: 31904 +.. date: 2020-04-09-16-29-18 +.. nonce: ej348T +.. section: Tests + +Set expected default encoding in test_c_locale_coercion.py for VxWorks RTOS. + +.. + +.. bpo: 40162 +.. date: 2020-04-03-02-40-16 +.. nonce: v3pQW_ +.. section: Tests + +Update Travis CI configuration to OpenSSL 1.1.1f. + +.. + +.. bpo: 40146 +.. date: 2020-04-02-02-14-37 +.. nonce: J-Yo9G +.. section: Tests + +Update OpenSSL to 1.1.1f in Azure Pipelines. + +.. + +.. bpo: 40094 +.. date: 2020-03-31-18-57-52 +.. nonce: m3fTJe +.. section: Tests + +Add :func:`test.support.wait_process` function. + +.. + +.. bpo: 40003 +.. date: 2020-03-31-16-07-15 +.. nonce: SOruLY +.. section: Tests + +``test.bisect_cmd`` now copies Python command line options like ``-O`` or +``-W``. Moreover, emit a warning if ``test.bisect_cmd`` is used with +``-w``/``--verbose2`` option. + +.. + +.. bpo: 39380 +.. date: 2020-03-22-20-00-04 +.. nonce: ZXlRQU +.. section: Tests + +Add the encoding in :class:`ftplib.FTP` and :class:`ftplib.FTP_TLS` to the +constructor as keyword-only and change the default from ``latin-1`` to +``utf-8`` to follow :rfc:`2640`. + +.. + +.. bpo: 39793 +.. date: 2020-02-29-12-58-17 +.. nonce: Og2SUN +.. section: Tests + +Use the same domain when testing ``make_msgid``. Patch by Batuhan Taskaya. + +.. + +.. bpo: 1812 +.. date: 2019-11-25-21-46-47 +.. nonce: sAbTbY +.. section: Tests + +Fix newline handling in doctest.testfile when loading from a package whose +loader has a get_data method. Patch by Peter Donis. + +.. + +.. bpo: 38360 +.. date: 2020-04-22-02-33-54 +.. nonce: 74C68u +.. section: Build + +Support single-argument form of macOS -isysroot flag. + +.. + +.. bpo: 40158 +.. date: 2020-04-03-17-54-33 +.. nonce: MWUTs4 +.. section: Build + +Fix CPython MSBuild Properties in NuGet Package (build/native/python.props) + +.. + +.. bpo: 38527 +.. date: 2020-03-28-10-43-09 +.. nonce: fqCRgD +.. section: Build + +Fix configure check on Solaris for "float word ordering": sometimes, the +correct "grep" command was not being used. Patch by Arnon Yaari. + +.. + +.. bpo: 40164 +.. date: 2020-04-04-13-13-44 +.. nonce: SPrSn5 +.. section: Windows + +Updates Windows to OpenSSL 1.1.1f + +.. + +.. bpo: 8901 +.. date: 2020-01-24-09-15-41 +.. nonce: hVnhGO +.. section: Windows + +Ignore the Windows registry when the ``-E`` option is used. + +.. + +.. bpo: 38329 +.. date: 2020-04-22-03-39-22 +.. nonce: H0a8JV +.. section: macOS + +python.org macOS installers now update the Current version symlink of +/Library/Frameworks/Python.framework/Versions for 3.9 installs. Previously, +Current was only updated for Python 2.x installs. This should make it easier +to embed Python 3 into other macOS applications. + +.. + +.. bpo: 40164 +.. date: 2020-04-21-19-46-35 +.. nonce: 6HA6IC +.. section: macOS + +Update macOS installer builds to use OpenSSL 1.1.1g. + +.. + +.. bpo: 38439 +.. date: 2019-12-05-14-20-53 +.. nonce: j_L2PI +.. section: IDLE + +Add a 256×256 pixel IDLE icon to support more modern environments. Created +by Andrew Clover. Delete the unused macOS idle.icns icon file. + +.. + +.. bpo: 38689 +.. date: 2019-11-14-12-59-19 +.. nonce: Lgfxva +.. section: IDLE + +IDLE will no longer freeze when inspect.signature fails when fetching a +calltip. + +.. + +.. bpo: 40385 +.. date: 2020-04-24-21-08-19 +.. nonce: nWIQdq +.. section: Tools/Demos + +Removed the checkpyc.py tool. Please see compileall without force mode as a +potential alternative. + +.. + +.. bpo: 40179 +.. date: 2020-04-04-19-35-22 +.. nonce: u9FH10 +.. section: Tools/Demos + +Fixed translation of ``#elif`` in Argument Clinic. + +.. + +.. bpo: 40094 +.. date: 2020-04-02-01-22-21 +.. nonce: 1XQQF6 +.. section: Tools/Demos + +Fix ``which.py`` script exit code: it now uses +:func:`os.waitstatus_to_exitcode` to convert :func:`os.system` exit status +into an exit code. + +.. + +.. bpo: 40241 +.. date: 2020-04-13-02-56-24 +.. nonce: _FOf7E +.. section: C API + +Move the :c:type:`PyGC_Head` structure to the internal C API. + +.. + +.. bpo: 40170 +.. date: 2020-04-11-06-12-44 +.. nonce: cmM9oK +.. section: C API + +Convert :c:func:`PyObject_IS_GC` macro to a function to hide implementation +details. + +.. + +.. bpo: 40241 +.. date: 2020-04-10-19-43-04 +.. nonce: Xm3w-1 +.. section: C API + +Add the functions :c:func:`PyObject_GC_IsTracked` and +:c:func:`PyObject_GC_IsFinalized` to the public API to allow to query if +Python objects are being currently tracked or have been already finalized by +the garbage collector respectively. Patch by Pablo Galindo. + +.. + +.. bpo: 40170 +.. date: 2020-04-05-00-37-34 +.. nonce: Seuh3D +.. section: C API + +The :c:func:`PyObject_NEW` macro becomes an alias to the +:c:func:`PyObject_New` macro, and the :c:func:`PyObject_NEW_VAR` macro +becomes an alias to the :c:func:`PyObject_NewVar` macro, to hide +implementation details. They no longer access directly the +:c:member:`PyTypeObject.tp_basicsize` member. + +.. + +.. bpo: 40170 +.. date: 2020-04-05-00-21-38 +.. nonce: Tx0vy6 +.. section: C API + +:c:func:`PyType_HasFeature` now always calls :c:func:`PyType_GetFlags` to +hide implementation details. Previously, it accessed directly the +:c:member:`PyTypeObject.tp_flags` member when the limited C API was not +used. + +.. + +.. bpo: 40170 +.. date: 2020-04-05-00-10-45 +.. nonce: 6nFYbY +.. section: C API + +Convert the :c:func:`PyObject_GET_WEAKREFS_LISTPTR` macro to a function to +hide implementation details: the macro accessed directly to the +:c:member:`PyTypeObject.tp_weaklistoffset` member. + +.. + +.. bpo: 40170 +.. date: 2020-04-05-00-02-13 +.. nonce: IFsGZ- +.. section: C API + +Convert :c:func:`PyObject_CheckBuffer` macro to a function to hide +implementation details: the macro accessed directly the +:c:member:`PyTypeObject.tp_as_buffer` member. + +.. + +.. bpo: 40170 +.. date: 2020-04-04-23-51-59 +.. nonce: uXQ701 +.. section: C API + +Always declare :c:func:`PyIndex_Check` as an opaque function to hide +implementation details: remove ``PyIndex_Check()`` macro. The macro accessed +directly the :c:member:`PyTypeObject.tp_as_number` member. + +.. + +.. bpo: 39947 +.. date: 2020-03-25-19-44-55 +.. nonce: 2OxvPt +.. section: C API + +Add :c:func:`PyThreadState_GetID` function: get the unique identifier of a +Python thread state. diff --git a/Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst b/Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst deleted file mode 100644 index 869693095e4..00000000000 --- a/Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix configure check on Solaris for "float word ordering": sometimes, the correct "grep" command was not being used. -Patch by Arnon Yaari. diff --git a/Misc/NEWS.d/next/Build/2020-04-03-17-54-33.bpo-40158.MWUTs4.rst b/Misc/NEWS.d/next/Build/2020-04-03-17-54-33.bpo-40158.MWUTs4.rst deleted file mode 100644 index a81548c3f9c..00000000000 --- a/Misc/NEWS.d/next/Build/2020-04-03-17-54-33.bpo-40158.MWUTs4.rst +++ /dev/null @@ -1 +0,0 @@ -Fix CPython MSBuild Properties in NuGet Package (build/native/python.props) \ No newline at end of file diff --git a/Misc/NEWS.d/next/Build/2020-04-22-02-33-54.bpo-38360.74C68u.rst b/Misc/NEWS.d/next/Build/2020-04-22-02-33-54.bpo-38360.74C68u.rst deleted file mode 100644 index e96ca149199..00000000000 --- a/Misc/NEWS.d/next/Build/2020-04-22-02-33-54.bpo-38360.74C68u.rst +++ /dev/null @@ -1 +0,0 @@ -Support single-argument form of macOS -isysroot flag. diff --git a/Misc/NEWS.d/next/C API/2020-03-25-19-44-55.bpo-39947.2OxvPt.rst b/Misc/NEWS.d/next/C API/2020-03-25-19-44-55.bpo-39947.2OxvPt.rst deleted file mode 100644 index e9910a54443..00000000000 --- a/Misc/NEWS.d/next/C API/2020-03-25-19-44-55.bpo-39947.2OxvPt.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add :c:func:`PyThreadState_GetID` function: get the unique identifier of a -Python thread state. diff --git a/Misc/NEWS.d/next/C API/2020-04-04-23-51-59.bpo-40170.uXQ701.rst b/Misc/NEWS.d/next/C API/2020-04-04-23-51-59.bpo-40170.uXQ701.rst deleted file mode 100644 index 22bdc74904f..00000000000 --- a/Misc/NEWS.d/next/C API/2020-04-04-23-51-59.bpo-40170.uXQ701.rst +++ /dev/null @@ -1,3 +0,0 @@ -Always declare :c:func:`PyIndex_Check` as an opaque function to hide -implementation details: remove ``PyIndex_Check()`` macro. The macro accessed -directly the :c:member:`PyTypeObject.tp_as_number` member. diff --git a/Misc/NEWS.d/next/C API/2020-04-05-00-02-13.bpo-40170.IFsGZ-.rst b/Misc/NEWS.d/next/C API/2020-04-05-00-02-13.bpo-40170.IFsGZ-.rst deleted file mode 100644 index fb378faa90c..00000000000 --- a/Misc/NEWS.d/next/C API/2020-04-05-00-02-13.bpo-40170.IFsGZ-.rst +++ /dev/null @@ -1,3 +0,0 @@ -Convert :c:func:`PyObject_CheckBuffer` macro to a function to hide -implementation details: the macro accessed directly the -:c:member:`PyTypeObject.tp_as_buffer` member. diff --git a/Misc/NEWS.d/next/C API/2020-04-05-00-10-45.bpo-40170.6nFYbY.rst b/Misc/NEWS.d/next/C API/2020-04-05-00-10-45.bpo-40170.6nFYbY.rst deleted file mode 100644 index 3c4e33b9da1..00000000000 --- a/Misc/NEWS.d/next/C API/2020-04-05-00-10-45.bpo-40170.6nFYbY.rst +++ /dev/null @@ -1,3 +0,0 @@ -Convert the :c:func:`PyObject_GET_WEAKREFS_LISTPTR` macro to a function to hide -implementation details: the macro accessed directly to the -:c:member:`PyTypeObject.tp_weaklistoffset` member. diff --git a/Misc/NEWS.d/next/C API/2020-04-05-00-21-38.bpo-40170.Tx0vy6.rst b/Misc/NEWS.d/next/C API/2020-04-05-00-21-38.bpo-40170.Tx0vy6.rst deleted file mode 100644 index 858611df905..00000000000 --- a/Misc/NEWS.d/next/C API/2020-04-05-00-21-38.bpo-40170.Tx0vy6.rst +++ /dev/null @@ -1,4 +0,0 @@ -:c:func:`PyType_HasFeature` now always calls :c:func:`PyType_GetFlags` to -hide implementation details. Previously, it accessed directly the -:c:member:`PyTypeObject.tp_flags` member when the limited C API was not -used. diff --git a/Misc/NEWS.d/next/C API/2020-04-05-00-37-34.bpo-40170.Seuh3D.rst b/Misc/NEWS.d/next/C API/2020-04-05-00-37-34.bpo-40170.Seuh3D.rst deleted file mode 100644 index 2c31cca7f7e..00000000000 --- a/Misc/NEWS.d/next/C API/2020-04-05-00-37-34.bpo-40170.Seuh3D.rst +++ /dev/null @@ -1,4 +0,0 @@ -The :c:func:`PyObject_NEW` macro becomes an alias to the :c:func:`PyObject_New` -macro, and the :c:func:`PyObject_NEW_VAR` macro becomes an alias to the -:c:func:`PyObject_NewVar` macro, to hide implementation details. They no longer -access directly the :c:member:`PyTypeObject.tp_basicsize` member. diff --git a/Misc/NEWS.d/next/C API/2020-04-10-19-43-04.bpo-40241.Xm3w-1.rst b/Misc/NEWS.d/next/C API/2020-04-10-19-43-04.bpo-40241.Xm3w-1.rst deleted file mode 100644 index 0ade4a5f30e..00000000000 --- a/Misc/NEWS.d/next/C API/2020-04-10-19-43-04.bpo-40241.Xm3w-1.rst +++ /dev/null @@ -1,4 +0,0 @@ -Add the functions :c:func:`PyObject_GC_IsTracked` and -:c:func:`PyObject_GC_IsFinalized` to the public API to allow to query if -Python objects are being currently tracked or have been already finalized by -the garbage collector respectively. Patch by Pablo Galindo. diff --git a/Misc/NEWS.d/next/C API/2020-04-11-06-12-44.bpo-40170.cmM9oK.rst b/Misc/NEWS.d/next/C API/2020-04-11-06-12-44.bpo-40170.cmM9oK.rst deleted file mode 100644 index 832b7f6e081..00000000000 --- a/Misc/NEWS.d/next/C API/2020-04-11-06-12-44.bpo-40170.cmM9oK.rst +++ /dev/null @@ -1,2 +0,0 @@ -Convert :c:func:`PyObject_IS_GC` macro to a function to hide -implementation details. diff --git a/Misc/NEWS.d/next/C API/2020-04-13-02-56-24.bpo-40241._FOf7E.rst b/Misc/NEWS.d/next/C API/2020-04-13-02-56-24.bpo-40241._FOf7E.rst deleted file mode 100644 index b3e4aafe992..00000000000 --- a/Misc/NEWS.d/next/C API/2020-04-13-02-56-24.bpo-40241._FOf7E.rst +++ /dev/null @@ -1 +0,0 @@ -Move the :c:type:`PyGC_Head` structure to the internal C API. diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-06-09-10-54-31.bpo-37207.bLjgLS.rst b/Misc/NEWS.d/next/Core and Builtins/2019-06-09-10-54-31.bpo-37207.bLjgLS.rst deleted file mode 100644 index b6d0236db46..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2019-06-09-10-54-31.bpo-37207.bLjgLS.rst +++ /dev/null @@ -1,2 +0,0 @@ -Speed up calls to ``list()`` by using the :pep:`590` ``vectorcall`` -calling convention. Patch by Mark Shannon. diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-12-01-21-36-49.bpo-32894.5g_UQr.rst b/Misc/NEWS.d/next/Core and Builtins/2019-12-01-21-36-49.bpo-32894.5g_UQr.rst deleted file mode 100644 index 68f4e6774a3..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2019-12-01-21-36-49.bpo-32894.5g_UQr.rst +++ /dev/null @@ -1 +0,0 @@ -Support unparsing of infinity numbers in postponed annotations. Patch by Batuhan Taşkaya. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-01-28-17-19-18.bpo-39481.rqSeGl.rst b/Misc/NEWS.d/next/Core and Builtins/2020-01-28-17-19-18.bpo-39481.rqSeGl.rst deleted file mode 100644 index 9652a3fccd7..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-01-28-17-19-18.bpo-39481.rqSeGl.rst +++ /dev/null @@ -1 +0,0 @@ -Implement PEP 585. This supports list[int], tuple[str, ...] etc. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-11-19-17-36.bpo-39939.NwCnAM.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-11-19-17-36.bpo-39939.NwCnAM.rst deleted file mode 100644 index bf094f1ce9b..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-11-19-17-36.bpo-39939.NwCnAM.rst +++ /dev/null @@ -1,5 +0,0 @@ -Added str.removeprefix and str.removesuffix methods and corresponding -bytes, bytearray, and collections.UserString methods to remove affixes -from a string if present. -See :pep:`616` for a full description. -Patch by Dennis Sweeney. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-19-21-53-41.bpo-40020.n-26G7.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-19-21-53-41.bpo-40020.n-26G7.rst deleted file mode 100644 index 948404baba2..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-19-21-53-41.bpo-40020.n-26G7.rst +++ /dev/null @@ -1 +0,0 @@ -Fix a leak and subsequent crash in parsetok.c caused by realloc misuse on a rare codepath. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-20-13-42-35.bpo-1635741.bhIu5M.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-20-13-42-35.bpo-1635741.bhIu5M.rst deleted file mode 100644 index ab5d0ae428d..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-20-13-42-35.bpo-1635741.bhIu5M.rst +++ /dev/null @@ -1 +0,0 @@ -Port _weakref extension module to multiphase initialization (:pep:`489`). diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-22-01-01-41.bpo-1635741.gR7Igp.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-22-01-01-41.bpo-1635741.gR7Igp.rst deleted file mode 100644 index 5201ba6cdbc..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-22-01-01-41.bpo-1635741.gR7Igp.rst +++ /dev/null @@ -1,2 +0,0 @@ -Port time module to multiphase initialization (:pep:`489`). -Patch by Paulo Henrique Silva. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-23-18-08-34.bpo-20526.NHNZIv.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-23-18-08-34.bpo-20526.NHNZIv.rst deleted file mode 100644 index c808b7608c6..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-23-18-08-34.bpo-20526.NHNZIv.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix :c:func:`PyThreadState_Clear()`. ``PyThreadState.frame`` is a borrowed -reference, not a strong reference: ``PyThreadState_Clear()`` must not call -``Py_CLEAR(tstate->frame)``. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-24-22-17-12.bpo-1635741.jWaMRV.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-24-22-17-12.bpo-1635741.jWaMRV.rst deleted file mode 100644 index d84626af5b1..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-24-22-17-12.bpo-1635741.jWaMRV.rst +++ /dev/null @@ -1,2 +0,0 @@ -Port operator module to multiphase initialization (PEP 489). Patch by Paulo -Henrique Silva. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-24-22-26-26.bpo-1635741.AB38ot.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-24-22-26-26.bpo-1635741.AB38ot.rst deleted file mode 100644 index 1a611628343..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-24-22-26-26.bpo-1635741.AB38ot.rst +++ /dev/null @@ -1,2 +0,0 @@ -Port _functools module to multiphase initialization (PEP 489). Patch by -Paulo Henrique Silva. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-25-20-34-01.bpo-40067.0bFda2.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-25-20-34-01.bpo-40067.0bFda2.rst deleted file mode 100644 index 2e1b20d2937..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-25-20-34-01.bpo-40067.0bFda2.rst +++ /dev/null @@ -1,2 +0,0 @@ -Improve the error message for multiple star expressions in an assignment. -Patch by Furkan Onder diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-27-01-11-08.bpo-40077.wT002V.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-27-01-11-08.bpo-40077.wT002V.rst deleted file mode 100644 index ab0654a5ca3..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-27-01-11-08.bpo-40077.wT002V.rst +++ /dev/null @@ -1 +0,0 @@ -Convert json module to use :c:func:`PyType_FromSpec`. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-31-21-12-27.bpo-1635741.S2nkF3.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-31-21-12-27.bpo-1635741.S2nkF3.rst deleted file mode 100644 index 7d5a8ca21d2..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-31-21-12-27.bpo-1635741.S2nkF3.rst +++ /dev/null @@ -1 +0,0 @@ -Port _uuid module to multiphase initialization (:pep:`489`). diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-31-22-15-04.bpo-1635741.8Ir1a0.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-31-22-15-04.bpo-1635741.8Ir1a0.rst deleted file mode 100644 index e1c5a29916b..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-03-31-22-15-04.bpo-1635741.8Ir1a0.rst +++ /dev/null @@ -1 +0,0 @@ -Port :mod:`math` to multiphase initialization (:pep:`489`). diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-01-00-08-18.bpo-1635741.bhGWam.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-01-00-08-18.bpo-1635741.bhGWam.rst deleted file mode 100644 index cacfed2f9fd..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-01-00-08-18.bpo-1635741.bhGWam.rst +++ /dev/null @@ -1 +0,0 @@ -Port :mod:`resource` to multiphase initialization (:pep:`489`). diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-01-21-50-37.bpo-40141.8fCRVj.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-01-21-50-37.bpo-40141.8fCRVj.rst deleted file mode 100644 index c6ea50e2ce8..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-01-21-50-37.bpo-40141.8fCRVj.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add column and line information to ``ast.keyword`` nodes. Patch by Pablo -Galindo. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-02-00-25-19.bpo-37207.ZTPmKJ.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-02-00-25-19.bpo-37207.ZTPmKJ.rst deleted file mode 100644 index cb5e9ff5b8f..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-02-00-25-19.bpo-37207.ZTPmKJ.rst +++ /dev/null @@ -1,2 +0,0 @@ -Speed up calls to ``dict()`` by using the :pep:`590` ``vectorcall`` calling -convention. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-04-12-43-19.bpo-40077.m15TTX.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-04-12-43-19.bpo-40077.m15TTX.rst deleted file mode 100644 index 21ed615917c..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-04-12-43-19.bpo-40077.m15TTX.rst +++ /dev/null @@ -1 +0,0 @@ -Fix possible refleaks in :mod:`_json`, memo of PyScannerObject should be traversed. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-07-15-44-29.bpo-37388.stlxBq.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-07-15-44-29.bpo-37388.stlxBq.rst deleted file mode 100644 index 1da58d11191..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-07-15-44-29.bpo-37388.stlxBq.rst +++ /dev/null @@ -1,4 +0,0 @@ -str.encode() and str.decode() no longer check the encoding and errors in -development mode or in debug mode during Python finalization. The codecs -machinery can no longer work on very late calls to str.encode() and -str.decode(). diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-08-22-33-24.bpo-40082.WI3-lu.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-08-22-33-24.bpo-40082.WI3-lu.rst deleted file mode 100644 index 0a25b5eca3a..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-08-22-33-24.bpo-40082.WI3-lu.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix the signal handler: it now always uses the main interpreter, rather than -trying to get the current Python thread state. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-11-17-52-03.bpo-40246.vXPze5.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-11-17-52-03.bpo-40246.vXPze5.rst deleted file mode 100644 index 056b7f84729..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-11-17-52-03.bpo-40246.vXPze5.rst +++ /dev/null @@ -1 +0,0 @@ -Report a specialized error message, `invalid string prefix`, when the tokenizer encounters a string with an invalid prefix. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-14-18-47-00.bpo-39522.uVeIV_.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-14-18-47-00.bpo-39522.uVeIV_.rst deleted file mode 100644 index 12d939d0543..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-14-18-47-00.bpo-39522.uVeIV_.rst +++ /dev/null @@ -1,2 +0,0 @@ -Correctly unparse explicit ``u`` prefix for strings when postponed -evaluation for annotations activated. Patch by Batuhan Taskaya. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-14-18-54-50.bpo-40267.Q2N6Bw.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-14-18-54-50.bpo-40267.Q2N6Bw.rst deleted file mode 100644 index a778594ce9c..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-14-18-54-50.bpo-40267.Q2N6Bw.rst +++ /dev/null @@ -1 +0,0 @@ -Fix the tokenizer to display the correct error message, when there is a SyntaxError on the last input character and no newline follows. It used to be `unexpected EOF while parsing`, while it should be `invalid syntax`. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-20-14-06-19.bpo-40334.CTLGEp.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-20-14-06-19.bpo-40334.CTLGEp.rst deleted file mode 100644 index b52d310508a..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-20-14-06-19.bpo-40334.CTLGEp.rst +++ /dev/null @@ -1,5 +0,0 @@ -Switch to a new parser, based on PEG. For more details see PEP 617. To -temporarily switch back to the old parser, use ``-X oldparser`` or -``PYTHONOLDPARSER=1``. In Python 3.10 we will remove the old parser -completely, including the ``parser`` module (already deprecated) and -anything that depends on it. diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-04-20-23-58-35.bpo-40313.USVRW8.rst b/Misc/NEWS.d/next/Core and Builtins/2020-04-20-23-58-35.bpo-40313.USVRW8.rst deleted file mode 100644 index 52880abe9c2..00000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2020-04-20-23-58-35.bpo-40313.USVRW8.rst +++ /dev/null @@ -1 +0,0 @@ -Improve the performance of bytes.hex(). \ No newline at end of file diff --git a/Misc/NEWS.d/next/Documentation/2019-09-25-23-20-55.bpo-13743.5ToLDy.rst b/Misc/NEWS.d/next/Documentation/2019-09-25-23-20-55.bpo-13743.5ToLDy.rst deleted file mode 100644 index 02dc4331a12..00000000000 --- a/Misc/NEWS.d/next/Documentation/2019-09-25-23-20-55.bpo-13743.5ToLDy.rst +++ /dev/null @@ -1 +0,0 @@ -Some methods within xml.dom.minidom.Element class are now better documented. diff --git a/Misc/NEWS.d/next/Documentation/2019-10-06-23-44-15.bpo-38387.fZoq0S.rst b/Misc/NEWS.d/next/Documentation/2019-10-06-23-44-15.bpo-38387.fZoq0S.rst deleted file mode 100644 index a678fe50526..00000000000 --- a/Misc/NEWS.d/next/Documentation/2019-10-06-23-44-15.bpo-38387.fZoq0S.rst +++ /dev/null @@ -1 +0,0 @@ -Document :c:macro:`PyDoc_STRVAR` macro in the C-API reference. diff --git a/Misc/NEWS.d/next/Documentation/2020-03-16-18-12-02.bpo-39879.CnQ7Cv.rst b/Misc/NEWS.d/next/Documentation/2020-03-16-18-12-02.bpo-39879.CnQ7Cv.rst deleted file mode 100644 index 6698ed607ca..00000000000 --- a/Misc/NEWS.d/next/Documentation/2020-03-16-18-12-02.bpo-39879.CnQ7Cv.rst +++ /dev/null @@ -1,2 +0,0 @@ -Updated :ref:`datamodel` docs to include :func:`dict` insertion order preservation. -Patch by Furkan Onder and Samy Lahfa. diff --git a/Misc/NEWS.d/next/Documentation/2020-04-01-00-27-03.bpo-27635.VwxUty.rst b/Misc/NEWS.d/next/Documentation/2020-04-01-00-27-03.bpo-27635.VwxUty.rst deleted file mode 100644 index 24f640bd4ef..00000000000 --- a/Misc/NEWS.d/next/Documentation/2020-04-01-00-27-03.bpo-27635.VwxUty.rst +++ /dev/null @@ -1,2 +0,0 @@ -The pickle documentation incorrectly claimed that ``__new__`` isn't called by -default when unpickling. diff --git a/Misc/NEWS.d/next/IDLE/2019-11-14-12-59-19.bpo-38689.Lgfxva.rst b/Misc/NEWS.d/next/IDLE/2019-11-14-12-59-19.bpo-38689.Lgfxva.rst deleted file mode 100644 index f4f4a2e9afd..00000000000 --- a/Misc/NEWS.d/next/IDLE/2019-11-14-12-59-19.bpo-38689.Lgfxva.rst +++ /dev/null @@ -1,2 +0,0 @@ -IDLE will no longer freeze when inspect.signature fails when fetching -a calltip. diff --git a/Misc/NEWS.d/next/IDLE/2019-12-05-14-20-53.bpo-38439.j_L2PI.rst b/Misc/NEWS.d/next/IDLE/2019-12-05-14-20-53.bpo-38439.j_L2PI.rst deleted file mode 100644 index de048d005ce..00000000000 --- a/Misc/NEWS.d/next/IDLE/2019-12-05-14-20-53.bpo-38439.j_L2PI.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add a 256×256 pixel IDLE icon to support more modern environments. Created by Andrew Clover. -Delete the unused macOS idle.icns icon file. diff --git a/Misc/NEWS.d/next/Library/2017-10-14-21-02-40.bpo-31758.563ZZb.rst b/Misc/NEWS.d/next/Library/2017-10-14-21-02-40.bpo-31758.563ZZb.rst deleted file mode 100644 index 92e55db2b09..00000000000 --- a/Misc/NEWS.d/next/Library/2017-10-14-21-02-40.bpo-31758.563ZZb.rst +++ /dev/null @@ -1,2 +0,0 @@ -Prevent crashes when using an uninitialized ``_elementtree.XMLParser`` -object. Patch by Oren Milman. diff --git a/Misc/NEWS.d/next/Library/2018-04-17-13-23-29.bpo-33262.vHC7YQ.rst b/Misc/NEWS.d/next/Library/2018-04-17-13-23-29.bpo-33262.vHC7YQ.rst deleted file mode 100644 index 2afe13aeb0f..00000000000 --- a/Misc/NEWS.d/next/Library/2018-04-17-13-23-29.bpo-33262.vHC7YQ.rst +++ /dev/null @@ -1,2 +0,0 @@ -Deprecate passing None as an argument for :func:`shlex.split()`'s ``s`` -parameter. Patch by Zackery Spytz. diff --git a/Misc/NEWS.d/next/Library/2018-11-03-16-18-20.bpo-35113.vwvWKG.rst b/Misc/NEWS.d/next/Library/2018-11-03-16-18-20.bpo-35113.vwvWKG.rst deleted file mode 100644 index bf6b672964f..00000000000 --- a/Misc/NEWS.d/next/Library/2018-11-03-16-18-20.bpo-35113.vwvWKG.rst +++ /dev/null @@ -1,3 +0,0 @@ -:meth:`inspect.getsource` now returns correct source code for inner class -with same name as module level class. Decorators are also returned as part -of source of the class. Patch by Karthikeyan Singaravelan. diff --git a/Misc/NEWS.d/next/Library/2019-04-14-14-11-07.bpo-35967.KUMT9E.rst b/Misc/NEWS.d/next/Library/2019-04-14-14-11-07.bpo-35967.KUMT9E.rst deleted file mode 100644 index 38bec77313a..00000000000 --- a/Misc/NEWS.d/next/Library/2019-04-14-14-11-07.bpo-35967.KUMT9E.rst +++ /dev/null @@ -1 +0,0 @@ -In platform, delay the invocation of 'uname -p' until the processor attribute is requested. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Library/2019-06-18-19-38-27.bpo-36541.XI8mi1.rst b/Misc/NEWS.d/next/Library/2019-06-18-19-38-27.bpo-36541.XI8mi1.rst deleted file mode 100644 index e7b9dd648b4..00000000000 --- a/Misc/NEWS.d/next/Library/2019-06-18-19-38-27.bpo-36541.XI8mi1.rst +++ /dev/null @@ -1,2 +0,0 @@ -lib2to3 now recognizes named assignment expressions (the walrus operator, -``:=``) diff --git a/Misc/NEWS.d/next/Library/2019-10-09-08-14-25.bpo-38410._YyoMV.rst b/Misc/NEWS.d/next/Library/2019-10-09-08-14-25.bpo-38410._YyoMV.rst deleted file mode 100644 index 038c46afb5b..00000000000 --- a/Misc/NEWS.d/next/Library/2019-10-09-08-14-25.bpo-38410._YyoMV.rst +++ /dev/null @@ -1,2 +0,0 @@ -Properly handle :func:`sys.audit` failures in -:func:`sys.set_asyncgen_hooks`. diff --git a/Misc/NEWS.d/next/Library/2020-02-12-01-48-51.bpo-39011.hGve_t.rst b/Misc/NEWS.d/next/Library/2020-02-12-01-48-51.bpo-39011.hGve_t.rst deleted file mode 100644 index 43962f0bf17..00000000000 --- a/Misc/NEWS.d/next/Library/2020-02-12-01-48-51.bpo-39011.hGve_t.rst +++ /dev/null @@ -1,3 +0,0 @@ -Normalization of line endings in ElementTree attributes was removed, as line -endings which were replaced by entity numbers should be preserved in -original form. diff --git a/Misc/NEWS.d/next/Library/2020-03-07-11-26-08.bpo-36144.FG9jqy.rst b/Misc/NEWS.d/next/Library/2020-03-07-11-26-08.bpo-36144.FG9jqy.rst deleted file mode 100644 index 9deb489d883..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-07-11-26-08.bpo-36144.FG9jqy.rst +++ /dev/null @@ -1 +0,0 @@ -Added :pep:`584` operators (``|`` and ``|=``) to :class:`collections.ChainMap`. diff --git a/Misc/NEWS.d/next/Library/2020-03-08-11-00-01.bpo-39682.AxXZNz.rst b/Misc/NEWS.d/next/Library/2020-03-08-11-00-01.bpo-39682.AxXZNz.rst deleted file mode 100644 index d71a32132af..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-08-11-00-01.bpo-39682.AxXZNz.rst +++ /dev/null @@ -1,3 +0,0 @@ -Remove undocumented support for *closing* a `pathlib.Path` object via its -context manager. The context manager magic methods remain, but they are now a -no-op, making `Path` objects immutable. diff --git a/Misc/NEWS.d/next/Library/2020-03-15-08-06-05.bpo-38891.56Yokh.rst b/Misc/NEWS.d/next/Library/2020-03-15-08-06-05.bpo-38891.56Yokh.rst deleted file mode 100644 index fdb8a05d183..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-15-08-06-05.bpo-38891.56Yokh.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix linear runtime behaviour of the `__getitem__` and `__setitem__` methods in -:class:`multiprocessing.shared_memory.ShareableList`. This avoids quadratic -performance when iterating a `ShareableList`. Patch by Thomas Krennwallner. diff --git a/Misc/NEWS.d/next/Library/2020-03-18-14-02-58.bpo-36144.ooyn6Z.rst b/Misc/NEWS.d/next/Library/2020-03-18-14-02-58.bpo-36144.ooyn6Z.rst deleted file mode 100644 index 262653a01b9..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-18-14-02-58.bpo-36144.ooyn6Z.rst +++ /dev/null @@ -1 +0,0 @@ -Added :pep:`584` operators to :class:`weakref.WeakKeyDictionary`. diff --git a/Misc/NEWS.d/next/Library/2020-03-18-14-51-41.bpo-36144.lQm_RK.rst b/Misc/NEWS.d/next/Library/2020-03-18-14-51-41.bpo-36144.lQm_RK.rst deleted file mode 100644 index daf1101601f..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-18-14-51-41.bpo-36144.lQm_RK.rst +++ /dev/null @@ -1 +0,0 @@ -Added :pep:`584` operators to :class:`weakref.WeakValueDictionary`. diff --git a/Misc/NEWS.d/next/Library/2020-03-19-16-33-03.bpo-39953.yy5lC_.rst b/Misc/NEWS.d/next/Library/2020-03-19-16-33-03.bpo-39953.yy5lC_.rst deleted file mode 100644 index 3fea7c87ea8..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-19-16-33-03.bpo-39953.yy5lC_.rst +++ /dev/null @@ -1 +0,0 @@ -Update internal table of OpenSSL error codes in the ``ssl`` module. diff --git a/Misc/NEWS.d/next/Library/2020-03-19-19-40-27.bpo-40016.JWtxqJ.rst b/Misc/NEWS.d/next/Library/2020-03-19-19-40-27.bpo-40016.JWtxqJ.rst deleted file mode 100644 index 0c6449de527..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-19-19-40-27.bpo-40016.JWtxqJ.rst +++ /dev/null @@ -1 +0,0 @@ -In re docstring, clarify the relationship between inline and argument compile flags. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Library/2020-03-21-00-46-18.bpo-40017.HFpHZS.rst b/Misc/NEWS.d/next/Library/2020-03-21-00-46-18.bpo-40017.HFpHZS.rst deleted file mode 100644 index 9a17272d969..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-21-00-46-18.bpo-40017.HFpHZS.rst +++ /dev/null @@ -1 +0,0 @@ -Add :data:`time.CLOCK_TAI` constant if the operating system support it. diff --git a/Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst b/Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst deleted file mode 100644 index e9b36c21132..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-23-17-52-00.bpo-40014.Ya70VG.rst +++ /dev/null @@ -1,4 +0,0 @@ -Fix ``os.getgrouplist()``: if ``getgrouplist()`` function fails because the -group list is too small, retry with a larger group list. On failure, the glibc -implementation of ``getgrouplist()`` sets ``ngroups`` to the total number of -groups. For other implementations, double the group list size. diff --git a/Misc/NEWS.d/next/Library/2020-03-24-16-17-20.bpo-40050.6GrOlz.rst b/Misc/NEWS.d/next/Library/2020-03-24-16-17-20.bpo-40050.6GrOlz.rst deleted file mode 100644 index 0a8e24e4f28..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-24-16-17-20.bpo-40050.6GrOlz.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix ``importlib._bootstrap_external``: avoid creating a new ``winreg`` builtin -module if it's already available in :data:`sys.modules`, and remove redundant -imports. diff --git a/Misc/NEWS.d/next/Library/2020-03-25-00-35-48.bpo-39812.rIKnms.rst b/Misc/NEWS.d/next/Library/2020-03-25-00-35-48.bpo-39812.rIKnms.rst deleted file mode 100644 index 4cea878d0cc..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-25-00-35-48.bpo-39812.rIKnms.rst +++ /dev/null @@ -1,4 +0,0 @@ -Removed daemon threads from :mod:`concurrent.futures` by adding -an internal `threading._register_atexit()`, which calls registered functions -prior to joining all non-daemon threads. This allows for compatibility -with subinterpreters, which don't support daemon threads. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Library/2020-03-25-16-02-16.bpo-39503.YmMbYn.rst b/Misc/NEWS.d/next/Library/2020-03-25-16-02-16.bpo-39503.YmMbYn.rst deleted file mode 100644 index be80ce79d91..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-25-16-02-16.bpo-39503.YmMbYn.rst +++ /dev/null @@ -1,3 +0,0 @@ -:class:`~urllib.request.AbstractBasicAuthHandler` of :mod:`urllib.request` -now parses all WWW-Authenticate HTTP headers and accepts multiple challenges -per header: use the realm of the first Basic challenge. diff --git a/Misc/NEWS.d/next/Library/2020-03-27-08-57-46.bpo-25780.kIjVge.rst b/Misc/NEWS.d/next/Library/2020-03-27-08-57-46.bpo-25780.kIjVge.rst deleted file mode 100644 index 119e149ae7d..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-27-08-57-46.bpo-25780.kIjVge.rst +++ /dev/null @@ -1 +0,0 @@ -Expose :data:`~socket.CAN_RAW_JOIN_FILTERS` in the :mod:`socket` module. diff --git a/Misc/NEWS.d/next/Library/2020-03-27-16-54-29.bpo-40089.VTq_8s.rst b/Misc/NEWS.d/next/Library/2020-03-27-16-54-29.bpo-40089.VTq_8s.rst deleted file mode 100644 index 3948852fbee..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-27-16-54-29.bpo-40089.VTq_8s.rst +++ /dev/null @@ -1,6 +0,0 @@ -Add a private ``_at_fork_reinit()`` method to :class:`_thread.Lock`, -:class:`_thread.RLock`, :class:`threading.RLock` and -:class:`threading.Condition` classes: reinitialize the lock at fork in the -child process, reset the lock to the unlocked state. -Rename also the private ``_reset_internal_locks()`` method of -:class:`threading.Event` to ``_at_fork_reinit()``. diff --git a/Misc/NEWS.d/next/Library/2020-03-27-17-22-34.bpo-40089.-lFsD0.rst b/Misc/NEWS.d/next/Library/2020-03-27-17-22-34.bpo-40089.-lFsD0.rst deleted file mode 100644 index f5335a33c06..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-27-17-22-34.bpo-40089.-lFsD0.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix threading._after_fork(): if fork was not called by a thread spawned by -threading.Thread, threading._after_fork() now creates a _MainThread instance -for _main_thread, instead of a _DummyThread instance. diff --git a/Misc/NEWS.d/next/Library/2020-03-28-18-25-49.bpo-40094.v-wQIU.rst b/Misc/NEWS.d/next/Library/2020-03-28-18-25-49.bpo-40094.v-wQIU.rst deleted file mode 100644 index b50816f1a9a..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-28-18-25-49.bpo-40094.v-wQIU.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add :func:`os.waitstatus_to_exitcode` function: -convert a wait status to an exit code. diff --git a/Misc/NEWS.d/next/Library/2020-03-31-01-11-20.bpo-40108.EGDVQ_.rst b/Misc/NEWS.d/next/Library/2020-03-31-01-11-20.bpo-40108.EGDVQ_.rst deleted file mode 100644 index 778a0f1b1a5..00000000000 --- a/Misc/NEWS.d/next/Library/2020-03-31-01-11-20.bpo-40108.EGDVQ_.rst +++ /dev/null @@ -1,3 +0,0 @@ -Improve the error message when triying to import a module using :mod:`runpy` -and incorrently use the ".py" extension at the end of the module name. Patch -by Pablo Galindo. diff --git a/Misc/NEWS.d/next/Library/2020-04-02-01-13-28.bpo-40094.AeZ34K.rst b/Misc/NEWS.d/next/Library/2020-04-02-01-13-28.bpo-40094.AeZ34K.rst deleted file mode 100644 index ba13d3cdf4a..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-02-01-13-28.bpo-40094.AeZ34K.rst +++ /dev/null @@ -1,3 +0,0 @@ -CGIHTTPRequestHandler of http.server now logs the CGI script exit code, -rather than the CGI script exit status of os.waitpid(). For example, if the -script is killed by signal 11, it now logs: "CGI script exit code -11." diff --git a/Misc/NEWS.d/next/Library/2020-04-04-00-47-40.bpo-40126.Y-bTNP.rst b/Misc/NEWS.d/next/Library/2020-04-04-00-47-40.bpo-40126.Y-bTNP.rst deleted file mode 100644 index 8f725cfba86..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-04-00-47-40.bpo-40126.Y-bTNP.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fixed reverting multiple patches in unittest.mock. Patcher's ``__exit__()`` -is now never called if its ``__enter__()`` is failed. Returning true from -``__exit__()`` silences now the exception. diff --git a/Misc/NEWS.d/next/Library/2020-04-04-17-49-39.bpo-36517.Ilj1IJ.rst b/Misc/NEWS.d/next/Library/2020-04-04-17-49-39.bpo-36517.Ilj1IJ.rst deleted file mode 100644 index cd5c0d729f1..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-04-17-49-39.bpo-36517.Ilj1IJ.rst +++ /dev/null @@ -1,2 +0,0 @@ -Multiple inheritance with :class:`typing.NamedTuple` now raises an error -instead of silently ignoring other types. diff --git a/Misc/NEWS.d/next/Library/2020-04-04-23-44-09.bpo-40182.Bf_kFN.rst b/Misc/NEWS.d/next/Library/2020-04-04-23-44-09.bpo-40182.Bf_kFN.rst deleted file mode 100644 index 1120584ecc5..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-04-23-44-09.bpo-40182.Bf_kFN.rst +++ /dev/null @@ -1,2 +0,0 @@ -Removed the ``_field_types`` attribute of the :class:`typing.NamedTuple` -class. diff --git a/Misc/NEWS.d/next/Library/2020-04-05-02-58-17.bpo-40190.HF3OWo.rst b/Misc/NEWS.d/next/Library/2020-04-05-02-58-17.bpo-40190.HF3OWo.rst deleted file mode 100644 index 58359330e39..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-05-02-58-17.bpo-40190.HF3OWo.rst +++ /dev/null @@ -1 +0,0 @@ -Add support for ``_SC_AIX_REALMEM`` to :func:`posix.sysconf`. diff --git a/Misc/NEWS.d/next/Library/2020-04-06-11-05-13.bpo-40196.Jqowse.rst b/Misc/NEWS.d/next/Library/2020-04-06-11-05-13.bpo-40196.Jqowse.rst deleted file mode 100644 index c5fbd6e5ff3..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-06-11-05-13.bpo-40196.Jqowse.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix a bug in the :mod:`symtable` module that was causing incorrectly report -global variables as local. Patch by Pablo Galindo. diff --git a/Misc/NEWS.d/next/Library/2020-04-06-20-09-33.bpo-40208.3rO_q7.rst b/Misc/NEWS.d/next/Library/2020-04-06-20-09-33.bpo-40208.3rO_q7.rst deleted file mode 100644 index a06d5eadf3d..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-06-20-09-33.bpo-40208.3rO_q7.rst +++ /dev/null @@ -1 +0,0 @@ -Remove deprecated :meth:`symtable.SymbolTable.has_exec`. diff --git a/Misc/NEWS.d/next/Library/2020-04-07-18-06-38.bpo-40149.mMU2iu.rst b/Misc/NEWS.d/next/Library/2020-04-07-18-06-38.bpo-40149.mMU2iu.rst deleted file mode 100644 index dd8ac3b406d..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-07-18-06-38.bpo-40149.mMU2iu.rst +++ /dev/null @@ -1 +0,0 @@ -Implement traverse and clear slots in _abc._abc_data type. diff --git a/Misc/NEWS.d/next/Library/2020-04-07-23-26-25.bpo-40091.5M9AW5.rst b/Misc/NEWS.d/next/Library/2020-04-07-23-26-25.bpo-40091.5M9AW5.rst deleted file mode 100644 index 4a98aa50f23..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-07-23-26-25.bpo-40091.5M9AW5.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix a hang at fork in the logging module: the new private _at_fork_reinit() -method is now used to reinitialize locks at fork in the child process. diff --git a/Misc/NEWS.d/next/Library/2020-04-10-01-24-58.bpo-39207.2dE5Ox.rst b/Misc/NEWS.d/next/Library/2020-04-10-01-24-58.bpo-39207.2dE5Ox.rst deleted file mode 100644 index 3fa82771ded..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-10-01-24-58.bpo-39207.2dE5Ox.rst +++ /dev/null @@ -1,4 +0,0 @@ -Workers in :class:`~concurrent.futures.ProcessPoolExecutor` are now spawned on -demand, only when there are no available idle workers to reuse. This optimizes -startup overhead and reduces the amount of lost CPU time to idle workers. -Patch by Kyle Stanley. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Library/2020-04-10-16-13-47.bpo-40234.tar4d_.rst b/Misc/NEWS.d/next/Library/2020-04-10-16-13-47.bpo-40234.tar4d_.rst deleted file mode 100644 index ed7a9f355db..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-10-16-13-47.bpo-40234.tar4d_.rst +++ /dev/null @@ -1,2 +0,0 @@ -Allow again to spawn daemon threads in subinterpreters (revert change which -denied them). diff --git a/Misc/NEWS.d/next/Library/2020-04-12-21-18-56.bpo-40260.F6VWaE.rst b/Misc/NEWS.d/next/Library/2020-04-12-21-18-56.bpo-40260.F6VWaE.rst deleted file mode 100644 index decc073bf4d..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-12-21-18-56.bpo-40260.F6VWaE.rst +++ /dev/null @@ -1 +0,0 @@ -Ensure :mod:`modulefinder` uses :func:`io.open_code` and respects coding comments. diff --git a/Misc/NEWS.d/next/Library/2020-04-14-11-31-07.bpo-29255.4EcyIN.rst b/Misc/NEWS.d/next/Library/2020-04-14-11-31-07.bpo-29255.4EcyIN.rst deleted file mode 100644 index 18fbddf2cee..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-14-11-31-07.bpo-29255.4EcyIN.rst +++ /dev/null @@ -1 +0,0 @@ -Wait in `KqueueSelector.select` when no fds are registered diff --git a/Misc/NEWS.d/next/Library/2020-04-14-16-18-49.bpo-40270.XVJzeG.rst b/Misc/NEWS.d/next/Library/2020-04-14-16-18-49.bpo-40270.XVJzeG.rst deleted file mode 100644 index c23f7c9d37d..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-14-16-18-49.bpo-40270.XVJzeG.rst +++ /dev/null @@ -1,2 +0,0 @@ -The included copy of sqlite3 on Windows is now compiled with the json -extension. This allows the use of functions such as ``json_object``. diff --git a/Misc/NEWS.d/next/Library/2020-04-14-21-53-18.bpo-40277.NknSaf.rst b/Misc/NEWS.d/next/Library/2020-04-14-21-53-18.bpo-40277.NknSaf.rst deleted file mode 100644 index 1fa2999f7f0..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-14-21-53-18.bpo-40277.NknSaf.rst +++ /dev/null @@ -1,2 +0,0 @@ -:func:`collections.namedtuple` now provides a human-readable repr for its -field accessors. diff --git a/Misc/NEWS.d/next/Library/2020-04-15-00-39-25.bpo-40286.ai80FA.rst b/Misc/NEWS.d/next/Library/2020-04-15-00-39-25.bpo-40286.ai80FA.rst deleted file mode 100644 index 69c9cff10aa..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-15-00-39-25.bpo-40286.ai80FA.rst +++ /dev/null @@ -1,2 +0,0 @@ -Add :func:`random.randbytes` function and -:meth:`random.Random.randbytes` method to generate random bytes. diff --git a/Misc/NEWS.d/next/Library/2020-04-15-10-23-52.bpo-40282.rIYJmu.rst b/Misc/NEWS.d/next/Library/2020-04-15-10-23-52.bpo-40282.rIYJmu.rst deleted file mode 100644 index 699282a7fb5..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-15-10-23-52.bpo-40282.rIYJmu.rst +++ /dev/null @@ -1 +0,0 @@ -Allow ``random.getrandbits(0)`` to succeed and to return 0. diff --git a/Misc/NEWS.d/next/Library/2020-04-15-16-43-48.bpo-40290.eqCMGJ.rst b/Misc/NEWS.d/next/Library/2020-04-15-16-43-48.bpo-40290.eqCMGJ.rst deleted file mode 100644 index a930cee1c8b..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-15-16-43-48.bpo-40290.eqCMGJ.rst +++ /dev/null @@ -1 +0,0 @@ -Added zscore() to statistics.NormalDist(). diff --git a/Misc/NEWS.d/next/Library/2020-04-15-17-21-48.bpo-40287.-mkEJH.rst b/Misc/NEWS.d/next/Library/2020-04-15-17-21-48.bpo-40287.-mkEJH.rst deleted file mode 100644 index d4db192b710..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-15-17-21-48.bpo-40287.-mkEJH.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed ``SpooledTemporaryFile.seek()`` to return the position. diff --git a/Misc/NEWS.d/next/Library/2020-04-15-19-34-11.bpo-40257.ux8FUr.rst b/Misc/NEWS.d/next/Library/2020-04-15-19-34-11.bpo-40257.ux8FUr.rst deleted file mode 100644 index 52247b2d1a7..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-15-19-34-11.bpo-40257.ux8FUr.rst +++ /dev/null @@ -1,5 +0,0 @@ -func:`inspect.getdoc` no longer returns docstring inherited from the type of -the object or from parent class if it is a class if it is not defined in the -object itself. In :mod:`pydoc` the documentation string is now shown not -only for class, function, method etc, but for any object that has its own -``__doc__`` attribute. diff --git a/Misc/NEWS.d/next/Library/2020-04-18-10-52-15.bpo-40257.lv4WTq.rst b/Misc/NEWS.d/next/Library/2020-04-18-10-52-15.bpo-40257.lv4WTq.rst deleted file mode 100644 index 6ed094add1f..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-18-10-52-15.bpo-40257.lv4WTq.rst +++ /dev/null @@ -1,4 +0,0 @@ -Improved help for the :mod:`typing` module. Docstrings are now shown for all -special forms and special generic aliases (like ``Union`` and ``List``). -Using ``help()`` with generic alias like ``List[int]`` will show the help -for the correspondent concrete type (``list`` in this case). diff --git a/Misc/NEWS.d/next/Library/2020-04-18-19-40-00.bpo-40325.KWSvix.rst b/Misc/NEWS.d/next/Library/2020-04-18-19-40-00.bpo-40325.KWSvix.rst deleted file mode 100644 index 3df5fade667..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-18-19-40-00.bpo-40325.KWSvix.rst +++ /dev/null @@ -1 +0,0 @@ -Deprecated support for set objects in random.sample(). diff --git a/Misc/NEWS.d/next/Library/2020-04-19-14-16-43.bpo-40148.pDZR6V.rst b/Misc/NEWS.d/next/Library/2020-04-19-14-16-43.bpo-40148.pDZR6V.rst deleted file mode 100644 index 02a5f9d7084..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-19-14-16-43.bpo-40148.pDZR6V.rst +++ /dev/null @@ -1 +0,0 @@ -Added :meth:`pathlib.Path.with_stem()` to create a new Path with the stem replaced. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Library/2020-04-19-17-31-29.bpo-40330.DGjoIS.rst b/Misc/NEWS.d/next/Library/2020-04-19-17-31-29.bpo-40330.DGjoIS.rst deleted file mode 100644 index 98cb62f1b11..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-19-17-31-29.bpo-40330.DGjoIS.rst +++ /dev/null @@ -1,2 +0,0 @@ -In :meth:`ShareableList.__setitem__`, check the size of a new string item -after encoding it to utf-8, not before. diff --git a/Misc/NEWS.d/next/Library/2020-04-20-18-50-25.bpo-40275.Ofk6J8.rst b/Misc/NEWS.d/next/Library/2020-04-20-18-50-25.bpo-40275.Ofk6J8.rst deleted file mode 100644 index 2093589f528..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-20-18-50-25.bpo-40275.Ofk6J8.rst +++ /dev/null @@ -1,2 +0,0 @@ -The :mod:`asyncio` package is now imported lazily in :mod:`unittest` only -when the :class:`~unittest.IsolatedAsyncioTestCase` class is used. diff --git a/Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst b/Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst deleted file mode 100644 index 09e0a97f3ed..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst +++ /dev/null @@ -1,2 +0,0 @@ -The :mod:`logging` package is now imported lazily in :mod:`unittest` only -when the :meth:`~unittest.TestCase.assertLogs` assertion is used. diff --git a/Misc/NEWS.d/next/Library/2020-04-20-20-16-02.bpo-39942.NvGnTc.rst b/Misc/NEWS.d/next/Library/2020-04-20-20-16-02.bpo-39942.NvGnTc.rst deleted file mode 100644 index 3b83037d170..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-20-20-16-02.bpo-39942.NvGnTc.rst +++ /dev/null @@ -1,2 +0,0 @@ -Set "__main__" as the default module name when "__name__" is missing in -:class:`typing.TypeVar`. Patch by Weipeng Hong. diff --git a/Misc/NEWS.d/next/Library/2020-04-22-00-05-10.bpo-40138.i_oGqa.rst b/Misc/NEWS.d/next/Library/2020-04-22-00-05-10.bpo-40138.i_oGqa.rst deleted file mode 100644 index ad5faf38657..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-22-00-05-10.bpo-40138.i_oGqa.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix the Windows implementation of :func:`os.waitpid` for exit code larger than -``INT_MAX >> 8``. The exit status is now interpreted as an unsigned number. diff --git a/Misc/NEWS.d/next/Library/2020-04-22-20-55-17.bpo-40360.Er8sv-.rst b/Misc/NEWS.d/next/Library/2020-04-22-20-55-17.bpo-40360.Er8sv-.rst deleted file mode 100644 index 290dd453bd4..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-22-20-55-17.bpo-40360.Er8sv-.rst +++ /dev/null @@ -1 +0,0 @@ -The :mod:`lib2to3` module is pending deprecation due to :pep:`617`. \ No newline at end of file diff --git a/Misc/NEWS.d/next/Library/2020-04-24-01-27-08.bpo-38061.cdlkMz.rst b/Misc/NEWS.d/next/Library/2020-04-24-01-27-08.bpo-38061.cdlkMz.rst deleted file mode 100644 index e55d5d50bd7..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-24-01-27-08.bpo-38061.cdlkMz.rst +++ /dev/null @@ -1,6 +0,0 @@ -On FreeBSD, ``os.closerange(fd_low, fd_high)`` now calls ``closefrom(fd_low)`` -if *fd_high* is greater than or equal to ``sysconf(_SC_OPEN_MAX)``. - -Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans (kevans) -and Kubilay Kocak (koobs): -https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274 diff --git a/Misc/NEWS.d/next/Library/2020-04-24-01-55-00.bpo-38061.XmULB3.rst b/Misc/NEWS.d/next/Library/2020-04-24-01-55-00.bpo-38061.XmULB3.rst deleted file mode 100644 index 603d80b88b0..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-24-01-55-00.bpo-38061.XmULB3.rst +++ /dev/null @@ -1,11 +0,0 @@ -Optimize the :mod:`subprocess` module on FreeBSD using ``closefrom()``. -A single ``close(fd)`` syscall is cheap, but when ``sysconf(_SC_OPEN_MAX)`` is -high, the loop calling ``close(fd)`` on each file descriptor can take several -milliseconds. - -The workaround on FreeBSD to improve performance was to load and mount the -fdescfs kernel module, but this is not enabled by default. - -Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans (kevans) and -Kubilay Kocak (koobs): -https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274 diff --git a/Misc/NEWS.d/next/Library/2020-04-26-19-07-40.bpo-40396.Fn-is1.rst b/Misc/NEWS.d/next/Library/2020-04-26-19-07-40.bpo-40396.Fn-is1.rst deleted file mode 100644 index f4273ff1966..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-26-19-07-40.bpo-40396.Fn-is1.rst +++ /dev/null @@ -1,3 +0,0 @@ -Functions :func:`typing.get_origin`, :func:`typing.get_args` and -:func:`typing.get_type_hints` support now generic aliases like -``list[int]``. diff --git a/Misc/NEWS.d/next/Library/2020-04-26-22-25-36.bpo-40398.OdXnR3.rst b/Misc/NEWS.d/next/Library/2020-04-26-22-25-36.bpo-40398.OdXnR3.rst deleted file mode 100644 index a56da0c1095..00000000000 --- a/Misc/NEWS.d/next/Library/2020-04-26-22-25-36.bpo-40398.OdXnR3.rst +++ /dev/null @@ -1,2 +0,0 @@ -:func:`typing.get_args` now always returns an empty tuple for special -generic aliases. diff --git a/Misc/NEWS.d/next/Security/2020-01-30-16-15-29.bpo-39503.B299Yq.rst b/Misc/NEWS.d/next/Security/2020-01-30-16-15-29.bpo-39503.B299Yq.rst deleted file mode 100644 index 9f2800581ca..00000000000 --- a/Misc/NEWS.d/next/Security/2020-01-30-16-15-29.bpo-39503.B299Yq.rst +++ /dev/null @@ -1,5 +0,0 @@ -CVE-2020-8492: The :class:`~urllib.request.AbstractBasicAuthHandler` class of the -:mod:`urllib.request` module uses an inefficient regular expression which can -be exploited by an attacker to cause a denial of service. Fix the regex to -prevent the catastrophic backtracking. Vulnerability reported by Ben Caller -and Matt Schwager. diff --git a/Misc/NEWS.d/next/Security/2020-03-15-01-28-36.bpo-39073.6Szd3i.rst b/Misc/NEWS.d/next/Security/2020-03-15-01-28-36.bpo-39073.6Szd3i.rst deleted file mode 100644 index 6c9447b897b..00000000000 --- a/Misc/NEWS.d/next/Security/2020-03-15-01-28-36.bpo-39073.6Szd3i.rst +++ /dev/null @@ -1 +0,0 @@ -Disallow CR or LF in email.headerregistry.Address arguments to guard against header injection attacks. diff --git a/Misc/NEWS.d/next/Security/2020-03-30-23-16-25.bpo-40121.p2LIio.rst b/Misc/NEWS.d/next/Security/2020-03-30-23-16-25.bpo-40121.p2LIio.rst deleted file mode 100644 index 5aac6cd8b99..00000000000 --- a/Misc/NEWS.d/next/Security/2020-03-30-23-16-25.bpo-40121.p2LIio.rst +++ /dev/null @@ -1 +0,0 @@ -Fixes audit events raised on creating a new socket. diff --git a/Misc/NEWS.d/next/Tests/2019-11-25-21-46-47.bpo-1812.sAbTbY.rst b/Misc/NEWS.d/next/Tests/2019-11-25-21-46-47.bpo-1812.sAbTbY.rst deleted file mode 100644 index 7ffe90d55a4..00000000000 --- a/Misc/NEWS.d/next/Tests/2019-11-25-21-46-47.bpo-1812.sAbTbY.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fix newline handling in doctest.testfile when loading from a package whose -loader has a get_data method. Patch by Peter Donis. diff --git a/Misc/NEWS.d/next/Tests/2020-02-29-12-58-17.bpo-39793.Og2SUN.rst b/Misc/NEWS.d/next/Tests/2020-02-29-12-58-17.bpo-39793.Og2SUN.rst deleted file mode 100644 index 6fa0d15ba2f..00000000000 --- a/Misc/NEWS.d/next/Tests/2020-02-29-12-58-17.bpo-39793.Og2SUN.rst +++ /dev/null @@ -1 +0,0 @@ -Use the same domain when testing ``make_msgid``. Patch by Batuhan Taskaya. diff --git a/Misc/NEWS.d/next/Tests/2020-03-22-20-00-04.bpo-39380.ZXlRQU.rst b/Misc/NEWS.d/next/Tests/2020-03-22-20-00-04.bpo-39380.ZXlRQU.rst deleted file mode 100644 index 1ac9ead0eb3..00000000000 --- a/Misc/NEWS.d/next/Tests/2020-03-22-20-00-04.bpo-39380.ZXlRQU.rst +++ /dev/null @@ -1,3 +0,0 @@ -Add the encoding in :class:`ftplib.FTP` and :class:`ftplib.FTP_TLS` to the -constructor as keyword-only and change the default from ``latin-1`` to ``utf-8`` -to follow :rfc:`2640`. diff --git a/Misc/NEWS.d/next/Tests/2020-03-31-16-07-15.bpo-40003.SOruLY.rst b/Misc/NEWS.d/next/Tests/2020-03-31-16-07-15.bpo-40003.SOruLY.rst deleted file mode 100644 index 7ddb90121d8..00000000000 --- a/Misc/NEWS.d/next/Tests/2020-03-31-16-07-15.bpo-40003.SOruLY.rst +++ /dev/null @@ -1,3 +0,0 @@ -``test.bisect_cmd`` now copies Python command line options like ``-O`` or -``-W``. Moreover, emit a warning if ``test.bisect_cmd`` is used with -``-w``/``--verbose2`` option. diff --git a/Misc/NEWS.d/next/Tests/2020-03-31-18-57-52.bpo-40094.m3fTJe.rst b/Misc/NEWS.d/next/Tests/2020-03-31-18-57-52.bpo-40094.m3fTJe.rst deleted file mode 100644 index cae001bcb20..00000000000 --- a/Misc/NEWS.d/next/Tests/2020-03-31-18-57-52.bpo-40094.m3fTJe.rst +++ /dev/null @@ -1 +0,0 @@ -Add :func:`test.support.wait_process` function. diff --git a/Misc/NEWS.d/next/Tests/2020-04-02-02-14-37.bpo-40146.J-Yo9G.rst b/Misc/NEWS.d/next/Tests/2020-04-02-02-14-37.bpo-40146.J-Yo9G.rst deleted file mode 100644 index 216925f40e1..00000000000 --- a/Misc/NEWS.d/next/Tests/2020-04-02-02-14-37.bpo-40146.J-Yo9G.rst +++ /dev/null @@ -1 +0,0 @@ -Update OpenSSL to 1.1.1f in Azure Pipelines. diff --git a/Misc/NEWS.d/next/Tests/2020-04-03-02-40-16.bpo-40162.v3pQW_.rst b/Misc/NEWS.d/next/Tests/2020-04-03-02-40-16.bpo-40162.v3pQW_.rst deleted file mode 100644 index 8d5d0e0871d..00000000000 --- a/Misc/NEWS.d/next/Tests/2020-04-03-02-40-16.bpo-40162.v3pQW_.rst +++ /dev/null @@ -1 +0,0 @@ -Update Travis CI configuration to OpenSSL 1.1.1f. diff --git a/Misc/NEWS.d/next/Tests/2020-04-09-16-29-18.bpo-31904.ej348T.rst b/Misc/NEWS.d/next/Tests/2020-04-09-16-29-18.bpo-31904.ej348T.rst deleted file mode 100644 index 0c08ab56311..00000000000 --- a/Misc/NEWS.d/next/Tests/2020-04-09-16-29-18.bpo-31904.ej348T.rst +++ /dev/null @@ -1 +0,0 @@ -Set expected default encoding in test_c_locale_coercion.py for VxWorks RTOS. diff --git a/Misc/NEWS.d/next/Tools-Demos/2020-04-02-01-22-21.bpo-40094.1XQQF6.rst b/Misc/NEWS.d/next/Tools-Demos/2020-04-02-01-22-21.bpo-40094.1XQQF6.rst deleted file mode 100644 index 042550da8bc..00000000000 --- a/Misc/NEWS.d/next/Tools-Demos/2020-04-02-01-22-21.bpo-40094.1XQQF6.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix ``which.py`` script exit code: it now uses -:func:`os.waitstatus_to_exitcode` to convert :func:`os.system` exit status -into an exit code. diff --git a/Misc/NEWS.d/next/Tools-Demos/2020-04-04-19-35-22.bpo-40179.u9FH10.rst b/Misc/NEWS.d/next/Tools-Demos/2020-04-04-19-35-22.bpo-40179.u9FH10.rst deleted file mode 100644 index 61bd2e3d94a..00000000000 --- a/Misc/NEWS.d/next/Tools-Demos/2020-04-04-19-35-22.bpo-40179.u9FH10.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed translation of ``#elif`` in Argument Clinic. diff --git a/Misc/NEWS.d/next/Tools-Demos/2020-04-24-21-08-19.bpo-40385.nWIQdq.rst b/Misc/NEWS.d/next/Tools-Demos/2020-04-24-21-08-19.bpo-40385.nWIQdq.rst deleted file mode 100644 index 07d48fd1777..00000000000 --- a/Misc/NEWS.d/next/Tools-Demos/2020-04-24-21-08-19.bpo-40385.nWIQdq.rst +++ /dev/null @@ -1,2 +0,0 @@ -Removed the checkpyc.py tool. Please see compileall without force mode as a -potential alternative. diff --git a/Misc/NEWS.d/next/Windows/2020-01-24-09-15-41.bpo-8901.hVnhGO.rst b/Misc/NEWS.d/next/Windows/2020-01-24-09-15-41.bpo-8901.hVnhGO.rst deleted file mode 100644 index 1d452cf2629..00000000000 --- a/Misc/NEWS.d/next/Windows/2020-01-24-09-15-41.bpo-8901.hVnhGO.rst +++ /dev/null @@ -1 +0,0 @@ -Ignore the Windows registry when the ``-E`` option is used. diff --git a/Misc/NEWS.d/next/Windows/2020-04-04-13-13-44.bpo-40164.SPrSn5.rst b/Misc/NEWS.d/next/Windows/2020-04-04-13-13-44.bpo-40164.SPrSn5.rst deleted file mode 100644 index 0bb874b138b..00000000000 --- a/Misc/NEWS.d/next/Windows/2020-04-04-13-13-44.bpo-40164.SPrSn5.rst +++ /dev/null @@ -1 +0,0 @@ -Updates Windows to OpenSSL 1.1.1f diff --git a/Misc/NEWS.d/next/macOS/2020-04-21-19-46-35.bpo-40164.6HA6IC.rst b/Misc/NEWS.d/next/macOS/2020-04-21-19-46-35.bpo-40164.6HA6IC.rst deleted file mode 100644 index 05c568190e7..00000000000 --- a/Misc/NEWS.d/next/macOS/2020-04-21-19-46-35.bpo-40164.6HA6IC.rst +++ /dev/null @@ -1 +0,0 @@ -Update macOS installer builds to use OpenSSL 1.1.1g. diff --git a/Misc/NEWS.d/next/macOS/2020-04-22-03-39-22.bpo-38329.H0a8JV.rst b/Misc/NEWS.d/next/macOS/2020-04-22-03-39-22.bpo-38329.H0a8JV.rst deleted file mode 100644 index 0caf8a0f524..00000000000 --- a/Misc/NEWS.d/next/macOS/2020-04-22-03-39-22.bpo-38329.H0a8JV.rst +++ /dev/null @@ -1,4 +0,0 @@ -python.org macOS installers now update the Current version symlink of -/Library/Frameworks/Python.framework/Versions for 3.9 installs. Previously, -Current was only updated for Python 2.x installs. This should make it easier -to embed Python 3 into other macOS applications. diff --git a/README.rst b/README.rst index 6e1d931b6af..82303953ecd 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -This is Python version 3.9.0 alpha 5 +This is Python version 3.9.0 alpha 6 ==================================== .. image:: https://travis-ci.org/python/cpython.svg?branch=master