Lines Matching +full:ipv4 +full:- +full:second +full:- +full:language +full:- +full:is +full:- +full:cpp
8 *Release date: 2021-02-19*
11 -------
13 - bpo-43155: :c:func:`PyCMethod_New` is now present in ``python3.lib``.
19 *Release date: 2021-02-16*
22 --------
24 - bpo-42967: Fix web cache poisoning vulnerability by defaulting the query
28 - bpo-42938: Avoid static buffers when computing the repr of
32 -----------------
34 - bpo-42819: :mod:`readline`: Explicitly disable bracketed paste in the
35 interactive interpreter, even if it's set in the inputrc, is enabled by
41 ``readline.parse_and_bind("set enable-bracketed-paste on")``. Patch by
44 - bpo-42806: Fix the column offsets for f-strings :mod:`ast` nodes
48 - bpo-40631: Fix regression where a single parenthesized starred expression
51 - bpo-32381: Fix encoding name when running a ``.pyc`` file on Windows:
55 - bpo-42536: Several built-in and standard library types now ensure that
59 - :meth:`collections.OrderedDict.items() <collections.OrderedDict>`
61 - :meth:`dict.items`
63 - :func:`enumerate`
65 - :func:`functools.reduce`
67 - :func:`itertools.combinations`
69 - :func:`itertools.combinations_with_replacement`
71 - :func:`itertools.permutations`
73 - :func:`itertools.product`
75 - :func:`itertools.zip_longest`
77 - :func:`zip`
82 - bpo-42195: The ``__args__`` of the parameterized generics for
89 not subclass things like ``Callable[..., T]`` as that is not a valid base
95 -------
97 - bpo-43102: The namedtuple __new__ method had its __builtins__ set to None
101 - bpo-43108: Fixed a reference leak in the :mod:`curses` module. Patch by
104 - bpo-42944: Fix ``random.Random.sample`` when ``counts`` argument is not
107 - bpo-42931: Add :func:`randbytes` to ``random.__all__``.
109 - bpo-42780: Fix os.set_inheritable() for O_PATH file descriptors on Linux.
111 - bpo-42851: remove __init_subclass__ support for Enum members
113 - bpo-41748: Fix HTMLParser parsing rules for element attributes containing
116 - bpo-42759: Fixed equality comparison of :class:`tkinter.Variable` and
120 - bpo-42756: Configure LMTP Unix-domain socket to use socket global default
121 timeout when a timeout is not explicitly provided.
123 - bpo-23328: Allow / character in username, password fields on _PROXY
126 - bpo-42655: :mod:`subprocess` *extra_groups* is now correctly passed into
129 - bpo-42727: ``EnumMeta.__prepare__`` now accepts ``**kwds`` to properly
132 - bpo-42681: Fixed range checks for color and pair numbers in :mod:`curses`.
134 - bpo-37961: Fix crash in :func:`tracemalloc.Traceback.__repr__` (regressed
137 - bpo-42630: :mod:`tkinter` functions and constructors which need a default
139 of obscure :exc:`AttributeError` or :exc:`NameError` if it is not created
142 - bpo-42644: `logging.disable` will now validate the types and value of its
146 - bpo-36541: Fixed lib2to3.pgen2 to be able to parse PEP-570 positional only
149 - bpo-42517: Enum: private names will raise a DeprecationWarning; in 3.10
152 - bpo-42678: `Enum`: call `__init_subclass__` after members have been added
154 - bpo-42532: Remove unexpected call of ``__bool__`` when passing a
157 - bpo-42388: Fix subprocess.check_output(..., input=None) behavior when
161 - bpo-34463: Fixed discrepancy between :mod:`traceback` and the interpreter
165 - bpo-42375: subprocess module update for DragonFlyBSD support.
167 - bpo-42384: Make pdb populate sys.path[0] exactly the same as regular
170 - bpo-42383: Fix pdb: previously pdb would fail to restart the debugging
174 - bpo-42318: Fixed support of non-BMP characters in :mod:`tkinter` on macOS.
176 - bpo-42163: Restore compatibility for ``uname_result`` around deepcopy and
179 - bpo-39825: Windows: Change ``sysconfig.get_config_var('EXT_SUFFIX')`` to
181 hard-coded to ``.pyd``, now it is compatible with ``distutils.sysconfig``
182 and will result in something like ``.cp38-win_amd64.pyd``. This brings
185 - bpo-42059: :class:`typing.TypedDict` types created using the alternative
186 call-style syntax now correctly respect the ``total`` keyword argument
190 - bpo-39101: Fixed tests using IsolatedAsyncioTestCase from hanging on
193 - bpo-42005: Fix CLI of :mod:`cProfile` and :mod:`profile` to catch
196 - bpo-41907: fix `format()` behavior for `IntFlag`
198 - bpo-41889: Enum: fix regression involving inheriting a multiply-inherited
201 - bpo-41891: Ensure asyncio.wait_for waits for task completion
203 - bpo-41604: Don't decrement the reference count of the previous user_ptr
206 - bpo-40219: Lowered :class:`tkinter.ttk.LabeledScale` dummy widget to
209 - bpo-40084: Fix ``Enum.__dir__``: dir(Enum.member) now includes attributes
212 - bpo-39068: Fix initialization race condition in :func:`a85encode` and
215 - bpo-33289: Correct call to :mod:`tkinter.colorchooser` to return RGB
219 -------------
221 - bpo-40304: Fix doc for type(name, bases, dict). Patch by Boris
224 - bpo-42811: Updated importlib.utils.resolve_name() doc to use
227 - bpo-17140: Add documentation for the
231 -----
233 - bpo-42794: Update test_nntplib to use offical group name of news.aioe.org
234 for testing. Patch by Dong-hee Na.
236 - bpo-40810: In :mod:`sqlite3`, fix ``CheckTraceCallbackContent`` for SQLite
240 -----
242 - bpo-43174: Windows build now uses ``/utf-8`` compiler option.
244 - bpo-42692: Fix __builtin_available check on older compilers. Patch by
247 - bpo-42604: Now all platforms use a value for the "EXT_SUFFIX" build
248 variable derived from SOABI (for instance in freeBSD, "EXT_SUFFIX" is now
249 ".cpython-310d.so" instead of ".so"). Previosuly only Linux, Mac and
252 - bpo-42598: Fix implicit function declarations in configure which could
256 - bpo-29076: Add fish shell support to macOS installer.
259 -------
261 - bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i
263 - bpo-42584: Upgrade Windows installer to use SQLite 3.34.0.
266 -----
268 - bpo-42504: Ensure that the value of
269 sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') is always a string,
270 even in when the value is parsable as an integer.
272 - bpo-42361: Update macOS installer build to use Tcl/Tk 8.6.11 (rc2,
275 - bpo-41837: Update macOS installer build to use OpenSSL 1.1.1i.
277 - bpo-42584: Update macOS installer to use SQLite 3.34.0.
280 ----
282 - bpo-43008: Make IDLE invoke :func:`sys.excepthook` in normal, 2-process
285 - bpo-33065: Fix problem debugging user classes with __repr__ method.
287 - bpo-23544: Disable Debug=>Stack Viewer when user code is running or
288 Debugger is active, to prevent hang or crash. Patch by Zackery Spytz.
290 - bpo-32631: Finish zzdummy example extension module: make menu entries
294 -----------
296 - bpo-42726: Fixed Python 3 compatibility issue with gdb/libpython.py
299 - bpo-42613: Fix ``freeze.py`` tool to use the prope config and library
303 -----
305 - bpo-43030: Fixed a compiler warning in :c:func:`Py_UNICODE_ISSPACE()` on
308 - bpo-42591: Export the :c:func:`Py_FrozenMain` function: fix a Python 3.9.0
309 regression. Python 3.9 uses ``-fvisibility=hidden`` and the function was
312 - bpo-40052: Fix an alignment build warning/error in function
320 *Release date: 2020-12-07*
323 -----------------
325 - bpo-42576: ``types.GenericAlias`` will now raise a ``TypeError`` when
332 -------
334 - bpo-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed.
340 - bpo-17735: :func:`inspect.findsource` now raises :exc:`OSError` instead of
341 :exc:`IndexError` when :attr:`co_lineno` of a code object is greater than
342 the file length. This can happen, for example, when a file is edited after
345 - bpo-42116: Fix handling of trailing comments by :func:`inspect.getsource`.
347 - bpo-42487: ChainMap.__iter__ no longer calls __getitem__ on underlying
350 - bpo-42482: :class:`~traceback.TracebackException` no longer holds a
352 TracebackException for equivalent but non-equal exceptions now compare as
355 - bpo-42406: We fixed an issue in `pickle.whichmodule` in which importing
359 - bpo-34215: Clarify the error message for
360 :exc:`asyncio.IncompleteReadError` when ``expected`` is ``None``.
362 - bpo-12800: Extracting a symlink from a tarball should succeed and
363 overwrite the symlink if it already exists. The fix is to remove the
368 -----
370 - bpo-41473: Reenable test_gdb on gdb 9.2 and newer:
371 https://bugzilla.redhat.com/show_bug.cgi?id=1866884 bug is fixed in gdb
374 - bpo-42553: Fix ``test_asyncio.test_call_later()`` race condition: don't
379 -----
381 - bpo-41116: If no explicit macOS SDK was specified, setup.py should check
385 - bpo-42504: Fix build on macOS Big Sur when MACOSX_DEPLOYMENT_TARGET=11
388 ----
390 - bpo-42508: Keep IDLE running on macOS. Remove obsolete workaround that
398 *Release date: 2020-11-24*
401 --------
403 - bpo-42103: Prevented potential DoS attack via CPU and RAM exhaustion when
406 - bpo-42051: The :mod:`plistlib` module no longer accepts entity
411 - bpo-40791: Add ``volatile`` to the accumulator variable in
412 ``hmac.compare_digest``, making constant-time-defeating optimizations less
416 -----------------
418 - bpo-41686: On Windows, the ``SIGINT`` event, ``_PyOS_SigintEvent()``, is
419 now created even if Python is configured to not install signal handlers
423 - bpo-42381: Allow assignment expressions in set literals and set
426 - bpo-42374: Fix a regression introduced by the new parser, where an
430 - bpo-42296: On Windows, fix a regression in signal handling which prevented
433 if the thread can handle signals is wrong.
435 - bpo-42332: :class:`types.GenericAlias` objects can now be the targets of
438 - bpo-42218: Fixed a bug in the PEG parser that was causing crashes in debug
439 mode. Now errors are checked in left-recursive rules to avoid cases where
440 such errors do not get handled in time and appear as long-distance crashes
443 - bpo-42214: Fixed a possible crash in the PEG parser when checking for the
446 - bpo-42143: Fix handling of errors during creation of ``PyFunctionObject``,
450 - bpo-41659: Fix a bug in the parser, where a curly brace following a
456 - bpo-42150: Fix possible buffer overflow in the new parser when checking
459 - bpo-42123: Run the parser two times. On the first run, disable all the
461 there's a parse failure, run the parser a second time with those enabled.
463 - bpo-42057: Fix peephole optimizer misoptimize conditional jump +
466 - bpo-41984: The garbage collector now tracks all user-defined classes.
469 - bpo-41993: Fixed potential issues with removing not completely initialized
472 - bpo-41979: Star-unpacking is now allowed for with item's targets in the
475 - bpo-41909: Fixed stack overflow in :func:`issubclass` and
479 - bpo-41894: When loading a native module and a load failure occurs, prevent
480 a possible UnicodeDecodeError when not running in a UTF-8 locale by
483 - bpo-39934: Correctly count control blocks in 'except' in compiler. Ensures
488 -------
490 - bpo-42328: Fixed :meth:`tkinter.ttk.Style.map`. The function accepts now
492 ``Style.map()``). The structure of the result is now the same on all
495 - bpo-42345: Fix various issues with ``typing.Literal`` parameter handling
499 - bpo-42350: Fix the :class:`threading.Thread` class at fork: do nothing if
500 the thread is already stopped (ex: fork called at Python exit).
503 - bpo-42014: The ``onerror`` callback from ``shutil.rmtree`` now receives
506 - bpo-42237: Fix `os.sendfile()` on illumos.
508 - bpo-42249: Fixed writing binary Plist files larger than 4 GiB.
510 - bpo-35455: On Solaris, :func:`~time.thread_time` is now implemented with
511 ``gethrvtime()`` because ``clock_gettime(CLOCK_THREAD_CPUTIME_ID)`` is not
514 - bpo-42233: The :func:`repr` of :mod:`typing` types containing
515 :ref:`Generic Alias Types <types-genericalias>` previously did not show
519 - bpo-41754: webbrowser: Ignore *NotADirectoryError* when calling
520 ``xdg-settings``.
522 - bpo-29566: ``binhex.binhex()`` consisently writes macOS 9 line endings.
524 - bpo-42183: Fix a stack overflow error for asyncio Task or Future repr().
529 - bpo-42146: Fix memory leak in :func:`subprocess.Popen` in case an uid
533 - bpo-42140: Improve asyncio.wait function to create the futures set just
536 - bpo-42103: :exc:`~plistlib.InvalidFileException` and :exc:`RecursionError`
541 - bpo-41052: Pickling heap types implemented in C with protocols 0 and 1
544 - bpo-41491: plistlib: fix parsing XML plists with hexadecimal integer
547 - bpo-42065: Fix an incorrectly formatted error from
551 - bpo-41966: Fix pickling pure Python :class:`datetime.time` subclasses.
554 - bpo-41976: Fixed a bug that was causing :func:`ctypes.util.find_library`
556 gcc>=9 is available and ``ldconfig`` is not. Patch by Pablo Galindo
558 - bpo-41900: C14N 2.0 serialisation in xml.etree.ElementTree failed for
561 - bpo-41840: Fix a bug in the :mod:`symtable` module that was causing
562 module-scope global variables to not be reported as both local and global.
565 - bpo-41831: ``str()`` for the ``type`` attribute of the ``tkinter.Event``
569 - bpo-41817: fix `tkinter.EventType` Enum so all members are strings, and
572 - bpo-41815: Fix SQLite3 segfault when backing up closed database. Patch
575 - bpo-41316: Fix the :mod:`tarfile` module to write only basename of TAR
578 - bpo-16396: Allow ``ctypes.wintypes`` to be imported on non-Windows
581 - bpo-40592: :func:`shutil.which` now ignores empty entries in
584 - bpo-40550: Fix time-of-check/time-of-action issue in
587 - bpo-40492: Fix ``--outfile`` for :mod:`cProfile` / :mod:`profile` not
591 - bpo-40105: ZipFile truncates files to avoid corruption when a shorter
592 comment is provided in append ("a") mode. Patch by Jan Mazur.
594 - bpo-27321: Fixed KeyError exception when flattening an email to a string
595 attempts to replace a non-existent Content-Transfer-Encoding header.
598 -------------
600 - bpo-42153: Fix the URL for the IMAP protocol documents.
602 - bpo-42061: Document __format__ functionality for IP addresses.
604 - bpo-41910: Document the default implementation of `object.__eq__`.
606 - bpo-42010: Clarify that subscription expressions are also valid for
608 library, and for user-defined classes and types if the classmethod
609 :meth:`__class_getitem__` is provided.
611 - bpo-41805: Documented :ref:`generic alias type <types-genericalias>` and
615 - bpo-41774: In Programming FAQ "Sequences (Tuples/Lists)" section, add "How
618 - bpo-35293: Fix RemovedInSphinx40Warning when building the documentation.
619 Patch by Dong-hee Na.
621 - bpo-41726: Update the refcounts info of ``PyType_FromModuleAndSpec``.
623 - bpo-39693: Fix tarfile's extractfile documentation
625 - bpo-39416: Document some restrictions on the default string
629 -----
631 - bpo-40754: Include ``_testinternalcapi`` module in Windows installer for
634 - bpo-41739: Fix test_logging.test_race_between_set_target_and_flush(): the
638 - bpo-41970: Avoid a test failure in ``test_lib2to3`` if the module has
641 - bpo-41944: Tests for CJK codecs no longer call ``eval()`` on content
644 - bpo-41939: Fix test_site.test_license_exists_at_url(): call
648 - bpo-41561: test_ssl: skip test_min_max_version_mismatch when TLS 1.0 is
651 - bpo-41602: Add tests for SIGINT handling in the runpy module.
653 - bpo-41306: Fixed a failure in ``test_tk.test_widgets.ScaleTest`` happening
657 -----
659 - bpo-42398: Fix a race condition in "make regen-all" when make -jN option
660 is used to run jobs in parallel. The clinic.py script now only use atomic
664 - bpo-41617: Fix building ``pycore_bitutils.h`` internal header on old clang
668 - bpo-38249: Update :c:macro:`Py_UNREACHABLE` to use __builtin_unreachable()
669 if only the compiler is able to use it. Patch by Dong-hee Na.
671 - bpo-40998: Addressed three compiler warnings found by undefined behavior
675 -------
677 - bpo-42120: Remove macro definition of ``copysign`` (to ``_copysign``) in
680 - bpo-38439: Updates the icons for IDLE in the Windows Store package.
682 - bpo-41744: Fixes automatic import of props file when using the Nuget
685 - bpo-41557: Update Windows installer to use SQLite 3.33.0.
687 - bpo-38324: Avoid Unicode errors when accessing certain locale data on
691 -----
693 - bpo-41116: Ensure distutils.unixxcompiler.find_library_file can find
696 - bpo-41100: Add support for macOS 11 and Apple Silicon systems.
698 It is now possible to build "Universal 2" binaries using
699 "--enable-universalsdk --with-universal-archs=universal2".
703 target. This is tested using Xcode 11 and later.
705 - bpo-38443: The ``--enable-universalsdk`` and ``--with-universal-archs``
709 - bpo-41471: Ignore invalid prefix lengths in system proxy excludes.
711 - bpo-41557: Update macOS installer to use SQLite 3.33.0.
714 ----
716 - bpo-42426: Fix reporting offset of the RE error in searchengine.
718 - bpo-42415: Get docstrings for IDLE calltips more often by using
721 - bpo-33987: Mostly finish using ttk widgets, mainly for editor, settings,
724 - bpo-41775: Use 'IDLE Shell' as shell title
726 - bpo-35764: Rewrite the Calltips doc section.
728 - bpo-40181: In calltips, stop reminding that '/' marks the end of
729 positional-only arguments.
731 - bpo-40511: Typing opening and closing parentheses inside the parentheses
733 of an existing open call-tip, e.g. when typed in a string literal.
735 - bpo-38439: Add a 256×256 pixel IDLE icon to the Windows .ico file. Created
736 by Andrew Clover. Remove the low-color gif variations from the .ico file.
739 -----
741 - bpo-42015: Fix potential crash in deallocating method objects when
742 dynamically allocated `PyMethodDef`'s lifetime is managed through the
745 - bpo-41986: :c:data:`Py_FileSystemDefaultEncodeErrors` and
752 *Release date: 2020-10-04*
755 -------
757 - bpo-41815: Fix SQLite3 segfault when backing up closed database. Patch
760 - bpo-41662: No longer override exceptions raised in ``__len__()`` of a
764 - bpo-41662: Fixed crash when mutate list of parameters during iteration in
767 - bpo-39728: fix default `_missing_` so a duplicate `ValueError` is not set
771 -----
773 - bpo-41602: Add tests for SIGINT handling in the runpy module.
776 -----
778 - bpo-38249: Update :c:macro:`Py_UNREACHABLE` to use __builtin_unreachable()
779 if only the compiler is able to use it. Patch by Dong-hee Na.
785 *Release date: 2020-09-16*
788 -----------------
790 - bpo-41780: Fix :meth:`__dir__` of :class:`types.GenericAlias`. Patch by
793 - bpo-41690: Fix a possible stack overflow in the parser when parsing
797 - bpo-41681: Fixes the wrong error description in the error raised by using
798 2 `,` in format string in f-string and :meth:`str.format`.
800 - bpo-41654: Fix a crash that occurred when destroying subclasses of
803 - bpo-41631: The ``_ast`` module uses again a global state. Using a module
804 state per module instance is causing subtle practical problems. For
809 - bpo-41533: Free the stack allocated in ``va_build_stack`` if
810 ``do_mkstack`` fails and the stack is not a ``small_stack``.
812 - bpo-41531: Fix a bug that was dropping keys when compiling dict literals
815 - bpo-41525: The output of ``python --help`` contains now only ASCII
818 - bpo-29590: Make the stack trace correct after calling
823 -------
825 - bpo-41517: fix bug allowing Enums to be extended via multiple inheritance
827 - bpo-39587: use the correct mix-in data type when constructing Enums
829 - bpo-41789: Honor `object` overrides in `Enum` class creation
832 - bpo-39651: Fix a race condition in the ``call_soon_threadsafe()`` method
833 of ``asyncio.ProactorEventLoop``: do nothing if the self-pipe socket has
836 - bpo-41720: Fixed :meth:`turtle.Vec2D.__rmul__` for arguments which are not
839 - bpo-41696: Fix handling of debug mode in :func:`asyncio.run`. This allows
840 setting ``PYTHONASYNCIODEBUG`` or ``-X dev`` to enable asyncio debug mode
843 - bpo-41687: Fix implementation of sendfile to be compatible with Solaris.
845 - bpo-39010: Restarting a ``ProactorEventLoop`` on Windows no longer logs
848 - bpo-41609: The pdb whatis command correctly reports instance methods as
851 - bpo-32751: When cancelling the task due to a timeout,
852 :meth:`asyncio.wait_for` will now wait until the cancellation is complete
853 also in the case when *timeout* is <= 0, like it does with positive
856 - bpo-37658: :meth:`asyncio.wait_for` now properly handles races between
859 - bpo-40782: Change the method asyncio.AbstractEventLoop.run_in_executor to
862 - bpo-41520: Fix :mod:`codeop` regression that prevented turning compile
865 - bpo-41503: Fixed a race between setTarget and flush in
868 - bpo-41344: Prevent creating :class:`shared_memory.SharedMemory` objects
871 - bpo-41025: Fixed an issue preventing the C implementation of
874 - bpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than
877 - bpo-33660: Fix pathlib.PosixPath to resolve a relative path located on the
881 -------------
883 - bpo-37149: Change Shipman tkinter doc link from archive.org to TkDocs.
887 - bpo-41624: Fix the signature of :class:`typing.Coroutine`.
889 - bpo-40204: Enable Sphinx 3.2 ``c_allow_pre_v3`` option and disable
893 - bpo-40979: Refactored typing.rst, arranging more than 70 classes,
894 functions, and decorators into new sub-sections.
896 - bpo-39883: Make code, examples, and recipes in the Python documentation be
901 -----
903 - bpo-41731: Make test_cmd_line_script pass with option '-vv'.
906 -----
908 - bpo-41617: Fix ``pycore_byteswap.h`` header file to support old clang
909 versions: ``__builtin_bswap16()`` is not available in LLVM clang 3.0.
912 -------
914 - bpo-41526: Fixed layout of final page of the installer by removing the
918 -----
920 - bpo-41524: Fix bug in PyOS_mystrnicmp and PyOS_mystricmp that incremented
927 *Release date: 2020-08-11*
930 -----------------
932 - bpo-38156: Handle interrupts that come after EOF correctly in
936 -------
938 - bpo-41497: Fix potential UnicodeDecodeError in dis module.
940 - bpo-41490: Update :mod:`ensurepip` to install pip 20.2.1 and setuptools
943 - bpo-41467: On Windows, fix asyncio ``recv_into()`` return value when the
944 socket/pipe is closed (:exc:`BrokenPipeError`): return ``0`` rather than
947 - bpo-41425: Make tkinter doc example runnable.
949 - bpo-41384: Raise TclError instead of TypeError when an unknown option is
952 - bpo-38731: Fix :exc:`NameError` in command-line interface of
955 - bpo-41317: Use add_done_callback() in asyncio.loop.sock_accept() to
958 - bpo-41364: Reduce import overhead of :mod:`uuid`.
960 - bpo-41341: Recursive evaluation of `typing.ForwardRef` in
963 - bpo-41182: selector: use DefaultSelector based upon implementation
965 - bpo-40726: Handle cases where the ``end_lineno`` is ``None`` on
969 -------------
971 - bpo-41045: Add documentation for debug feature of f-strings.
973 - bpo-41314: Changed the release when ``from __future__ import annotations``
978 -------
980 - bpo-41492: Fixes the description that appears in UAC prompts.
982 - bpo-40948: Improve post-install message to direct people to the "py"
985 - bpo-41412: The installer will now fail to install on Windows 7 and Windows
986 8. Further, the UCRT dependency is now always downloaded on demand.
988 - bpo-40741: Update Windows release to include SQLite 3.32.3.
991 ----
993 - bpo-41468: Improve IDLE run crash error message (which users should never
996 - bpo-41373: Save files loaded with no line ending, as when blank, or
1004 *Release date: 2020-07-20*
1007 --------
1009 - bpo-41304: Fixes `python3x._pth` being ignored on Windows, caused by the
1010 fix for :issue:`29778` (CVE-2020-15801).
1012 - bpo-41162: Audit hooks are now cleared later during finalization to avoid
1015 - bpo-29778: Ensure :file:`python3.dll` is loaded from correct locations
1016 when Python is embedded (CVE-2020-15523).
1018 - bpo-39603: Prevent http header injection by rejecting control characters
1022 -----------------
1024 - bpo-41295: Resolve a regression in CPython 3.8.4 where defining
1025 "__setattr__" in a multi-inheritance setup and calling up the hierarchy
1029 - bpo-41247: Always cache the running loop holder when running
1032 - bpo-41252: Fix incorrect refcounting in _ssl.c's
1035 - bpo-41215: Use non-NULL default values in the PEG parser keyword list to
1039 - bpo-41218: Python 3.8.3 had a regression where compiling with
1044 - bpo-41175: Guard against a NULL pointer dereference within bytearrayobject
1047 - bpo-39960: The "hackcheck" that prevents sneaking around a type's
1052 -------
1054 - bpo-41288: Unpickling invalid NEWOBJ_EX opcode with the C implementation
1057 - bpo-39017: Avoid infinite loop when reading specially crafted TAR files
1058 using the tarfile module (CVE-2019-20907).
1060 - bpo-41235: Fix the error handling in
1063 - bpo-41207: In distutils.spawn, restore expectation that DistutilsExecError
1064 is raised when the command is not found.
1066 - bpo-39168: Remove the ``__new__`` method of :class:`typing.Generic`.
1068 - bpo-41194: Fix a crash in the ``_ast`` module: it can no longer be loaded
1071 - bpo-39384: Fixed email.contentmanager to allow set_content() to set a null
1075 -------------
1077 - bpo-37703: Updated Documentation to comprehensively elaborate on the
1081 -----
1083 - bpo-40741: Update macOS installer to use SQLite 3.32.3.
1086 ----
1088 - bpo-41300: Save files with non-ascii chars. Fix regression released in
1091 - bpo-37765: Add keywords to module name completion list. Rewrite
1095 -----
1097 - bpo-40170: Revert :c:func:`PyType_HasFeature` change: it reads again
1099 API is not used, rather than always calling :c:func:`PyType_GetFlags`
1106 *Release date: 2020-07-02*
1109 --------
1111 - bpo-41004: The __hash__() methods of ipaddress.IPv4Interface and
1118 -----------------
1120 - bpo-41094: Fix decoding errors with audit when open files with non-ASCII
1121 names on non-UTF-8 locale.
1123 - bpo-41084: Prefix the error message with 'f-string: ', when parsing an
1124 f-string expression which throws a :exc:`SyntaxError`.
1126 - bpo-41076: Pre-feed the parser with the location of the f-string
1127 expression, not the f-string itself, which allows us to skip the shifting
1128 of the AST node locations after the parsing is completed.
1130 - bpo-40939: Deprecate :c:func:`PyNode_Compile`.
1132 - bpo-41056: Fixes a reference to deallocated stack space during startup
1134 supplied via -c. (discovered via Coverity)
1136 - bpo-41061: Fix incorrect expressions and asserts in hashtable code and
1139 - bpo-41052: Opt out serialization/deserialization for _random.Random
1141 - bpo-40939: Deprecate :c:func:`PyParser_SimpleParseStringFlags`,
1145 - bpo-35975: Stefan Behnel reported that cf_feature_version is used even
1146 when PyCF_ONLY_AST is not set. This is against the intention and against
1149 - bpo-40985: Fix a bug that caused the :exc:`SyntaxError` text to be empty
1153 - bpo-40958: Fix a possible buffer overflow in the PEG parser when gathering
1156 - bpo-40957: Fix refleak in _Py_fopen_obj() when PySys_Audit() fails
1158 - bpo-40947: The Python :ref:`Path Configuration <init-path-config>` now
1161 - bpo-40847: Fix a bug where a line with only a line continuation character
1162 is not considered a blank line at tokenizer level. In such cases, more
1168 - bpo-40824: Unexpected errors in calling the ``__iter__`` method are no
1173 - bpo-19569: Add the private macros ``_Py_COMP_DIAG_PUSH``,
1177 -------
1179 - bpo-41193: The ``write_history()`` atexit function of the readline
1181 is read-only, instead of only ignoring :exc:`FileNotFoundError` and
1184 - bpo-41161: The decimal module now requires libmpdec-2.5.0. Users of
1185 --with-system-libmpdec should update their system library.
1187 - bpo-40874: The decimal module now requires libmpdec-2.5.0.
1189 - bpo-41138: Fixed the :mod:`trace` module CLI for Python source files with
1190 non-UTF-8 encoding.
1192 - bpo-31938: Fix default-value signatures of several functions in the
1193 :mod:`select` module - by Anthony Sottile.
1195 - bpo-41068: Fixed reading files with non-ASCII names from ZIP archive
1198 - bpo-41058: :func:`pdb.find_function` now correctly determines the source
1201 - bpo-41056: Fix a NULL pointer dereference within the ssl module during a
1204 - bpo-41056: Fixed an instance where a MemoryError within the zoneinfo
1208 - bpo-41048: :func:`mimetypes.read_mime_types` function reads the rule file
1209 using UTF-8 encoding, not the locale encoding. Patch by Srinivas Reddy
1212 - bpo-41043: Fixed the use of :func:`~glob.glob` in the stdlib: literal part
1213 of the path is now always correctly escaped.
1215 - bpo-40448: :mod:`ensurepip` now disables the use of `pip` cache when
1219 - bpo-40967: Removed :meth:`asyncio.Task.current_task` and
1222 - bpo-40955: Fix a minor memory leak in :mod:`subprocess` module when
1225 - bpo-40855: The standard deviation and variance functions in the statistics
1228 - bpo-40924: Removed support for loaders implementing .files and supplying
1231 - bpo-40939: Use the new PEG parser when generating the stdlib
1234 - bpo-40834: Fix truncate when sending str object
1237 - bpo-26407: Unexpected errors in calling the ``__iter__`` method are no
1241 - bpo-38488: Update ensurepip to install pip 20.1.1 and setuptools 47.1.0.
1243 - bpo-36543: Restored the deprecated :mod:`xml.etree.cElementTree` module.
1245 - bpo-34226: Fix `cgi.parse_multipart` without content_length. Patch by
1249 -----
1251 - bpo-41085: Fix integer overflow in the :meth:`array.array.index` method on
1252 64-bit Windows for index larger than ``2**31``.
1254 - bpo-41069: :data:`test.support.TESTFN` and the current directory for tests
1255 when run via ``test.regrtest`` contain now non-ascii characters if
1258 - bpo-38377: On Linux, skip tests using multiprocessing if the current user
1263 - bpo-41009: Fix use of ``support.require_{linux|mac|freebsd}_version()``
1266 - bpo-41003: Fix ``test_copyreg`` when ``numpy`` is installed:
1270 - bpo-40964: Disable remote :mod:`imaplib` tests, host cyrus.andrew.cmu.edu
1271 is blocking incoming connections.
1273 - bpo-40927: Fix test_binhex when run twice: it now uses
1277 - bpo-34401: Make test_gdb properly run on HP-UX. Patch by Michael Osipov.
1280 -----
1282 - bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``.
1285 -------
1287 - bpo-41074: Fixed support of non-ASCII names in functions
1288 :func:`msilib.OpenDatabase` and :func:`msilib.init_database` and non-ASCII
1291 - bpo-40164: Updates Windows OpenSSL to 1.1.1g
1293 - bpo-37556: Extend py.exe help to mention overrides via venv, shebang,
1297 -----
1299 - bpo-39580: Avoid opening Finder window if running installer from the
1302 - bpo-41100: Fix configure error when building on macOS 11. Note that the
1305 and running on the developer preview. Big Sur is expected to be fully
1308 - bpo-41005: fixed an XDG settings issue not allowing macos to open browser
1312 ----
1314 - bpo-41152: The encoding of ``stdin``, ``stdout`` and ``stderr`` in IDLE is
1315 now always UTF-8.
1317 - bpo-41144: Make Open Module open a special module such as os.path.
1320 -----
1322 - bpo-36346: Mark ``Py_UNICODE_COPY``, ``Py_UNICODE_FILL``,
1328 - bpo-36020: On Windows, ``#include "pyerrors.h"`` no longer defines
1331 - bpo-40703: The PyType_FromSpec*() functions no longer overwrite the type's
1332 "__module__" attribute if it is set via "Py_tp_members" or "Py_tp_getset".
1338 *Release date: 2020-06-09*
1341 -------
1343 - bpo-40924: `importlib.resources`: Reverted ``TraversableResources``
1344 implementations from the built-in loaders (SourceFileLoader and
1349 -----
1351 - bpo-40684: ``make install`` now uses the ``PLATLIBDIR`` variable for the
1352 destination ``lib-dynload/`` directory when ``./configure
1353 --with-platlibdir`` is used.
1359 *Release date: 2020-06-08*
1362 -----------------
1364 - bpo-40904: Fix possible segfault in the new PEG parser when parsing
1365 f-string containing yield statements with no value (:code:`f"{yield}"`).
1368 - bpo-40903: Fixed a possible segfault in the new PEG parser when producing
1372 - bpo-40880: Fix invalid memory read in the new parser when checking
1375 - bpo-40883: Fix memory leak in when parsing f-strings in the new parser.
1378 - bpo-40870: Raise :exc:`ValueError` when validating custom AST's where the
1382 - bpo-40854: Allow overriding :data:`sys.platlibdir` via a new
1385 - bpo-40826: Fix GIL usage in :c:func:`PyOS_Readline`: lock the GIL to set
1386 an exception and pass the Python thread state when checking if there is a
1389 - bpo-40780: Fix a corner case where g-style string formatting of a float
1392 - bpo-38964: When there's a :exc:`SyntaxError` in the expression part of an
1396 - bpo-40750: Support the "-d" debug flag in the new PEG parser. Patch by
1399 - bpo-40217: Instances of types created with
1402 The user is expected to manually visit the object's class. Patch by Pablo
1405 - bpo-40696: Fix a hang that can arise after :meth:`generator.throw` due to
1409 -------
1411 - bpo-39791: Refresh importlib.metadata from importlib_metadata 1.6.1.
1413 - bpo-40807: Stop codeop._maybe_compile, used by code.InteractiveInterpreter
1416 - bpo-39791: Built-in loaders (SourceFileLoader and ZipImporter) now supply
1420 - bpo-17005: The topological sort functionality that was introduced
1425 - bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time
1428 - bpo-40767: :mod:`webbrowser` now properly finds the default browser in
1432 - bpo-40791: :func:`hashlib.compare_digest` uses OpenSSL's
1433 ``CRYPTO_memcmp()`` function when OpenSSL is available.
1435 - bpo-40795: :mod:`ctypes` module: If ctypes fails to convert the result of
1437 sys.unraisablehook is now called with an exception set. Previously, the
1440 - bpo-30008: Fix :mod:`ssl` code to be compatible with OpenSSL 1.1.x builds
1441 that use ``no-deprecated`` and ``--api=1.1.0``.
1443 - bpo-30064: Fix asyncio ``loop.sock_*`` race condition issue
1445 - bpo-40759: Deprecate the :mod:`symbol` module.
1447 - bpo-40737: Fix possible reference leak for :mod:`sqlite3` initialization.
1449 - bpo-40698: :mod:`distutils` upload creates SHA2-256 and Blake2b-256
1450 digests. MD5 digests is skipped if platform blocks MD5.
1452 - bpo-40695: :mod:`hashlib` no longer falls back to builtin hash
1453 implementations when OpenSSL provides a hash digest and the algorithm is
1456 - bpo-9216: func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP
1460 - bpo-40614: :func:`ast.parse` will not parse self documenting expressions
1461 in f-strings when passed ``feature_version`` is less than ``(3, 8)``.
1463 - bpo-40671: Prepare ``_hashlib`` for :pep:`489` and use
1466 - bpo-32309: Added a new :term:`coroutine` :func:`asyncio.to_thread`. It is
1467 mainly used for running IO-bound functions in a separate thread to avoid
1468 blocking the event loop, and essentially works as a high-level version of
1472 - bpo-40630: Added :func:`tracemalloc.reset_peak` to set the peak size of
1476 - bpo-13097: ``ctypes`` now raises an ``ArgumentError`` when a callback is
1479 - bpo-23082: Updated the error message and docs of PurePath.relative_to() to
1482 - bpo-39244: Fixed :class:`multiprocessing.context.get_all_start_methods` to
1485 - bpo-39040: Fix parsing of invalid mime headers parameters by collapsing
1486 whitespace between encoded words in a bare-quote-string.
1488 - bpo-35714: :exc:`struct.error` is now raised if there is a null character
1491 - bpo-36290: AST nodes are now raising :exc:`TypeError` on conflicting
1495 -----
1497 - bpo-17258: Skip some :mod:`multiprocessing` tests when MD5 hash digest is
1501 -----
1503 - bpo-40514: Remove ``--with-experimental-isolated-subinterpreters``
1507 - bpo-40683: Fixed an issue where the :mod:`zoneinfo` module and its tests
1508 were not included when Python is installed with ``make``.
1511 -------
1513 - bpo-39631: Changes the registered MIME type for ``.py`` files on Windows
1514 to ``text/x-python`` instead of ``text/plain``.
1516 - bpo-40677: Manually define IO_REPARSE_TAG_APPEXECLINK in case some old
1520 -----
1522 - bpo-40741: Update macOS installer to use SQLite 3.32.2.
1525 ----
1527 - bpo-39885: Make context menu Cut and Copy work again when right-clicking
1530 - bpo-40723: Make test_idle pass when run after import.
1533 -----
1535 - bpo-40910: Export explicitly the :c:func:`Py_GetArgcArgv` function to the
1537 which no longer works since Python is built with ``-fvisibility=hidden``.
1539 - bpo-40724: Allow defining buffer slots in type specs.
1541 - bpo-40826: :c:func:`PyOS_InterruptOccurred` now fails with a fatal error
1542 if it is called with the GIL released.
1548 *Release date: 2020-05-19*
1551 --------
1553 - bpo-40501: :mod:`uuid` no longer uses :mod:`ctypes` to load
1557 -----------------
1559 - bpo-40663: Correctly generate annotations where parentheses are omitted
1562 - bpo-40596: Fixed :meth:`str.isidentifier` for non-canonicalized strings
1563 containing non-BMP characters on Windows.
1565 - bpo-40593: Improved syntax errors for invalid characters in source code.
1567 - bpo-40585: Fixed a bug when using :func:`codeop.compile_command` that was
1571 - bpo-40566: Apply :pep:`573` to :mod:`abc`.
1573 - bpo-40502: Initialize ``n->n_col_offset``. (Patch by Joannah Nanjekye)
1575 - bpo-40527: Fix command line argument parsing: no longer write errors
1578 - bpo-1635741: Port :mod:`errno` to multiphase initialization (:pep:`489`).
1580 - bpo-40523: Add pass-throughs for :func:`hash` and :func:`reversed` to
1583 - bpo-1635741: Port :mod:`syslog` to multiphase initialization (:pep:`489`).
1585 - bpo-40246: Reporting a specialised error message for invalid string
1586 prefixes, which was introduced in :issue:`40246`, is being reverted due to
1589 `bg="#d00" if clear else"#fca"` were failing to parse, which is not an
1592 - bpo-40417: Fix imp module deprecation warning when PyImport_ReloadModule
1593 is called. Patch by Robert Rouhani.
1595 - bpo-40408: Fixed support of nested type variables in GenericAlias (e.g.
1598 - bpo-1635741: Port _stat module to multiphase initialization (:pep:`489`).
1600 - bpo-29587: Enable implicit exception chaining when calling
1603 - bpo-40328: Add tools for generating mappings headers for CJKCodecs.
1605 - bpo-40228: Setting frame.f_lineno is now robust w.r.t. changes in the
1606 source-to-bytecode compiler
1608 - bpo-38880: Added the ability to list interpreters associated with channel
1611 - bpo-37986: Improve performance of :c:func:`PyLong_FromDouble` for values
1615 -------
1617 - bpo-40662: Fixed :func:`ast.get_source_segment` for ast nodes that have
1620 - bpo-40665: Convert :mod:`bisect` to use Argument Clinic.
1622 - bpo-40536: Added the :func:`~zoneinfo.available_timezones` function to the
1625 - bpo-40645: The :class:`hmac.HMAC` exposes internal implementation details.
1629 - bpo-40645: The internal module ``_hashlib`` wraps and exposes OpenSSL's
1634 - bpo-40637: Builtin hash modules can now be disabled or selectively enabled
1635 with ``configure --with-builtin-hashlib-hashes=sha3,blake1`` or
1636 ``--without-builtin-hashlib-hashes``.
1638 - bpo-37630: The :mod:`hashlib` module can now use SHA3 hashes and SHAKE XOF
1641 - bpo-40479: The :mod:`hashlib` now compiles with OpenSSL 3.0.0-alpha2.
1643 - bpo-40257: Revert changes to :func:`inspect.getdoc`.
1645 - bpo-40607: When cancelling a task due to timeout, :meth:`asyncio.wait_for`
1649 - bpo-40612: Fix edge cases in SyntaxError formatting. If the offset is <=
1650 0, no caret is printed. If the offset is > line length, the caret is
1653 - bpo-40597: If text content lines are longer than policy.max_line_length,
1654 always use a content-encoding to make sure they are wrapped.
1656 - bpo-40571: Added functools.cache() as a simpler, more discoverable way to
1659 - bpo-40503: :pep:`615`, the :mod:`zoneinfo` module. Adds support for the
1662 - bpo-40397: Removed attributes ``__args__`` and ``__parameters__`` from
1665 - bpo-40549: Convert posixmodule.c ("posix" or "nt" module) to the
1668 - bpo-31033: Add a ``msg`` argument to :meth:`Future.cancel` and
1671 - bpo-40541: Added an optional *counts* parameter to random.sample().
1673 - bpo-40515: The :mod:`ssl` and :mod:`hashlib` modules now actively check
1674 that OpenSSL is build with thread support. Python 3.7.0 made thread
1675 support mandatory and no longer works safely with a no-thread builds.
1677 - bpo-31033: When a :class:`asyncio.Task` is cancelled, the exception
1681 - bpo-40504: :func:`functools.lru_cache` objects can now be the targets of
1684 - bpo-40559: Fix possible memory leak in the C implementation of
1687 - bpo-40480: ``fnmatch.fnmatch()`` could take exponential time in the
1692 - bpo-40495: :mod:`compileall` is now able to use hardlinks to prevent
1696 - bpo-40457: The ssl module now support OpenSSL builds without TLS 1.0 and
1699 - bpo-40355: Improve error reporting in :func:`ast.literal_eval` in the
1701 any non-conforming elements. Patch by Curtis Bucher.
1703 - bpo-40465: Deprecated the optional *random* argument to
1706 - bpo-40459: :func:`platform.win32_ver` now produces correct *ptype* strings
1709 - bpo-39435: The first argument of :func:`pickle.loads` is now
1710 positional-only.
1712 - bpo-39305: Update :mod:`nntplib` to merge :class:`nntplib.NNTP` and
1713 :class:`nntplib._NNTPBase`. Patch by Dong-hee Na.
1715 - bpo-32494: Update :mod:`dbm.gnu` to use gdbm_count if possible when
1716 calling :func:`len`. Patch by Dong-hee Na.
1718 - bpo-40453: Add ``isolated=True`` keyword-only parameter to
1722 - bpo-40286: Remove ``_random.Random.randbytes()``: the C implementation of
1726 - bpo-40394: Added default arguments to
1729 - bpo-39995: Fix a race condition in concurrent.futures._ThreadWakeup:
1730 access to _ThreadWakeup is now protected with the shutdown lock.
1732 - bpo-30966: ``Process.shutdown(wait=True)`` of :mod:`concurrent.futures`
1735 - bpo-30966: Add a new :meth:`~multiprocessing.SimpleQueue.close` method to
1739 - bpo-39966: Revert bpo-25597. :class:`unittest.mock.MagicMock` with wraps'
1742 - bpo-39791: Added ``files()`` function to importlib.resources with support
1746 - bpo-40375: :meth:`imaplib.IMAP4.unselect` is added. Patch by Dong-hee Na.
1748 - bpo-40389: ``repr()`` now returns ``typing.Optional[T]`` when called for
1749 ``typing.Union`` of two types, one of which is ``NoneType``.
1751 - bpo-40291: Add support for CAN_J1939 sockets (available on Linux 5.4+)
1753 - bpo-40273: :class:`types.MappingProxyType` is now reversible.
1755 - bpo-39075: The repr for :class:`types.SimpleNamespace` is now insertion
1758 - bpo-40192: On AIX, :func:`~time.thread_time` is now implemented with
1763 - bpo-40025: Raise TypeError when _generate_next_value_ is defined after
1766 - bpo-39058: In the argparse module, the repr for Namespace() and other
1768 Formerly, it displayed in alphabetical order even though argument order is
1771 - bpo-24416: The ``isocalendar()`` methods of :class:`datetime.date` and
1776 -------------
1778 - bpo-34790: Add version of removal for explicit passing of coros to
1781 - bpo-40561: Provide docstrings for webbrowser open functions.
1783 - bpo-40499: Mention that :func:`asyncio.wait` requires a non-empty set of
1786 - bpo-39705: Tutorial example for sorted() in the Loop Techniques section is
1787 given a better explanation. Also a new example is included to explain
1790 - bpo-39435: Fix an incorrect signature for :func:`pickle.loads` in the docs
1793 -----
1795 - bpo-40055: distutils.tests now saves/restores warnings filters to leave
1799 - bpo-40436: test_gdb and test.pythoninfo now check gdb command exit code.
1802 -----
1804 - bpo-40653: Move _dirnameW out of HAVE_SYMLINK to fix a potential compiling
1807 - bpo-40514: Add ``--with-experimental-isolated-subinterpreters`` build
1812 -------
1814 - bpo-40650: Include winsock2.h in pytime.c for timeval.
1816 - bpo-40458: Increase reserved stack space to prevent overflow crash on
1819 - bpo-39148: Add IPv6 support to :mod:`asyncio` datagram endpoints in
1824 -----
1826 - bpo-34956: When building Python on macOS from source, ``_tkinter`` now
1827 links with non-system Tcl and Tk frameworks if they are installed in
1829 If a macOS SDK is explicitly configured, by using
1830 ``--enable-universalsdk=`` or ``-isysroot``, only the SDK itself is
1832 ``--with-tcltk-includes`` and ``--with-tcltk-libs``.
1834 - bpo-35569: Expose RFC 3542 IPv6 socket options.
1837 -----------
1839 - bpo-40479: Update multissltest helper to test with latest OpenSSL 1.0.2,
1840 1.1.0, 1.1.1, and 3.0.0-alpha.
1842 - bpo-40431: Fix a syntax typo in ``turtledemo`` that now raises a
1845 - bpo-40163: Fix multissltest tool. OpenSSL has changed download URL for old
1850 -----
1852 - bpo-39465: Remove the ``_PyUnicode_ClearStaticStrings()`` function from
1855 - bpo-38787: Add PyCFunction_CheckExact() macro for exact type checks now
1859 - bpo-40545: Declare ``_PyErr_GetTopmostException()`` with ``PyAPI_FUNC()``
1863 - bpo-40412: Nullify inittab_copy during finalization, preventing future
1867 - bpo-40429: The :c:func:`PyThreadState_GetFrame` function now returns a
1870 - bpo-40428: Remove the following functions from the C API. Call
1882 - bpo-40421: New :c:func:`PyFrame_GetBack` function: get the frame next
1885 - bpo-40421: New :c:func:`PyFrame_GetCode` function: return a borrowed
1888 - bpo-40217: Ensure that instances of types created with
1894 - bpo-38787: Module C state is now accessible from C-defined heap type
1901 *Release date: 2020-04-27*
1904 --------
1906 - bpo-40121: Fixes audit events raised on creating a new socket.
1908 - bpo-39073: Disallow CR or LF in email.headerregistry.Address arguments to
1911 - bpo-39503: CVE-2020-8492: The
1919 -----------------
1921 - bpo-40313: Improve the performance of bytes.hex().
1923 - bpo-40334: Switch to a new parser, based on PEG. For more details see PEP
1924 617. To temporarily switch back to the old parser, use ``-X oldparser`` or
1929 - bpo-40267: Fix the tokenizer to display the correct error message, when
1930 there is a SyntaxError on the last input character and no newline follows.
1934 - bpo-39522: Correctly unparse explicit ``u`` prefix for strings when
1937 - bpo-40246: Report a specialized error message, `invalid string prefix`,
1940 - bpo-40082: Fix the signal handler: it now always uses the main
1943 - bpo-37388: str.encode() and str.decode() no longer check the encoding and
1948 - bpo-40077: Fix possible refleaks in :mod:`_json`, memo of PyScannerObject
1951 - bpo-37207: Speed up calls to ``dict()`` by using the :pep:`590`
1954 - bpo-40141: Add column and line information to ``ast.keyword`` nodes. Patch
1957 - bpo-1635741: Port :mod:`resource` to multiphase initialization
1960 - bpo-1635741: Port :mod:`math` to multiphase initialization (:pep:`489`).
1962 - bpo-1635741: Port _uuid module to multiphase initialization (:pep:`489`).
1964 - bpo-40077: Convert json module to use :c:func:`PyType_FromSpec`.
1966 - bpo-40067: Improve the error message for multiple star expressions in an
1969 - bpo-1635741: Port _functools module to multiphase initialization (PEP
1972 - bpo-1635741: Port operator module to multiphase initialization (PEP 489).
1975 - bpo-20526: Fix :c:func:`PyThreadState_Clear()`. ``PyThreadState.frame`` is
1977 must not call ``Py_CLEAR(tstate->frame)``.
1979 - bpo-1635741: Port time module to multiphase initialization (:pep:`489`).
1982 - bpo-1635741: Port _weakref extension module to multiphase initialization
1985 - bpo-40020: Fix a leak and subsequent crash in parsetok.c caused by realloc
1988 - bpo-39939: Added str.removeprefix and str.removesuffix methods and
1993 - bpo-39481: Implement PEP 585. This supports list[int], tuple[str, ...]
1996 - bpo-32894: Support unparsing of infinity numbers in postponed annotations.
1999 - bpo-37207: Speed up calls to ``list()`` by using the :pep:`590`
2003 -------
2005 - bpo-40398: :func:`typing.get_args` now always returns an empty tuple for
2008 - bpo-40396: Functions :func:`typing.get_origin`, :func:`typing.get_args`
2012 - bpo-38061: Optimize the :mod:`subprocess` module on FreeBSD using
2013 ``closefrom()``. A single ``close(fd)`` syscall is cheap, but when
2014 ``sysconf(_SC_OPEN_MAX)`` is high, the loop calling ``close(fd)`` on each
2018 fdescfs kernel module, but this is not enabled by default.
2024 - bpo-38061: On FreeBSD, ``os.closerange(fd_low, fd_high)`` now calls
2025 ``closefrom(fd_low)`` if *fd_high* is greater than or equal to
2032 - bpo-40360: The :mod:`lib2to3` module is pending deprecation due to
2035 - bpo-40138: Fix the Windows implementation of :func:`os.waitpid` for exit
2036 code larger than ``INT_MAX >> 8``. The exit status is now interpreted as
2039 - bpo-39942: Set "__main__" as the default module name when "__name__" is
2042 - bpo-40275: The :mod:`logging` package is now imported lazily in
2044 assertion is used.
2046 - bpo-40275: The :mod:`asyncio` package is now imported lazily in
2048 class is used.
2050 - bpo-40330: In :meth:`ShareableList.__setitem__`, check the size of a new
2051 string item after encoding it to utf-8, not before.
2053 - bpo-40148: Added :meth:`pathlib.Path.with_stem()` to create a new Path
2056 - bpo-40325: Deprecated support for set objects in random.sample().
2058 - bpo-40257: Improved help for the :mod:`typing` module. Docstrings are now
2063 - bpo-40257: func:`inspect.getdoc` no longer returns docstring inherited
2064 from the type of the object or from parent class if it is a class if it is
2066 is now shown not only for class, function, method etc, but for any object
2069 - bpo-40287: Fixed ``SpooledTemporaryFile.seek()`` to return the position.
2071 - bpo-40290: Added zscore() to statistics.NormalDist().
2073 - bpo-40282: Allow ``random.getrandbits(0)`` to succeed and to return 0.
2075 - bpo-40286: Add :func:`random.randbytes` function and
2078 - bpo-40277: :func:`collections.namedtuple` now provides a human-readable
2081 - bpo-40270: The included copy of sqlite3 on Windows is now compiled with
2085 - bpo-29255: Wait in `KqueueSelector.select` when no fds are registered
2087 - bpo-40260: Ensure :mod:`modulefinder` uses :func:`io.open_code` and
2090 - bpo-40234: Allow again to spawn daemon threads in subinterpreters (revert
2093 - bpo-39207: Workers in :class:`~concurrent.futures.ProcessPoolExecutor` are
2098 - bpo-40091: Fix a hang at fork in the logging module: the new private
2099 _at_fork_reinit() method is now used to reinitialize locks at fork in the
2102 - bpo-40149: Implement traverse and clear slots in _abc._abc_data type.
2104 - bpo-40208: Remove deprecated :meth:`symtable.SymbolTable.has_exec`.
2106 - bpo-40196: Fix a bug in the :mod:`symtable` module that was causing
2109 - bpo-40190: Add support for ``_SC_AIX_REALMEM`` to :func:`posix.sysconf`.
2111 - bpo-40182: Removed the ``_field_types`` attribute of the
2114 - bpo-36517: Multiple inheritance with :class:`typing.NamedTuple` now raises
2117 - bpo-40126: Fixed reverting multiple patches in unittest.mock. Patcher's
2118 ``__exit__()`` is now never called if its ``__enter__()`` is failed.
2121 - bpo-40094: CGIHTTPRequestHandler of http.server now logs the CGI script
2123 example, if the script is killed by signal 11, it now logs: "CGI script
2124 exit code -11."
2126 - bpo-40108: Improve the error message when triying to import a module using
2130 - bpo-40094: Add :func:`os.waitstatus_to_exitcode` function: convert a wait
2133 - bpo-40089: Fix threading._after_fork(): if fork was not called by a thread
2137 - bpo-40089: Add a private ``_at_fork_reinit()`` method to
2144 - bpo-25780: Expose :data:`~socket.CAN_RAW_JOIN_FILTERS` in the
2147 - bpo-39503: :class:`~urllib.request.AbstractBasicAuthHandler` of
2148 :mod:`urllib.request` now parses all WWW-Authenticate HTTP headers and
2152 - bpo-39812: Removed daemon threads from :mod:`concurrent.futures` by adding
2154 functions prior to joining all non-daemon threads. This allows for
2157 - bpo-40050: Fix ``importlib._bootstrap_external``: avoid creating a new
2161 - bpo-40014: Fix ``os.getgrouplist()``: if ``getgrouplist()`` function fails
2162 because the group list is too small, retry with a larger group list. On
2167 - bpo-40017: Add :data:`time.CLOCK_TAI` constant if the operating system
2170 - bpo-40016: In re docstring, clarify the relationship between inline and
2173 - bpo-39953: Update internal table of OpenSSL error codes in the ``ssl``
2176 - bpo-36144: Added :pep:`584` operators to
2179 - bpo-36144: Added :pep:`584` operators to
2182 - bpo-38891: Fix linear runtime behaviour of the `__getitem__` and
2188 - bpo-39682: Remove undocumented support for *closing* a `pathlib.Path`
2190 but they are now a no-op, making `Path` objects immutable.
2192 - bpo-36144: Added :pep:`584` operators (``|`` and ``|=``) to
2195 - bpo-39011: Normalization of line endings in ElementTree attributes was
2199 - bpo-38410: Properly handle :func:`sys.audit` failures in
2202 - bpo-36541: lib2to3 now recognizes named assignment expressions (the walrus
2205 - bpo-35967: In platform, delay the invocation of 'uname -p' until the
2206 processor attribute is requested.
2208 - bpo-35113: :meth:`inspect.getsource` now returns correct source code for
2213 - bpo-33262: Deprecate passing None as an argument for
2216 - bpo-31758: Prevent crashes when using an uninitialized
2220 -------------
2222 - bpo-27635: The pickle documentation incorrectly claimed that ``__new__``
2225 - bpo-39879: Updated :ref:`datamodel` docs to include :func:`dict` insertion
2228 - bpo-38387: Document :c:macro:`PyDoc_STRVAR` macro in the C-API reference.
2230 - bpo-13743: Some methods within xml.dom.minidom.Element class are now
2234 -----
2236 - bpo-31904: Set expected default encoding in test_c_locale_coercion.py for
2239 - bpo-40162: Update Travis CI configuration to OpenSSL 1.1.1f.
2241 - bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines.
2243 - bpo-40094: Add :func:`test.support.wait_process` function.
2245 - bpo-40003: ``test.bisect_cmd`` now copies Python command line options like
2246 ``-O`` or ``-W``. Moreover, emit a warning if ``test.bisect_cmd`` is used
2247 with ``-w``/``--verbose2`` option.
2249 - bpo-39380: Add the encoding in :class:`ftplib.FTP` and
2250 :class:`ftplib.FTP_TLS` to the constructor as keyword-only and change the
2251 default from ``latin-1`` to ``utf-8`` to follow :rfc:`2640`.
2253 - bpo-39793: Use the same domain when testing ``make_msgid``. Patch by
2256 - bpo-1812: Fix newline handling in doctest.testfile when loading from a
2260 -----
2262 - bpo-38360: Support single-argument form of macOS -isysroot flag.
2264 - bpo-40158: Fix CPython MSBuild Properties in NuGet Package
2267 - bpo-38527: Fix configure check on Solaris for "float word ordering":
2272 -------
2274 - bpo-40164: Updates Windows to OpenSSL 1.1.1f
2276 - bpo-8901: Ignore the Windows registry when the ``-E`` option is used.
2279 -----
2281 - bpo-38329: python.org macOS installers now update the Current version
2286 - bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g.
2289 ----
2291 - bpo-38439: Add a 256×256 pixel IDLE icon to support more modern
2295 - bpo-38689: IDLE will no longer freeze when inspect.signature fails when
2299 -----------
2301 - bpo-40385: Removed the checkpyc.py tool. Please see compileall without
2304 - bpo-40179: Fixed translation of ``#elif`` in Argument Clinic.
2306 - bpo-40094: Fix ``which.py`` script exit code: it now uses
2311 -----
2313 - bpo-40241: Move the :c:type:`PyGC_Head` structure to the internal C API.
2315 - bpo-40170: Convert :c:func:`PyObject_IS_GC` macro to a function to hide
2318 - bpo-40241: Add the functions :c:func:`PyObject_GC_IsTracked` and
2323 - bpo-40170: The :c:func:`PyObject_NEW` macro becomes an alias to the
2329 - bpo-40170: :c:func:`PyType_HasFeature` now always calls
2334 - bpo-40170: Convert the :c:func:`PyObject_GET_WEAKREFS_LISTPTR` macro to a
2338 - bpo-40170: Convert :c:func:`PyObject_CheckBuffer` macro to a function to
2342 - bpo-40170: Always declare :c:func:`PyIndex_Check` as an opaque function to
2346 - bpo-39947: Add :c:func:`PyThreadState_GetID` function: get the unique
2353 *Release date: 2020-03-23*
2356 --------
2358 - bpo-38576: Disallow control characters in hostnames in http.client,
2359 addressing CVE-2019-18348. Such potentially malicious header injection
2363 -----------------
2365 - bpo-40010: Optimize pending calls in multithreaded applications. If a
2367 (:c:func:`Py_AddPendingCall`), the bytecode evaluation loop is no longer
2374 - bpo-1635741: Port _weakref extension module to multiphase initialization
2377 - bpo-1635741: Port _collections module to multiphase initialization
2380 - bpo-40010: Optimize signal handling in multithreaded applications. If a
2382 evaluation loop is no longer interrupted at each bytecode instruction to
2389 - bpo-39984: If :c:func:`Py_AddPendingCall` is called in a subinterpreter,
2390 the function is now scheduled to be called from the subinterpreter, rather
2394 - bpo-1635741: Port _heapq module to multiphase initialization.
2396 - bpo-1635741: Port itertools module to multiphase initialization
2399 - bpo-37207: Speed up calls to ``frozenset()`` by using the :pep:`590`
2400 ``vectorcall`` calling convention. Patch by Dong-hee Na.
2402 - bpo-39984: subinterpreters: Move
2407 - bpo-37207: Speed up calls to ``set()`` by using the :pep:`590`
2408 ``vectorcall`` calling convention. Patch by Dong-hee Na.
2410 - bpo-1635741: Port _statistics module to multiphase initialization
2413 - bpo-39968: Use inline function to replace extension modules'
2416 - bpo-39965: Correctly raise ``SyntaxError`` if *await* is used inside
2417 non-async functions and ``PyCF_ALLOW_TOP_LEVEL_AWAIT`` is set (like in the
2420 - bpo-39562: Allow executing asynchronous comprehensions on the top level
2421 when the ``PyCF_ALLOW_TOP_LEVEL_AWAIT`` flag is given. Patch by Batuhan
2424 - bpo-37207: Speed up calls to ``tuple()`` by using the :pep:`590`
2425 ``vectorcall`` calling convention. Patch by Dong-hee Na.
2427 - bpo-38373: Chaged list overallocation strategy. It no longer overallocates
2428 if the new size is closer to overalocated size than to the old size and
2431 - bpo-39926: Update Unicode database to Unicode version 13.0.0.
2433 - bpo-19466: Clear the frames of daemon threads earlier during the Python
2437 - bpo-38894: Fix a bug that was causing incomplete results when calling
2442 - bpo-39877: Fix :c:func:`PyEval_RestoreThread` random crash at exit with
2444 instead of using ``tstate->interp->runtime``, since ``tstate`` can be a
2448 - bpo-39871: Fix a possible :exc:`SystemError` in
2452 - bpo-39776: Fix race condition where threads created by PyGILState_Ensure()
2455 This affects consumers of tstate->id like the contextvar caching
2459 - bpo-39778: Fixed a crash due to incorrect handling of weak references in
2462 - bpo-1635741: Port audioop extension module to multiphase initialization
2465 - bpo-39702: Relax :term:`decorator` grammar restrictions to allow any valid
2468 - bpo-38091: Tweak import deadlock detection code to not deadlock itself.
2470 - bpo-1635741: Port _locale extension module to multiphase initialization
2473 - bpo-39087: Optimize :c:func:`PyUnicode_AsUTF8` and
2475 internal UTF-8 cache.
2477 - bpo-39520: Fix unparsing of ext slices with no items (``foo[:,]``). Patch
2480 - bpo-39220: Do not optimize annotations if 'from __future__ import
2481 annotations' is used. Patch by Pablo Galindo.
2483 - bpo-35712: Using :data:`NotImplemented` in a boolean context has been
2486 - bpo-22490: Don't leak environment variable ``__PYVENV_LAUNCHER__`` into
2490 -------
2492 - bpo-39830: Add :class:`zipfile.Path` to ``__all__`` in the :mod:`zipfile`
2495 - bpo-40000: Improved error messages for validation of ``ast.Constant``
2498 - bpo-39999: ``__module__`` of the AST node classes is now set to "ast"
2502 - bpo-39991: :func:`uuid.getnode` now skips IPv6 addresses with the same
2505 - bpo-39988: Deprecated ``ast.AugLoad`` and ``ast.AugStore`` node classes
2508 - bpo-39656: Ensure ``bin/python3.#`` is always present in virtual
2509 environments on POSIX platforms - by Anthony Sottile.
2511 - bpo-39969: Deprecated ``ast.Param`` node class because it's no longer
2514 - bpo-39360: Ensure all workers exit when finalizing a
2517 experienced when the Pool is not properly finalized via the context
2521 - bpo-35370: sys.settrace(), sys.setprofile() and _lsprof.Profiler.enable()
2523 "sys.settrace" audit event is denied.
2525 - bpo-39936: AIX: Fix _aix_support module when the subprocess is not
2528 if subprocess is available or not. So _aix_support.aix_platform() result
2529 is now the same if subprocess is available or not.
2531 - bpo-36144: :class:`collections.OrderedDict` now implements ``|`` and
2534 - bpo-39652: The column name found in ``sqlite3.Cursor.description`` is now
2535 truncated on the first '[' only if the PARSE_COLNAMES option is set.
2537 - bpo-39915: Ensure :attr:`unittest.mock.AsyncMock.await_args_list` has call
2542 - bpo-36144: Updated :data:`os.environ` and :data:`os.environb` to support
2545 - bpo-38662: The ``ensurepip`` module now invokes ``pip`` via the ``runpy``
2546 module. Hence it is no longer tightly coupled with the internal API of the
2550 - bpo-38075: Fix the :meth:`random.Random.seed` method when a :class:`bool`
2551 is passed as the seed.
2553 - bpo-39916: More reliable use of ``os.scandir()`` in ``Path.glob()``. It no
2556 - bpo-39850: :mod:`multiprocessing` now supports abstract socket addresses
2558 arbitrary addresses (like when default-constructing
2560 preferred to avoid the case when the temporary-file-generated address is
2563 - bpo-36287: :func:`ast.dump()` no longer outputs optional fields and
2566 ``Constant.kind`` is set to ``None``).
2568 - bpo-39889: Fixed :func:`ast.unparse` for extended slices containing a
2572 - bpo-39828: Fix :mod:`json.tool` to catch :exc:`BrokenPipeError`. Patch by
2573 Dong-hee Na.
2575 - bpo-13487: Avoid a possible *"RuntimeError: dictionary changed size during
2579 - bpo-39674: Revert "bpo-37330: open() no longer accept 'U' in file mode".
2580 The "U" mode of open() is kept in Python 3.9 to ease transition from
2583 - bpo-28577: The hosts method on 32-bit prefix length IPv4Networks and
2584 128-bit prefix IPv6Networks now returns a list containing the single
2587 - bpo-39826: Add getConnection method to logging HTTPHandler to enable
2590 - bpo-39763: Reimplement :func:`distutils.spawn.spawn` function with the
2593 - bpo-39794: Add --without-decimal-contextvar build option. This enables a
2594 thread-local rather than a coroutine local context.
2596 - bpo-36144: :class:`collections.defaultdict` now implements ``|``
2599 - bpo-39517: Fix runpy.run_path() when using pathlike objects
2601 - bpo-39775: Change ``inspect.Signature.parameters`` back to
2605 - bpo-39678: Refactor queue_manager in
2609 - bpo-39764: Fix AttributeError when calling get_stack on a PyAsyncGenObject
2612 - bpo-39769: The :func:`compileall.compile_dir` function's *ddir* parameter
2613 and the compileall command line flag `-d` no longer write the wrong
2618 - bpo-36144: :class:`types.MappingProxyType` objects now support the merge
2621 - bpo-38691: The :mod:`importlib` module now ignores the
2622 :envvar:`PYTHONCASEOK` environment variable when the :option:`-E` or
2623 :option:`-I` command line options are being used.
2625 - bpo-39719: Remove :meth:`tempfile.SpooledTemporaryFile.softspace` as files
2628 - bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct
2631 - bpo-39638: Keep ASDL signatures in the docstrings for ``AST`` nodes. Patch
2634 - bpo-39639: Deprecated ``ast.Suite`` node class because it's no longer
2637 - bpo-39609: Add thread_name_prefix to default asyncio executor
2639 - bpo-39548: Fix handling of header in
2641 ``qop`` parameter is not present.
2643 - bpo-39509: HTTP status codes ``103 EARLY_HINTS`` and ``425 TOO_EARLY`` are
2644 added to :class:`http.HTTPStatus`. Patch by Dong-hee Na.
2646 - bpo-39507: Adding HTTP status 418 "I'm a Teapot" to HTTPStatus in http
2649 - bpo-39495: Remove default value from *attrs* parameter of
2653 - bpo-38971: Open issue in the BPO indicated a desire to make the
2655 a try/except to assure file stream gets closed before an exception is
2658 - bpo-38641: Added starred expressions support to ``return`` and ``yield``
2661 - bpo-37534: When using minidom module to generate XML documents the ability
2662 to add Standalone Document Declaration is added. All the changes are made
2663 to generate a document in compliance with Extensible Markup Language (XML)
2665 https://www.w3.org/TR/xml/#sec-prolog-dtd).
2667 - bpo-34788: Add support for scoped IPv6 addresses to :mod:`ipaddress`.
2670 - bpo-34822: Simplified AST for subscription. Simple indices are now
2678 -------------
2680 - bpo-39868: Updated the Language Reference for :pep:`572`.
2682 - bpo-13790: Change 'string' to 'specification' in format doc.
2684 - bpo-17422: The language reference no longer restricts default class
2687 - bpo-39530: Fix misleading documentation about mixed-type numeric
2690 - bpo-39718: Update :mod:`token` documentation to reflect additions in
2693 - bpo-39677: Changed operand name of **MAKE_FUNCTION** from *argc* to
2697 -----
2699 - bpo-40019: test_gdb now skips tests if it detects that gdb failed to read
2700 debug information because the Python binary is optimized.
2702 - bpo-27807: ``test_site.test_startup_imports()`` is now skipped if a path
2705 - bpo-26067: Do not fail test_shutil test_chown test when uid or gid of user
2708 - bpo-39855: test_subprocess.test_user() now skips the test on an user name
2713 -----
2715 - bpo-39761: Fix build with DTrace but without additional DFLAGS.
2717 - bpo-39763: setup.py now uses a basic implementation of the
2718 :mod:`subprocess` module if the :mod:`subprocess` module is not available:
2721 - bpo-1294959: Add ``--with-platlibdir`` option to the configure script:
2722 name of the platform-specific library directory, stored in the new
2723 :attr:`sys.platlibdir` attribute. It is used to build the path of
2724 platform-specific extension modules and the path of the standard library.
2725 It is equal to ``"lib"`` on most platforms. On Fedora and SuSE, it is
2726 equal to ``"lib64"`` on 64-bit platforms. Patch by Jan Matějek, Matěj
2730 -------
2732 - bpo-39930: Ensures the required :file:`vcruntime140.dll` is included in
2735 - bpo-39847: Avoid hang when computer is hibernated whilst waiting for a
2736 mutex (for lock-related objects from :mod:`threading`) around 49-day
2739 - bpo-38597: :mod:`distutils` will no longer statically link
2740 :file:`vcruntime140.dll` when a redistributable version is unavailable.
2744 - bpo-38380: Update Windows builds to use SQLite 3.31.1
2746 - bpo-39789: Update Windows release build machines to Visual Studio 2019
2749 - bpo-34803: Package for nuget.org now includes repository reference and
2753 -----
2755 - bpo-38380: Update macOS builds to use SQLite 3.31.1
2758 ----
2760 - bpo-27115: For 'Go to Line', use a Query box subclass with IDLE standard
2763 - bpo-39885: Since clicking to get an IDLE context menu moves the cursor,
2764 any text selection should be and now is cleared.
2766 - bpo-39852: Edit "Go to line" now clears any selection, preventing
2769 - bpo-39781: Selecting code context lines no longer causes a jump.
2772 -----------
2774 - bpo-36184: Port python-gdb.py to FreeBSD. python-gdb.py now checks for
2776 instead of checking for "pthread_cond_timedwait" which is specific to
2779 - bpo-38080: Added support to fix ``getproxies`` in the
2784 -----
2786 - bpo-40024: Add :c:func:`PyModule_AddType` helper function: add a type to a
2787 module. Patch by Dong-hee Na.
2789 - bpo-39946: Remove ``_PyRuntime.getframe`` hook and remove
2794 - bpo-39947: Add :c:func:`PyThreadState_GetFrame` function: get the current
2797 - bpo-37207: Add _PyArg_NoKwnames helper function. Patch by Dong-hee Na.
2799 - bpo-39947: Add :c:func:`PyThreadState_GetInterpreter`: get the interpreter
2802 - bpo-39947: Add :c:func:`PyInterpreterState_Get` function to the limited C
2805 - bpo-35370: If :c:func:`PySys_Audit` fails in :c:func:`PyEval_SetProfile`
2808 - bpo-39947: Move the static inline function flavor of
2813 - bpo-39947: Py_TRASHCAN_BEGIN_CONDITION and Py_TRASHCAN_END macro no longer
2817 - bpo-39884: :c:func:`PyDescr_NewMethod` and :c:func:`PyCFunction_NewEx` now
2821 - bpo-39877: Deprecated :c:func:`PyEval_InitThreads` and
2825 - bpo-38249: :c:macro:`Py_UNREACHABLE` is now implemented with
2828 - bpo-38643: :c:func:`PyNumber_ToBase` now raises a :exc:`SystemError`
2831 - bpo-39882: The :c:func:`Py_FatalError` function is replaced with a macro
2833 ``Py_LIMITED_API`` macro is defined.
2835 - bpo-39824: Extension modules: :c:member:`~PyModuleDef.m_traverse`,
2838 state was requested but is not allocated yet. This is the case immediately
2839 after the module is created and before the module is executed
2841 called if :c:member:`~PyModuleDef.m_size` is greater than 0 and the module
2842 state (as returned by :c:func:`PyModule_GetState`) is ``NULL``.
2846 - bpo-38913: Fixed segfault in ``Py_BuildValue()`` called with a format
2847 containing "#" and undefined PY_SSIZE_T_CLEAN whwn an exception is set.
2849 - bpo-38500: Add a private API to get and set the frame evaluation function:
2859 *Release date: 2020-02-25*
2862 --------
2864 - bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`,
2867 - bpo-39401: Avoid unsafe DLL load at startup on Windows 7 and earlier.
2869 - bpo-39184: Add audit events to command execution functions in os and pty
2873 -----------------
2875 - bpo-39382: Fix a use-after-free in the single inheritance path of
2879 - bpo-39573: Update clinic tool to use :c:func:`Py_IS_TYPE`. Patch by
2880 Dong-hee Na.
2882 - bpo-39619: Enable use of :func:`os.chroot` on HP-UX systems.
2884 - bpo-39573: Add :c:func:`Py_IS_TYPE` static inline function to check
2885 whether the object *o* type is *type*.
2887 - bpo-39606: Fix regression caused by fix for bpo-39386, that prevented
2891 - bpo-39579: Change the ending column offset of `Attribute` nodes
2895 - bpo-1635741: Port _crypt extension module to multiphase initialization
2898 - bpo-1635741: Port _contextvars extension module to multiphase
2901 - bpo-39510: Fix segfault in ``readinto()`` method on closed BufferedReader.
2903 - bpo-39502: Fix :func:`time.localtime` on 64-bit AIX to support years
2906 - bpo-39492: Fix a reference cycle in the C Pickler that was preventing the
2909 - bpo-39453: Fixed a possible crash in :meth:`list.__contains__` when a list
2910 is changed during comparing items. Patch by Dong-hee Na.
2912 - bpo-39434: :term:`floor division` of float operation now has a better
2914 operation is updated. Patch by Dong-hee Na.
2916 - bpo-1635741: Port _codecs extension module to multiphase initialization
2919 - bpo-1635741: Port _bz2 extension module to multiphase initialization
2922 - bpo-1635741: Port _abc extension module to multiphase initialization
2925 - bpo-39320: Replace two complex bytecodes for building dicts with two
2930 - bpo-39219: Syntax errors raised in the tokenizer now always set correct
2933 - bpo-36051: Drop the GIL during large ``bytes.join`` operations. Patch by
2936 - bpo-38960: Fix DTrace build issues on FreeBSD. Patch by David Carlier.
2938 - bpo-37207: Speed up calls to ``range()`` by about 30%, by using the PEP
2941 - bpo-36144: :class:`dict` (and :class:`collections.UserDict`) objects now
2945 - bpo-32856: Optimized the idiom for assignment a temporary variable in
2946 comprehensions. Now ``for y in [expr]`` in comprehensions is as fast as a
2950 -------
2952 - bpo-30566: Fix :exc:`IndexError` when trying to decode an invalid string
2955 - bpo-39649: Remove obsolete check for `__args__` in
2958 - bpo-39648: Expanded :func:`math.gcd` and :func:`math.lcm` to handle
2961 - bpo-39681: Fix a regression where the C pickle module wouldn't allow
2962 unpickling from a file-like object that doesn't expose a readinto()
2965 - bpo-35950: Raise :exc:`io.UnsupportedOperation` in
2966 :meth:`io.BufferedReader.truncate` when it is called on a read-only
2969 - bpo-39479: Add :func:`math.lcm` function: least common multiple.
2971 - bpo-39674: Revert "Do not expose abstract collection classes in the
2972 collections module" change (bpo-25988). Aliases to ABC like
2976 - bpo-39104: Fix hanging ProcessPoolExcutor on ``shutdown(wait=False)`` when
2979 - bpo-39627: Fixed TypedDict totality check for inherited keys.
2981 - bpo-39474: Fixed starting position of AST for expressions like ``(a)(b)``,
2984 - bpo-21016: The :mod:`pydoc` and :mod:`trace` modules now use the
2989 - bpo-39590: Collections.deque now holds strong references during
2992 - bpo-39586: The distutils ``bdist_msi`` command is deprecated in Python
2995 - bpo-39595: Improved performance of zipfile.Path for files with a large
2998 <https://importlib-metadata.readthedocs.io/en/latest/changelog%20(links).html#v1-5-0>`_.
3000 - bpo-39350: Fix regression in :class:`fractions.Fraction` if the numerator
3001 and/or the denominator is an :class:`int` subclass. The :func:`math.gcd`
3002 function is now used to normalize the *numerator* and *denominator*.
3006 - bpo-39567: Added audit for :func:`os.walk`, :func:`os.fwalk`,
3009 - bpo-39559: Remove unused, undocumented argument ``getters`` from
3012 - bpo-38149: :func:`sys.audit` is now called only once per call of
3015 - bpo-39546: Fix a regression in :class:`~argparse.ArgumentParser` where
3017 character other than "-".
3019 - bpo-39450: Striped whitespace from docstring before returning it from
3022 - bpo-12915: A new function ``resolve_name`` has been added to the
3024 ``'a.b:c.d'`` to an object. In the example, ``a.b`` is a package/module
3025 and ``c.d`` is an object within that package/module reached via recursive
3028 - bpo-39353: The :func:`binascii.crc_hqx` function is no longer deprecated.
3030 - bpo-39493: Mark ``typing.IO.closed`` as a property
3032 - bpo-39491: Add :data:`typing.Annotated` and ``include_extras`` parameter
3036 - bpo-39485: Fix a bug in :func:`unittest.mock.create_autospec` that would
3040 - bpo-38932: Mock fully resets child objects on reset_mock(). Patch by
3043 - bpo-39082: Allow AsyncMock to correctly patch static/class methods
3045 - bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit\_..." symbol
3049 - bpo-18819: Omit ``devmajor`` and ``devminor`` fields for non-device files
3050 in :mod:`tarfile` archives, enabling bit-for-bit compatibility with GNU
3053 - bpo-39349: Added a new *cancel_futures* parameter to
3058 - bpo-39274: ``bool(fraction.Fraction)`` now returns a boolean even if
3061 - bpo-34793: Remove support for ``with (await asyncio.lock):`` and ``with
3062 (yield from asyncio.lock):``. The same is correct for
3065 - bpo-25597: Ensure, if ``wraps`` is supplied to
3066 :class:`unittest.mock.MagicMock`, it is used to calculate return values
3070 - bpo-36350: `inspect.Signature.parameters` and
3074 - bpo-35727: Fix sys.exit() and sys.exit(None) exit code propagation when
3077 - bpo-32173: * Add `lazycache` function to `__all__`. * Use `dict.clear` to
3082 -------------
3084 - bpo-17422: The language reference now specifies restrictions on class
3087 - bpo-39572: Updated documentation of ``total`` flag of TypeDict.
3089 - bpo-39654: In pyclbr doc, update 'class' to 'module' where appropriate and
3092 - bpo-39153: Clarify refcounting semantics for the following functions: -
3093 PyObject_SetItem - PyMapping_SetItemString - PyDict_SetItem -
3096 - bpo-39392: Explain that when filling with turtle, overlap regions may be
3099 - bpo-39369: Update mmap readline method description. The fact that the
3104 - bpo-9056: Include subsection in TOC for PDF version of docs.
3107 -----
3109 - bpo-38325: Skip tests on non-BMP characters of test_winconsoleio.
3111 - bpo-39502: Skip test_zipfile.test_add_file_after_2107() if
3112 :func:`time.localtime` fails with :exc:`OverflowError`. It is the case on
3116 -----
3118 - bpo-39489: Remove ``COUNT_ALLOCS`` special build.
3121 -------
3123 - bpo-39553: Delete unused code related to SxS manifests.
3125 - bpo-39439: Honor the Python path when a virtualenv is active on Windows.
3127 - bpo-39393: Improve the error message when attempting to load a DLL with
3130 - bpo-38883: :meth:`~pathlib.Path.home()` and
3132 :envvar:`USERPROFILE` and no longer use :envvar:`HOME`, which is not
3137 - bpo-39185: The build.bat script has additional options for very-quiet
3138 output (-q) and very-verbose output (-vv)
3141 ----
3143 - bpo-39663: Add tests for pyparse find_good_parse_start().
3145 - bpo-39600: In the font configuration window, remove duplicated font names.
3147 - bpo-30780: Add remaining configdialog tests for buttons and highlights and
3150 - bpo-39388: IDLE Settings Cancel button now cancels pending changes
3152 - bpo-38792: Close an IDLE shell calltip if a :exc:`KeyboardInterrupt` or
3156 -----
3158 - bpo-35081: Move the ``bytes_methods.h`` header file to the internal C API
3162 - bpo-35081: Move the ``dtoa.h`` header file to the internal C API as
3167 - bpo-39573: Add :c:func:`Py_SET_SIZE` function to set the size of an
3170 - bpo-39500: :c:func:`PyUnicode_IsIdentifier` does not call
3171 :c:func:`Py_FatalError` anymore if the string is not ready.
3173 - bpo-39573: Add :c:func:`Py_SET_TYPE` function to set the type of an
3176 - bpo-39573: Add a :c:func:`Py_SET_REFCNT` function to set the reference
3179 - bpo-39542: Convert :c:func:`PyType_HasFeature`, :c:func:`PyType_Check` and
3182 - bpo-39542: In the limited C API, ``PyObject_INIT()`` and
3190 - bpo-39542: Exclude trashcan mechanism from the limited C API: it requires
3194 - bpo-39511: The :c:func:`PyThreadState_Clear` function now calls the
3198 - bpo-38076: Fix to clear the interpreter state only after clearing module
3202 - bpo-39245: The Vectorcall API (PEP 590) was made public, adding the
3212 *Release date: 2020-01-24*
3215 -----------------
3217 - bpo-39427: Document all possibilities for the ``-X`` options in the
3220 - bpo-39421: Fix possible crashes when operating with the functions in the
3223 - bpo-39386: Prevent double awaiting of async iterator.
3225 - bpo-17005: Add :class:`functools.TopologicalSorter` to the
3229 - bpo-39320: Replace four complex bytecodes for building sequences with
3245 - bpo-39336: Import loaders which publish immutable module objects can now
3248 - bpo-39322: Added a new function :func:`gc.is_finalized` to check if an
3252 - bpo-39048: Improve the displayed error message when incorrect types are
3257 - bpo-39235: Fix AST end location for lone generator expression in function
3260 - bpo-39209: Correctly handle multi-line tokens in interactive mode. Patch
3263 - bpo-1635741: Port _json extension module to multiphase initialization
3266 - bpo-39216: Fix constant folding optimization for positional only arguments
3267 - by Anthony Sottile.
3269 - bpo-39215: Fix ``SystemError`` when nested function has annotation on
3270 positional-only argument - by Anthony Sottile.
3272 - bpo-39200: Correct the error message when calling the :func:`min` or
3273 :func:`max` with no arguments. Patch by Dong-hee Na.
3275 - bpo-39200: Correct the error message when trying to construct
3278 - bpo-39166: Fix incorrect line execution reporting in trace functions when
3282 - bpo-39114: Fix incorrent line execution reporting in trace functions when
3285 - bpo-39156: Split the COMPARE_OP bytecode instruction into four distinct
3289 * IS_OP for 'is' and 'is not' tests
3290 * CONTAINS_OP for 'in' and 'is not' tests
3291 * JUMP_IF_NOT_EXC_MATCH for checking exceptions in 'try-except' statements.
3296 - bpo-38588: Fix possible crashes in dict and list when calling
3299 - bpo-13601: By default, ``sys.stderr`` is line-buffered now, even if
3300 ``stderr`` is redirected to a file. You can still make ``sys.stderr``
3301 unbuffered by passing the :option:`-u` command-line option or setting the
3304 (Contributed by Jendrik Seipp in bpo-13601.)
3306 - bpo-38610: Fix possible crashes in several list methods by holding strong
3310 - bpo-32021: Include brotli .br encoding in mimetypes encodings_map
3313 -------
3315 - bpo-39430: Fixed race condition in lazy imports in :mod:`tarfile`.
3317 - bpo-39413: The :func:`os.unsetenv` function is now also available on
3320 - bpo-39390: Fixed a regression with the `ignore` callback of
3324 - bpo-39395: The :func:`os.putenv` and :func:`os.unsetenv` functions are now
3327 - bpo-39406: If ``setenv()`` C function is available, :func:`os.putenv` is
3331 - bpo-39396: Fix ``math.nextafter(-0.0, +0.0)`` on AIX 7.1.
3333 - bpo-29435: Allow :func:`tarfile.is_tarfile` to be used with file and
3334 file-like objects, like :func:`zipfile.is_zipfile`. Patch by William
3337 - bpo-39377: Removed ``encoding`` option from :func:`json.loads`. It has
3340 - bpo-39389: Write accurate compression level metadata in :mod:`gzip`
3343 - bpo-39366: The previously deprecated ``xpath()`` and ``xgtitle()`` methods
3346 - bpo-39357: Remove the *buffering* parameter of :class:`bz2.BZ2File`. Since
3349 file is opened. The *compresslevel* parameter becomes keyword-only.
3351 - bpo-39353: Deprecate binhex4 and hexbin4 standards. Deprecate the
3357 - bpo-39351: Remove ``base64.encodestring()`` and ``base64.decodestring()``,
3361 - bpo-39350: Remove ``fractions.gcd()`` function, deprecated since Python
3364 - bpo-39329: :class:`~smtplib.LMTP` constructor now has an optional
3365 *timeout* parameter. Patch by Dong-hee Na.
3367 - bpo-39313: Add a new ``exec_function`` option (*--exec-function* in the
3371 - bpo-39259: :class:`~ftplib.FTP_TLS` and :class:`~ftplib.FTP_TLS` now raise
3372 a :class:`ValueError` if the given timeout for their constructor is zero
3373 to prevent the creation of a non-blocking socket. Patch by Dong-hee Na.
3375 - bpo-39259: :class:`~smtplib.SMTP` and :class:`~smtplib.SMTP_SSL` now raise
3376 a :class:`ValueError` if the given timeout for their constructor is zero
3377 to prevent the creation of a non-blocking socket. Patch by Dong-hee Na.
3379 - bpo-39310: Add :func:`math.ulp`: return the value of the least significant
3382 - bpo-39297: Improved performance of importlib.metadata distribution
3386 - bpo-39259: :class:`~nntplib.NNTP` and :class:`~nntplib.NNTP_SSL` now raise
3387 a :class:`ValueError` if the given timeout for their constructor is zero
3388 to prevent the creation of a non-blocking socket. Patch by Dong-hee Na.
3390 - bpo-38901: When you specify prompt='.' or equivalently python -m venv
3391 --prompt . ... the basename of the current directory is used to set the
3394 - bpo-39288: Add :func:`math.nextafter`: return the next floating-point
3397 - bpo-39259: :class:`~poplib.POP3` and :class:`~poplib.POP3_SSL` now raise a
3398 :class:`ValueError` if the given timeout for their constructor is zero to
3399 prevent the creation of a non-blocking socket. Patch by Dong-hee Na.
3401 - bpo-39242: Updated the Gmane domain from news.gmane.org to news.gmane.io
3402 which is used for examples of :class:`~nntplib.NNTP` news reader server
3405 - bpo-35292: Proxy the `SimpleHTTPRequestHandler.guess_type` to
3406 `mimetypes.guess_type` so the `mimetypes.init` is called lazily to avoid
3407 unnecessary costs when :mod:`http.server` module is imported.
3409 - bpo-39239: The :meth:`select.epoll.unregister` method no longer ignores
3412 - bpo-38907: In http.server script, restore binding to IPv4 on Windows.
3414 - bpo-39152: Fix ttk.Scale.configure([name]) to return configuration tuple
3417 - bpo-39198: If an exception were to be thrown in `Logger.isEnabledFor`
3420 block of code with `try...finally` to ensure the lock is released.
3422 - bpo-39191: Perform a check for running loop before starting a new task in
3426 - bpo-38871: Correctly parenthesize filter-based statements that contain
3427 lambda expressions in mod:`lib2to3`. Patch by Dong-hee Na.
3429 - bpo-39142: A change was made to logging.config.dictConfig to avoid
3435 - bpo-39158: ast.literal_eval() now supports empty sets.
3437 - bpo-39129: Fix import path for ``asyncio.TimeoutError``
3439 - bpo-39057: :func:`urllib.request.proxy_bypass_environment` now ignores
3442 - bpo-39056: Fixed handling invalid warning category in the -W option. No
3443 longer import the re module if it is not needed.
3445 - bpo-39055: :func:`base64.b64decode` with ``validate=True`` raises now a
3448 - bpo-21600: Fix :func:`mock.patch.stopall` to stop active patches that were
3451 - bpo-39019: Implement dummy ``__class_getitem__`` for
3454 - bpo-39019: Implement dummy ``__class_getitem__`` for ``subprocess.Popen``,
3457 - bpo-38914: Adjusted the wording of the warning issued by distutils'
3459 supplied but no corresponding e-mail field (``author_email`` or
3460 ``maintainer_email``) is found. The wording now reflects the fact that
3463 - bpo-38878: Fixed __subclasshook__ of :class:`os.PathLike` to return a
3466 - bpo-38615: :class:`~imaplib.IMAP4` and :class:`~imaplib.IMAP4_SSL` now
3471 Dong-hee Na.
3473 - bpo-35182: Fixed :func:`Popen.communicate` subsequent call crash when the
3477 - bpo-38630: On Unix, :meth:`subprocess.Popen.send_signal` now polls the
3480 attribute is still ``None``, and the pid has been reassigned (recycled) to
3483 - bpo-38536: Removes trailing space in formatted currency with
3488 - bpo-38473: Use signature from inner mock for autospecced methods attached
3491 - bpo-38361: Fixed an issue where ``ident`` could include a leading path
3494 - bpo-38293: Add :func:`copy.copy` and :func:`copy.deepcopy` support to
3497 - bpo-37958: Added the pstats.Stats.get_profile_dict() method to return the
3500 - bpo-28367: Termios magic constants for the following baud rates: -
3501 B500000 - B576000 - B921600 - B1000000 - B1152000 - B1500000 -
3502 B2000000 - B2500000 - B3000000 - B3500000 - B4000000 Patch by
3506 -------------
3508 - bpo-39381: Mention in docs that :func:`asyncio.get_event_loop` implicitly
3511 - bpo-38918: Add an entry for ``__module__`` in the "function" & "method"
3513 <https://docs.python.org/3/library/inspect.html#types-and-members>`_
3515 - bpo-3530: In the :mod:`ast` module documentation, fix a misleading
3520 -----
3522 - bpo-39395: On non-Windows platforms, the :c:func:`setenv` and
3525 - bpo-39160: Updated the documentation in `./configure --help` to show
3529 - bpo-39144: The ctags and etags build targets both include Modules/_ctypes
3533 ----
3535 - bpo-39050: Make IDLE Settings dialog Help button work again.
3537 - bpo-34118: Tag memoryview, range, and tuple as classes, the same as list,
3538 etcetera, in the library manual built-in functions list.
3540 - bpo-32989: Add tests for editor newline_and_indent_event method. Remove
3544 -----
3546 - bpo-39372: Clean header files of interfaces defined but with no
3555 - bpo-39164: Add a private ``_PyErr_GetExcInfo()`` function to retrieve
3562 *Release date: 2019-12-18*
3565 --------
3567 - bpo-38945: Newline characters have been escaped when performing uu
3572 - bpo-37228: Due to significant security concerns, the *reuse_address*
3573 parameter of :meth:`asyncio.loop.create_datagram_endpoint` is no longer
3574 supported. This is because of the behavior of ``SO_REUSEADDR`` in UDP. For
3579 - bpo-38804: Fixes a ReDoS vulnerability in :mod:`http.cookiejar`. Patch by
3583 -----------------
3585 - bpo-39028: Slightly improve the speed of keyword argument parsing with
3589 - bpo-39080: Fix the value of *end_col_offset* for Starred Expression AST
3593 - bpo-39031: When parsing an "elif" node, lineno and col_offset of the node
3597 - bpo-20443: In Python 3.9.0a1, sys.argv[0] was made an absolute path if a
3601 - bpo-39008: :c:func:`PySys_Audit` now requires ``Py_ssize_t`` to be used
3605 - bpo-38673: In REPL mode, don't switch to PS2 if the line starts with
3608 - bpo-38922: Calling ``replace`` on a code object now raises the
3611 - bpo-38920: Add audit hooks for when :func:`sys.excepthook` and
3614 - bpo-38892: Improve documentation for audit events table and functions.
3616 - bpo-38852: Set the thread stack size to 8 Mb for debug builds on android
3619 - bpo-38858: Each Python subinterpreter now has its own "small integer
3620 singletons": numbers in [-5; 257] range. It is no longer possible to
3625 - bpo-36854: The garbage collector state becomes per interpreter
3629 - bpo-38835: The ``PyFPE_START_PROTECT()`` and ``PyFPE_END_PROTECT()``
3633 - bpo-38328: Sped up the creation time of constant :class:`list` and
3636 - bpo-38707: ``MainThread.native_id`` is now correctly reset in child
3640 - bpo-38629: Added ``__floor__`` and ``__ceil__`` methods to float object.
3643 - bpo-27145: int + int and int - int operators can now return small integer
3646 - bpo-38021: Provide a platform tag for AIX that is sufficient for PEP425
3649 - bpo-35409: Ignore GeneratorExit exceptions when throwing an exception into
3652 - bpo-33387: Removed WITH_CLEANUP_START, WITH_CLEANUP_FINISH, BEGIN_FINALLY,
3655 for exceptional and non-exceptional branches for 'with' and 'try-except'
3656 statements. For 'try-finally' statements the 'finally' block is replicated
3660 -------
3662 - bpo-39033: Fix :exc:`NameError` in :mod:`zipimport`. Patch by Karthikeyan
3665 - bpo-39022: Update importlib.metadata to include improvements from
3669 - bpo-39006: Fix asyncio when the ssl module is missing: only check for
3670 ssl.SSLSocket instance if the ssl module is available.
3672 - bpo-38708: Fix a potential IndexError in email parser when parsing an
3673 empty msg-id.
3675 - bpo-38698: Add a new ``InvalidMessageID`` token to email parser to
3676 represent invalid Message-ID headers. Also, add defects when there is
3679 - bpo-38994: Implement ``__class_getitem__`` for ``os.PathLike``,
3682 - bpo-38979: Return class from ``ContextVar.__class_getitem__`` to simplify
3685 - bpo-38978: Implement ``__class_getitem__`` on asyncio objects (Future,
3688 - bpo-38916: :class:`array.array`: Remove ``tostring()`` and
3692 - bpo-38986: Make repr of C accelerated TaskWakeupMethWrapper the same as of
3695 - bpo-38982: Fix asyncio ``PidfdChildWatcher``: handle ``waitpid()`` error.
3696 If ``waitpid()`` is called elsewhere, ``waitpid()`` call fails with
3698 warning. It ensures that the pidfd file descriptor is closed if this error
3701 - bpo-38529: Drop too noisy asyncio warning about deletion of a stream
3704 - bpo-27413: Added ability to pass through ``ensure_ascii`` options to
3705 json.dumps in the ``json.tool`` command-line interface.
3707 - bpo-38634: The :mod:`readline` module now detects if Python is linked to
3711 - bpo-33684: Fix ``json.tool`` failed to read a JSON file with non-ASCII
3712 characters when locale encoding is not UTF-8.
3714 - bpo-38698: Prevent UnboundLocalError to pop up in parse_message_id.
3720 - bpo-38927: Use ``python -m pip`` instead of ``pip`` to upgrade
3723 - bpo-26730: Fix ``SpooledTemporaryFile.rollover()`` might corrupt the file
3724 when it is in text mode. Patch by Serhiy Storchaka.
3726 - bpo-38881: random.choices() now raises a ValueError when all the weights
3729 - bpo-38876: Raise pickle.UnpicklingError when loading an item from memo for
3739 - bpo-38688: Calling func:`shutil.copytree` to copy a directory tree from
3745 - bpo-38863: Improve :func:`is_cgi` function in :mod:`http.server`, which
3746 enables processing the case that cgi directory is a child of another
3749 - bpo-37838: :meth:`typing.get_type_hints` properly handles functions
3752 - bpo-38870: Expose :func:`ast.unparse` as a function of the :mod:`ast`
3757 - bpo-38859: AsyncMock now returns StopAsyncIteration on the exhaustion of a
3758 side_effects iterable. Since PEP-479 its Impossible to raise a
3761 - bpo-38857: AsyncMock fix for return values that are awaitable types. This
3764 were being awaited instead of being returned as is.
3766 - bpo-38834: :class:`typing.TypedDict` subclasses now track which keys are
3769 Zac Hatfield-Dodds.
3771 - bpo-38821: Fix unhandled exceptions in :mod:`argparse` when
3773 special (non-integer) values. Patch by Federico Bond.
3775 - bpo-38820: Make Python compatible with OpenSSL 3.0.0.
3779 - bpo-38811: Fix an unhandled exception in :mod:`pathlib` when
3780 :meth:`os.link` is missing. Patch by Toke Høiland-Jørgensen.
3782 - bpo-38686: Added support for multiple ``qop`` values in
3785 - bpo-38712: Add the Linux-specific :func:`signal.pidfd_send_signal`
3789 - bpo-38348: Add ``-i`` and ``--indent`` (indentation level), and
3790 ``--no-type-comments`` (type comments) command line options to ast parsing
3793 - bpo-37523: Change :class:`zipfile.ZipExtFile` to raise ``ValueError`` when
3795 new behavior is consistent with how accessing closed files is handled in
3798 - bpo-38045: Improve the performance of :func:`enum._decompose` in
3801 - bpo-36820: Break cycle generated when saving an exception in socket.py,
3805 - bpo-36406: Handle namespace packages in :mod:`doctest`. Patch by
3808 - bpo-34776: Fix dataclasses to support forward references in type
3811 - bpo-20928: ElementTree supports recursive XInclude processing. Patch by
3814 - bpo-29636: Add whitespace options for formatting JSON with the
3816 supported: ``--indent`` for setting the indent level in spaces; ``--tab``
3817 for indenting with tabs; ``--no-indent`` for suppressing newlines; and
3818 ``--compact`` for suppressing all whitespace. The default behavior remains
3819 the same as ``--indent=4``.
3822 -------------
3824 - bpo-38928: Correct when venv's ``upgrade_dependencies()`` and
3825 ``--upgrade-deps`` are added.
3827 - bpo-38899: Update documentation to state that to activate virtual
3831 - bpo-22377: Improves documentation of the values that
3836 -----
3838 - bpo-38546: Fix test_ressources_gced_in_workers() of
3842 - bpo-38546: Multiprocessing and concurrent.futures tests now stop the
3845 - bpo-38614: Replace hardcoded timeout constants in tests with new
3853 - bpo-38547: Fix test_pty: if the process is the session leader, closing the
3857 - bpo-38992: Fix a test for :func:`math.fsum` that was failing due to
3860 - bpo-38991: :mod:`test.support`:
3867 - bpo-38965: Fix test_faulthandler on GCC 10. Use the "volatile" keyword in
3871 - bpo-38875: test_capi: trashcan tests now require the test "cpu" resource.
3873 - bpo-38841: Skip asyncio test_create_datagram_endpoint_existing_sock_unix
3876 - bpo-38692: Skip the test_posix.test_pidfd_open() test if
3881 - bpo-38839: Fix some unused functions in tests. Patch by Adam Johnson.
3883 - bpo-38669: Raise :exc:`TypeError` when passing target as a string with
3886 - bpo-37957: test.regrtest now can receive a list of test patterns to ignore
3887 (using the -i/--ignore argument) or a file with a list of patterns to
3888 ignore (using the --ignore-file argument). Patch by Pablo Galindo.
3891 -----
3893 - bpo-37404: :mod:`asyncio` now raises :exc:`TyperError` when calling
3897 - bpo-36500: Added an optional "regen" project to the Visual Studio solution
3901 -------
3903 - bpo-39007: Add auditing events to functions in :mod:`winreg`.
3905 - bpo-33125: Add support for building and releasing Windows ARM64 packages.
3908 -----
3910 - bpo-37931: Fixed a crash on OSX dynamic builds that occurred when
3911 re-initializing the posix module after a Py_Finalize if the environment
3915 ----
3917 - bpo-38944: Escape key now closes IDLE completion windows. Patch by Johnny
3920 - bpo-38943: Fix IDLE autocomplete windows not always appearing on some
3923 - bpo-38862: 'Strip Trailing Whitespace' on the Format menu removes extra
3924 newlines at the end of non-shell files.
3926 - bpo-38636: Fix IDLE Format menu tab toggle and file indent width. These
3927 functions (default shortcuts Alt-T and Alt-U) were mistakenly disabled in
3931 -----
3933 - bpo-38896: Remove ``PyUnicode_ClearFreeList()`` function: the Unicode free
3936 - bpo-37340: Remove ``PyMethod_ClearFreeList()`` and
3940 - bpo-38835: Exclude ``PyFPE_START_PROTECT()`` and ``PyFPE_END_PROTECT()``
3947 *Release date: 2019-11-19*
3950 --------
3952 - bpo-38722: :mod:`runpy` now uses :meth:`io.open_code` to open code files.
3955 - bpo-38622: Add additional audit events for the :mod:`ctypes` module.
3957 - bpo-38418: Fixes audit event for :func:`os.system` to be named
3960 - bpo-38243: Escape the server title of
3962 HTML. (Contributed by Dong-hee Na in :issue:`38243`.)
3964 - bpo-38174: Update vendorized expat library version to 2.2.8, which
3965 resolves CVE-2019-15903.
3967 - bpo-37764: Fixes email._header_value_parser.get_unstructured going into an
3972 - bpo-37461: Fix an infinite loop when parsing specially crafted email
3975 - bpo-37363: Adds audit events for the range of supported run commands (see
3976 :ref:`using-on-general`).
3978 - bpo-37463: ssl.match_hostname() no longer accepts IPv4 addresses with
3979 additional text after the address and only quad-dotted notation without
3983 - bpo-37363: Adds audit events for :mod:`ensurepip`, :mod:`ftplib`,
3989 - bpo-37364: :func:`io.open_code` is now used when reading :file:`.pth`
3992 - bpo-34631: Updated OpenSSL to 1.1.1c in Windows installer
3994 - bpo-34155: Fix parsing of invalid email addresses with more than one ``@``
3999 -----------------
4001 - bpo-38631: Replace ``Py_FatalError()`` call with a regular
4004 - bpo-38639: Optimized :func:`math.floor()`, :func:`math.ceil()` and
4007 - bpo-38640: Fixed a bug in the compiler that was causing to raise in the
4011 - bpo-38613: Optimized some set operations (e.g. ``|``, ``^``, and ``-``) of
4015 - bpo-28029: ``"".replace("", s, n)`` now returns ``s`` instead of an empty
4016 string for all non-zero ``n``. There are similar changes for
4019 - bpo-38535: Fixed line numbers and column offsets for AST nodes for calls
4022 - bpo-38525: Fix a segmentation fault when using reverse iterators of empty
4023 ``dict`` objects. Patch by Dong-hee Na and Inada Naoki.
4025 - bpo-38465: :class:`bytearray`, :class:`~array.array` and
4029 - bpo-38469: Fixed a bug where the scope of named expressions was not being
4033 - bpo-38437: Activate the ``GC_DEBUG`` macro for debug builds of the
4034 interpreter (when ``Py_DEBUG`` is set). Patch by Pablo Galindo.
4036 - bpo-38379: When the garbage collector makes a collection in which some
4042 - bpo-38379: When cyclic garbage collection (gc) runs finalizers that
4049 - bpo-38392: In debug mode, :c:func:`PyObject_GC_Track` now calls
4050 ``tp_traverse()`` of the object type to ensure that the object is valid:
4053 - bpo-38210: Remove unecessary intersection and update set operation in
4054 dictview with empty set. (Contributed by Dong-hee Na in :issue:`38210`.)
4056 - bpo-38402: Check the error from the system's underlying ``crypt`` or
4059 - bpo-37474: On FreeBSD, Python no longer calls ``fedisableexcept()`` at
4063 - bpo-38006: Fix a bug due to the interaction of weakrefs and the cyclic
4067 - bpo-38317: Fix warnings options priority: ``PyConfig.warnoptions`` has the
4070 - bpo-38310: Predict ``BUILD_MAP_UNPACK_WITH_CALL`` -> ``CALL_FUNCTION_EX``
4073 - bpo-36871: Improve error handling for the assert_has_calls and
4078 - bpo-11410: Better control over symbol visibility is provided through use
4081 updated to compile with -fvisibility=hidden, minimising exported symbols.
4083 - bpo-38219: Optimized the :class:`dict` constructor and the
4084 :meth:`~dict.update` method for the case when the argument is a dict.
4086 - bpo-38236: Python now dumps path configuration if it fails to import the
4089 - bpo-38013: Allow to call ``async_generator_athrow().throw(...)`` even for
4090 non-started async generator helper. It fixes annoying warning at the end
4093 - bpo-38124: Fix an off-by-one error in PyState_AddModule that could cause
4094 out-of-bounds memory access.
4096 - bpo-38116: The select module is now PEP-384 compliant and no longer has
4099 - bpo-38113: ast module updated to PEP-384 and all statics removed
4101 - bpo-38076: The struct module is now PEP-384 compatible
4103 - bpo-38075: The random module is now PEP-384 compatible
4105 - bpo-38074: zlib module made PEP-384 compatible
4107 - bpo-38073: Make pwd extension module PEP-384 compatible
4109 - bpo-38072: grp module made PEP-384 compatible
4111 - bpo-38069: Make _posixsubprocess PEP-384 compatible
4113 - bpo-38071: Make termios extension module PEP-384 compatible
4115 - bpo-38005: Fixed comparing and creating of InterpreterID and ChannelID.
4117 - bpo-36946: Fix possible signed integer overflow when handling slices.
4120 - bpo-37994: Fixed silencing arbitrary errors if an attribute lookup fails
4123 - bpo-8425: Optimize set difference_update for the case when the other set
4124 is much larger than the base set. (Suggested by Evgeny Kapun with code
4127 - bpo-37966: The implementation of :func:`~unicodedata.is_normalized` has
4129 the full normalization-quick-check algorithm from the Unicode standard.
4131 - bpo-37947: Adjust correctly the recursion level in the symtable generation
4134 - bpo-37812: The ``CHECK_SMALL_INT`` macro used inside
4138 - bpo-37751: Fix :func:`codecs.lookup` to normalize the encoding name the
4142 - bpo-37830: Fixed compilation of :keyword:`break` and :keyword:`continue`
4144 block contains :keyword:`return` with a non-constant value.
4146 - bpo-20490: Improve import error message for partially initialized module
4147 on circular ``from`` imports - by Anthony Sottile.
4149 - bpo-37840: Fix handling of negative indices in
4153 - bpo-37802: Slightly improve performance of
4157 - bpo-37409: Ensure explicit relative imports from interactive sessions and
4161 - bpo-32912: Reverted :issue:`32912`: emitting :exc:`SyntaxWarning` instead
4165 - bpo-37757: :pep:`572`: As described in the PEP, assignment expressions now
4173 - bpo-36279: Fix potential use of uninitialized memory in :func:`os.wait3`.
4175 - bpo-36311: Decoding bytes objects larger than 2GiB is faster and no longer
4178 - bpo-34880: The :keyword:`assert` statement now works properly if the
4179 :exc:`AssertionError` exception is being shadowed. Patch by Zackery Spytz.
4181 - bpo-37340: Removed object cache (``free_list``) for bound method objects.
4185 - bpo-37648: Fixed minor inconsistency in :meth:`list.__contains__`,
4187 is now always at the left and the needle is on the right of ``==``.
4189 - bpo-37444: Update differing exception between :meth:`builtins.__import__`
4192 - bpo-37619: When adding a wrapper descriptor from one class to a different
4194 subclass), an exception is correctly raised when the operator is called.
4196 - bpo-37593: Swap the positions of the *posonlyargs* and *args* parameters
4199 - bpo-37543: Optimized pymalloc for non PGO build.
4201 - bpo-37537: Compute allocated pymalloc blocks inside
4205 - bpo-37467: Fix :func:`sys.excepthook` and :c:func:`PyErr_Display` if a
4206 filename is a bytes string. For example, for a SyntaxError exception where
4207 the filename attribute is a bytes string.
4209 - bpo-37433: Fix ``SyntaxError`` indicator printing too many spaces for
4210 multi-line strings - by Anthony Sottile.
4212 - bpo-37417: :meth:`bytearray.extend` now correctly handles errors that
4215 - bpo-37414: The undocumented ``sys.callstats()`` function has been removed.
4220 - bpo-37392: Remove ``sys.getcheckinterval()`` and
4226 - bpo-37388: In development mode and in debug build, *encoding* and *errors*
4230 By default, for best performances, the *errors* argument is only checked
4231 at the first encoding/decoding error, and the *encoding* argument is
4234 - bpo-37348: Optimized decoding short ASCII string with UTF-8 and ascii
4235 codecs. ``b"foo".decode()`` is about 15% faster. Patch by Inada Naoki.
4237 - bpo-24214: Improved support of the surrogatepass error handler in the
4238 UTF-8 and UTF-16 incremental decoders.
4240 - bpo-37330: :func:`open`, :func:`io.open`, :func:`codecs.open` and
4244 - bpo-35224: Reverse evaluation order of key: value in dict comprehensions
4248 - bpo-37316: Fix the :c:func:`PySys_Audit` call in :class:`mmap.mmap`.
4250 - bpo-37300: Remove an unnecssary Py_XINCREF in classobject.c.
4252 - bpo-37269: Fix a bug in the peephole optimizer that was not treating
4256 - bpo-20443: Python now gets the absolute path of the script filename
4261 - bpo-37257: Python's small object allocator (``obmalloc.c``) now allows (no
4266 - bpo-37231: The dispatching of type slots to special methods (for example
4269 - bpo-36974: Implemented separate vectorcall functions for every calling
4273 - bpo-37213: Handle correctly negative line offsets in the peephole
4276 - bpo-37219: Remove erroneous optimization for empty set differences.
4278 - bpo-15913: Implement :c:func:`PyBuffer_SizeFromFormat()` function
4282 - bpo-36922: Slot functions optimize any callable with
4286 - bpo-36974: The slot ``tp_vectorcall_offset`` is inherited unconditionally
4289 - bpo-37160: :func:`threading.get_native_id` now also supports NetBSD.
4291 - bpo-37077: Add :func:`threading.get_native_id` support for AIX. Patch by
4294 - bpo-36781: :func:`sum` has been optimized for boolean values.
4296 - bpo-34556: Add ``--upgrade-deps`` to venv module. Patch by Cooper Ry Lees
4298 - bpo-20523: ``pdb.Pdb`` supports ~/.pdbrc in Windows 7. Patch by Tim Hopper
4299 and Dan Lidral-Porter.
4301 - bpo-35551: Updated encodings: - Removed the "tis260" encoding, which was
4302 an alias for the nonexistent "tactis" codec. - Added "mac_centeuro" as an
4305 - bpo-19072: The :class:`classmethod` decorator can now wrap other
4309 - bpo-27575: Improve speed of dictview intersection by directly using set
4312 - bpo-30773: Prohibit parallel running of aclose() / asend() / athrow(). Fix
4316 -------
4318 - bpo-36589: The :func:`curses.update_lines_cols` function now returns
4321 - bpo-38807: Update :exc:`TypeError` messages for :meth:`os.path.join` to
4324 - bpo-38724: Add a repr for ``subprocess.Popen`` objects. Patch by Andrey
4327 - bpo-38786: pydoc now recognizes and parses HTTPS URLs. Patch by python273.
4329 - bpo-38785: Prevent asyncio from crashing if parent ``__init__`` is not
4332 - bpo-38723: :mod:`pdb` now uses :meth:`io.open_code` to trigger auditing
4335 - bpo-27805: Allow opening pipes and other non-seekable files in append mode
4338 - bpo-38438: Simplify the :mod:`argparse` usage message for ``nargs="*"``.
4340 - bpo-38761: WeakSet is now registered as a collections.abc.MutableSet.
4342 - bpo-38716: logging: change RotatingHandler namer and rotator to
4343 class-level attributes. This stops __init__ from setting them to None in
4346 - bpo-38713: Add :data:`os.P_PIDFD` constant, which may be passed to
4349 - bpo-38692: Add :class:`asyncio.PidfdChildWatcher`, a Linux-specific child
4352 - bpo-38692: Expose the Linux ``pidfd_open`` syscall as
4355 - bpo-38602: Added constants :data:`~fcntl.F_OFD_GETLK`,
4357 :mod:`fcntl` module. Patch by Dong-hee Na.
4359 - bpo-38334: Fixed seeking backward on an encrypted
4362 - bpo-38312: Add :func:`curses.get_escdelay`, :func:`curses.set_escdelay`,
4363 :func:`curses.get_tabsize`, and :func:`curses.set_tabsize` functions - by
4366 - bpo-38586: Now :func:`~logging.config.fileConfig` correcty sets the .name
4369 - bpo-38565: Add new cache_parameters() method for functools.lru_cache() to
4372 - bpo-34679: asynci.ProactorEventLoop.close() now only calls
4375 - bpo-31202: The case the result of :func:`pathlib.WindowsPath.glob` matches
4378 - bpo-36321: Remove misspelled attribute. The 3.8 changelog noted that this
4381 - bpo-38521: Fixed erroneous equality comparison in statistics.NormalDist().
4383 - bpo-38493: Added :data:`~os.CLD_KILLED` and :data:`~os.CLD_STOPPED` for
4384 :attr:`si_code`. Patch by Dong-hee Na.
4386 - bpo-38478: Fixed a bug in :meth:`inspect.signature.bind` that was causing
4388 positional-only parameter. Patch by Pablo Galindo.
4390 - bpo-33604: Fixed `hmac.new` and `hmac.HMAC` to raise TypeError instead of
4391 ValueError when the digestmod parameter, now required in 3.8, is omitted.
4394 - bpo-38378: Parameters *out* and *in* of :func:`os.sendfile` was renamed to
4397 - bpo-38417: Added support for setting the umask in the child process to the
4400 - bpo-38449: Revert GH-15522, which introduces a regression in
4404 - bpo-38431: Fix ``__repr__`` method for :class:`dataclasses.InitVar` to
4407 - bpo-38109: Add missing :data:`stat.S_IFDOOR`, :data:`stat.S_IFPORT`,
4411 - bpo-38422: Clarify docstrings of pathlib suffix(es)
4413 - bpo-38405: Nested subclasses of :class:`typing.NamedTuple` are now
4416 - bpo-38332: Prevent :exc:`KeyError` thrown by :func:`_encoded_words.decode`
4417 when given an encoded-word with invalid content-type encoding from
4420 - bpo-38371: Deprecated the ``split()`` method in
4424 - bpo-38341: Add :exc:`smtplib.SMTPNotSupportedError` to the :mod:`smtplib`
4427 - bpo-38319: sendfile() used in socket and shutil modules was raising
4428 OverflowError for files >= 2GiB on 32-bit architectures. (patch by
4431 - bpo-38242: Revert the new asyncio Streams API
4433 - bpo-13153: OS native encoding is now used for converting between Python
4435 clipboard emoji and other non-BMP characters. Converting strings from Tcl
4438 - bpo-38019: Correctly handle pause/resume reading of closed asyncio unix
4441 - bpo-38163: Child mocks will now detect their type as either synchronous or
4446 - bpo-38161: Removes _AwaitEvent from AsyncMock.
4448 - bpo-38216: Allow the rare code that wants to send invalid http requests
4449 from the `http.client` library a way to do so. The fixes for bpo-30458
4453 - bpo-28286: Deprecate opening :class:`~gzip.GzipFile` for writing
4456 - bpo-38108: Any synchronous magic methods on an AsyncMock now return a
4460 - bpo-38265: Update the *length* parameter of :func:`os.pread` to accept
4463 - bpo-38112: :mod:`compileall` has a higher default recursion limit and new
4464 command-line arguments for path manipulation, symlinks handling, and
4467 - bpo-38248: asyncio: Fix inconsistent immediate Task cancellation
4469 - bpo-38237: The arguments for the builtin pow function are more
4472 - bpo-34002: Improve efficiency in parts of email package by changing
4473 while-pop to a for loop, using isdisjoint instead of set intersections.
4475 - bpo-38191: Constructors of :class:`~typing.NamedTuple` and
4480 - bpo-38155: Add ``__all__`` to :mod:`datetime`. Patch by Tahia Khan.
4482 - bpo-38185: Fixed case-insensitive string comparison in
4485 - bpo-38136: Changes AsyncMock call count and await count to be two
4487 awaited, not when it has been called, and vice-versa. Update the
4490 - bpo-37828: Fix default mock name in
4494 - bpo-38175: Fix a memory leak in comparison of :class:`sqlite3.Row`
4497 - bpo-33936: _hashlib no longer calls obsolete OpenSSL initialization
4500 - bpo-34706: Preserve subclassing in inspect.Signature.from_callable.
4502 - bpo-38153: Names of hashing algorithms frome OpenSSL are now normalized to
4503 follow Python's naming conventions. For example OpenSSL uses sha3-512
4506 - bpo-38115: Fix a bug in dis.findlinestarts() where it would return invalid
4510 - bpo-38148: Add slots to :mod:`asyncio` transport classes, which can reduce
4513 - bpo-38142: The _hashlib OpenSSL wrapper extension module is now PEP-384
4516 - bpo-9216: hashlib constructors now support usedforsecurity flag to signal
4517 that a hashing algorithm is not used in a security context.
4519 - bpo-36991: Fixes a potential incorrect AttributeError exception escaping
4522 - bpo-38134: Remove obsolete copy of PBKDF2_HMAC_fast. All supported OpenSSL
4525 - bpo-38132: The OpenSSL hashlib wrapper uses a simpler implementation.
4527 OpenSSL's EVP. The algorithm name stays the same, except it is now always
4530 - bpo-38008: Fix parent class check in protocols to correctly identify the
4534 - bpo-34037: For :mod:`asyncio`, add a new coroutine
4540 - bpo-37405: Fixed regression bug for socket.getsockname() for non-CAN_ISOTP
4541 AF_CAN address family sockets by returning a 1-tuple instead of string.
4543 - bpo-38121: Update parameter names on functions in importlib.metadata
4546 - bpo-38110: The os.closewalk() implementation now uses the libc fdwalk()
4547 API on platforms where it is available.
4549 - bpo-38093: Fixes AsyncMock so it doesn't crash when used with
4552 - bpo-37488: Add warning to :meth:`datetime.utctimetuple`,
4555 - bpo-35640: Allow passing a :term:`path-like object` as ``directory``
4559 - bpo-38086: Update importlib.metadata with changes from `importlib_metadata
4561 …<https://gitlab.com/python-devs/importlib_metadata/blob/0.21/importlib_metadata/docs/changelog.rst…
4563 - bpo-37251: Remove `__code__` check in AsyncMock that incorrectly evaluated
4567 - bpo-38037: Fix reference counters in the :mod:`signal` module.
4569 - bpo-38066: Hide internal asyncio.Stream methods: feed_eof(), feed_data(),
4572 - bpo-38059: inspect.py now uses sys.exit() instead of exit()
4574 - bpo-38049: Added command-line interface for the :mod:`ast` module.
4576 - bpo-37953: In :mod:`typing`, improved the ``__hash__`` and ``__eq__``
4579 - bpo-38026: Fixed :func:`inspect.getattr_static` used ``isinstance`` while
4582 - bpo-35923: Update :class:`importlib.machinery.BuiltinImporter` to use
4583 ``loader._ORIGIN`` instead of a hardcoded value. Patch by Dong-hee Na.
4585 - bpo-38010: In ``importlib.metadata`` sync with ``importlib_metadata``
4587 requirement was returned for ``requires()`` on ``dist-info`` packages.
4589 - bpo-38006: weakref.WeakValueDictionary defines a local remove() function
4593 - bpo-37995: Added the *indent* option to :func:`ast.dump` which allows it
4596 - bpo-34410: Fixed a crash in the :func:`tee` iterator when re-enter it.
4597 RuntimeError is now raised in this case.
4599 - bpo-37140: Fix a ctypes regression of Python 3.8. When a ctypes.Structure
4600 is passed by copy to a function, ctypes internals created a temporary
4605 - bpo-37587: ``_json.scanstring`` is now up to 3x faster when there are many
4608 - bpo-37834: Prevent shutil.rmtree exception when built on non-Windows
4611 - bpo-10978: Semaphores and BoundedSemaphores can now release more than one
4614 - bpo-37972: Subscripts to the `unittest.mock.call` objects now receive the
4622 - bpo-37965: Fix C compiler warning caused by
4625 - bpo-37964: Add ``F_GETPATH`` command to :mod:`fcntl`.
4627 - bpo-37960: ``repr()`` of buffered and text streams now silences only
4630 - bpo-37961: Add a ``total_nframe`` field to the traces collected by the
4634 - bpo-37951: Most features of the subprocess module now work again in
4635 subinterpreters. Only *preexec_fn* is restricted in subinterpreters.
4637 - bpo-36205: Fix the rusage implementation of time.process_time() to
4640 - bpo-37950: Fix :func:`ast.dump` when call with incompletely initialized
4643 - bpo-34679: Restores instantiation of Windows IOCP event loops from the
4644 non-main thread.
4646 - bpo-36917: Add default implementation of the
4651 - bpo-37798: Update test_statistics.py to verify that the statistics module
4652 works well for both C and Python implementations. Patch by Dong-hee Na
4654 - bpo-26589: Added a new status code to the http module: 451
4657 - bpo-37915: Fix a segmentation fault that appeared when comparing instances
4661 - bpo-32554: Deprecate having random.seed() call hash on arbitrary types.
4663 - bpo-9938: Add optional keyword argument ``exit_on_error`` for
4666 - bpo-37851: The :mod:`faulthandler` module no longer allocates its
4667 alternative stack at Python startup. Now the stack is only allocated at
4670 - bpo-32793: Fix a duplicated debug message when
4671 :meth:`smtplib.SMTP.connect` is called.
4673 - bpo-37885: venv: Don't generate unset variable warning on deactivate.
4675 - bpo-37868: Fix dataclasses.is_dataclass when given an instance that never
4676 raises AttributeError in __getattr__. That is, an object that returns
4679 - bpo-37811: Fix ``socket`` module's ``socket.connect(address)`` function
4682 take only non-negative integers and -1 as a timeout value.
4684 - bpo-37863: Optimizations for Fraction.__hash__ suggested by Tim Peters.
4686 - bpo-21131: Fix ``faulthandler.register(chain=True)`` stack. faulthandler
4692 - bpo-37798: Add C fastpath for statistics.NormalDist.inv_cdf() Patch by
4693 Dong-hee Na
4695 - bpo-37804: Remove the deprecated method `threading.Thread.isAlive()`.
4696 Patch by Dong-hee Na.
4698 - bpo-37819: Add Fraction.as_integer_ratio() to match the corresponding
4701 - bpo-14465: Add an xml.etree.ElementTree.indent() function for
4702 pretty-printing XML trees. Contributed by Stefan Behnel.
4704 - bpo-37810: Fix :mod:`difflib` ``?`` hint in diff output when dealing with
4707 - bpo-37772: In ``zipfile.Path``, when adding implicit dirs, ensure that
4710 - bpo-18578: Renamed and documented `test.bytecode_helper` as
4713 - bpo-37785: Fix xgettext warnings in :mod:`argparse`.
4715 - bpo-34488: :meth:`writelines` method of :class:`io.BytesIO` is now
4719 - bpo-37449: `ensurepip` now uses `importlib.resources.read_binary()` to
4722 - bpo-28292: Mark calendar.py helper functions as being private. The
4726 - bpo-18049: Add definition of THREAD_STACK_SIZE for AIX in
4730 - bpo-37742: The logging.getLogger() API now returns the root logger when
4731 passed the name 'root', whereas previously it returned a non-root logger
4733 non-root logger named 'root', or instantiates a logger using
4734 logging.getLogger(__name__) in some top-level module called 'root.py'.
4736 - bpo-37738: Fix the implementation of curses ``addch(str, color_pair)``:
4740 - bpo-37723: Fix performance regression on regular expression parsing with
4743 - bpo-35943: The function :c:func:`PyImport_GetModule` now ensures any
4744 module it returns is fully initialized. Patch by Joannah Nanjekye.
4746 - bpo-32178: Fix IndexError in :mod:`email` package when trying to parse
4749 - bpo-37268: The :mod:`parser` module is deprecated and will be removed in
4752 - bpo-11953: Completing WSA* error codes in :mod:`socket`.
4754 - bpo-37685: Fixed comparisons of :class:`datetime.timedelta` and
4757 - bpo-37697: Syncronize ``importlib.metadata`` with `importlib_metadata 0.19
4758 <https://gitlab.com/python-devs/importlib_metadata/-/milestones/20>`_,
4759 improving handling of EGG-INFO files and fixing a crash when entry point
4762 - bpo-37695: Correct :func:`curses.unget_wch` error message. Patch by
4765 - bpo-37689: Add :meth:`is_relative_to` in :class:`PurePath` to determine
4766 whether or not one path is relative to another.
4768 - bpo-29553: Fixed :meth:`argparse.ArgumentParser.format_usage` for mutually
4771 - bpo-37691: Let math.dist() accept coordinates as sequences (or iterables)
4774 - bpo-37685: Fixed ``__eq__``, ``__lt__`` etc implementations in some
4780 - bpo-37354: Make Activate.ps1 Powershell script static to allow for signing
4783 - bpo-37664: Update wheels bundled with ensurepip (pip 19.2.3 and setuptools
4786 - bpo-37663: Bring consistency to venv shell activation scripts by always
4789 - bpo-37642: Allowed the pure Python implementation of
4790 :class:`datetime.timezone` to represent sub-minute offsets close to
4792 and (-23:59, 24:00). Patch by Ngalim Siregar
4794 - bpo-36161: In :mod:`posix`, use ``ttyname_r`` instead of ``ttyname`` for
4797 - bpo-36324: Make internal attributes for statistics.NormalDist() private.
4799 - bpo-37555: Fix `NonCallableMock._call_matcher` returning tuple instead of
4803 - bpo-29446: Make `from tkinter import *` import only the expected objects.
4805 - bpo-16970: Adding a value error when an invalid value in passed to nargs
4808 - bpo-34443: Exceptions from :mod:`enum` now use the ``__qualname`` of the
4811 - bpo-37491: Fix ``IndexError`` when parsing email headers with unexpectedly
4812 ending bare-quoted string value. Patch by Abhilash Raj.
4814 - bpo-37587: Make json.loads faster for long strings. (Patch by Marco
4817 - bpo-18378: Recognize "UTF-8" as a valid value for LC_CTYPE in
4820 - bpo-37579: Return :exc:`NotImplemented` in Python implementation of
4822 when the other object being compared is not of the same type to match C
4825 - bpo-21478: Record calls to parent when autospecced object is attached to a
4829 - bpo-37531: "python3 -m test -jN --timeout=TIMEOUT" now kills a worker
4832 - bpo-37482: Fix serialization of display name in originator or destination
4835 - bpo-36993: Improve error reporting for corrupt zip files with bad zip64
4838 - bpo-37502: pickle.loads() no longer raises TypeError when the buffers
4839 argument is set to None
4841 - bpo-37520: Correct behavior for zipfile.Path.parent when the path object
4844 - bpo-18374: Fix the ``.col_offset`` attribute of nested :class:`ast.BinOp`
4847 - bpo-37424: Fixes a possible hang when using a timeout on
4853 - bpo-37421: Fix :func:`multiprocessing.util.get_temp_dir` finalizer: clear
4858 - bpo-37481: The distutils ``bdist_wininst`` command is deprecated in Python
4861 - bpo-37479: When `Enum.__str__` is overridden in a derived class, the
4865 - bpo-37440: http.client now enables TLS 1.3 post-handshake authentication
4866 for default context or if a cert_file is passed to HTTPSConnection.
4868 - bpo-37437: Update vendorized expat version to 2.2.7.
4870 - bpo-37428: SSLContext.post_handshake_auth = True no longer sets
4872 option is documented as ignored for clients, OpenSSL implicitly enables
4873 cert chain validation when the flag is set.
4875 - bpo-37420: :func:`os.sched_setaffinity` now correctly handles errors that
4878 - bpo-37412: The :func:`os.getcwdb` function now uses the UTF-8 encoding on
4880 The function is no longer deprecated on Windows.
4882 - bpo-37406: The sqlite3 module now raises TypeError, rather than
4883 ValueError, if operation argument type is not str: execute(),
4886 - bpo-29412: Fix IndexError in parsing a header value ending unexpectedly.
4889 - bpo-36546: The *dist* argument for statistics.quantiles() is now
4894 - bpo-37394: Fix a bug that was causing the :mod:`queue` module to fail if
4897 - bpo-37376: :mod:`pprint` now has support for
4900 - bpo-26967: An :class:`~argparse.ArgumentParser` with
4902 ``-vv``, but only disables abbreviation of long flags as documented. Patch
4903 by Zac Hatfield-Dodds.
4905 - bpo-37212: :func:`unittest.mock.call` now preserves the order of keyword
4908 - bpo-37372: Fix error unpickling datetime.time objects from Python 2 with
4911 - bpo-37345: Add formal support for UDPLITE sockets. Support was present
4912 before, but it is now easier to detect support with ``hasattr(socket,
4918 - bpo-37358: Optimized ``functools.partial`` by using vectorcall.
4920 - bpo-37347: :meth:`sqlite3.Connection.create_aggregate`,
4928 - bpo-37163: The *obj* argument of :func:`dataclasses.replace` is
4929 positional-only now.
4931 - bpo-37085: Add the optional Linux SocketCAN Broadcast Manager constants,
4935 - bpo-37328: ``HTMLParser.unescape`` is removed. It was undocumented and
4938 - bpo-37305: Add .webmanifest -> application/manifest+json to list of
4941 - bpo-37320: ``aifc.openfp()`` alias to ``aifc.open()``, ``sunau.openfp()``
4945 - bpo-37315: Deprecated accepting floats with integral value (like ``5.0``)
4948 - bpo-37312: ``_dummy_thread`` and ``dummy_threading`` modules have been
4952 - bpo-33972: Email with single part but content-type set to ``multipart/*``
4955 - bpo-37280: Use threadpool for reading from file for sendfile fallback
4958 - bpo-37279: Fix asyncio sendfile support when sendfile sends extra data in
4961 - bpo-19865: :func:`ctypes.create_unicode_buffer()` now also supports
4962 non-BMP characters on platforms with 16-bit :c:type:`wchar_t` (for
4965 - bpo-37266: In a subinterpreter, spawning a daemon thread now raises an
4970 - bpo-37210: Allow pure Python implementation of :mod:`pickle` to work even
4971 when the C :mod:`_pickle` module is unavailable.
4973 - bpo-21872: Fix :mod:`lzma`: module decompresses data incompletely. When
4978 - bpo-35922: Fix :meth:`RobotFileParser.crawl_delay` and
4980 :exc:`AttributeError` when no relevant rule is defined in the robots.txt
4983 - bpo-35766: Change the format of feature_version to be a (major, minor)
4986 - bpo-36607: Eliminate :exc:`RuntimeError` raised by
4987 :func:`asyncio.all_tasks()` if internal tasks weak set is changed by
4990 - bpo-18748: :class:`_pyio.IOBase` destructor now does nothing if getting
4994 - bpo-36402: Fix a race condition at Python shutdown when waiting for
4995 threads. Wait until the Python thread state of all non-daemon threads get
4996 deleted (join all non-daemon threads), rather than just wait until
4997 non-daemon Python threads complete.
4999 - bpo-37206: Default values which cannot be represented as Python objects no
5002 - bpo-37111: Added ``encoding`` and ``errors`` keyword parameters to
5005 - bpo-12144: Ensure cookies with ``expires`` attribute are handled in
5008 - bpo-34886: Fix an unintended ValueError from :func:`subprocess.run` when
5014 - bpo-37173: The exception message for ``inspect.getfile()`` now correctly
5017 - bpo-37178: Give math.perm() a one argument form that means the same as
5020 - bpo-37178: For math.perm(n, k), let k default to n, giving the same result
5023 - bpo-37165: Converted _collections._count_elements to use the Argument
5026 - bpo-34767: Do not always create a :class:`collections.deque` in
5029 - bpo-37158: Speed-up statistics.fmean() by switching from a function to a
5032 - bpo-34282: Remove ``Enum._convert`` method, deprecated in 3.8.
5034 - bpo-37150: `argparse._ActionsContainer.add_argument` now throws error, if
5038 - bpo-28724: The socket module now has the :func:`socket.send_fds` and
5042 - bpo-35621: Support running asyncio subprocesses when execution event loop
5045 - bpo-36520: Lengthy email headers with UTF-8 characters are now properly
5048 - bpo-30835: Fixed a bug in email parsing where a message with invalid bytes
5049 in content-transfer-encoding of a multipart message can cause an
5052 - bpo-31163: pathlib.Path instance's rename and replace methods now return
5055 - bpo-25068: :class:`urllib.request.ProxyHandler` now lowercases the keys of
5058 - bpo-26185: Fix :func:`repr` on empty :class:`ZipInfo` object. Patch by
5061 - bpo-21315: Email headers containing RFC2047 encoded words are parsed
5063 trailing whitespace after encoded words is now registered as a defect.
5065 - bpo-31904: Port test_datetime to VxWorks: skip zoneinfo tests on VxWorks
5067 - bpo-35805: Add parser for Message-ID header and add it to default
5068 HeaderRegistry. This should prevent folding of Message-ID using RFC 2048
5071 - bpo-36871: Ensure method signature is used instead of constructor
5075 - bpo-35070: posix.getgrouplist() now works correctly when the user belongs
5078 - bpo-31783: Fix race condition in ThreadPoolExecutor when worker threads
5081 - bpo-36582: Fix ``UserString.encode()`` to correctly return ``bytes``
5084 - bpo-32424: Deprecate xml.etree.ElementTree.Element.copy() in favor of
5089 - bpo-36564: Fix infinite loop in email header folding logic that would be
5090 triggered when an email policy's max_line_length is not long enough to
5094 - bpo-36543: Removed methods Element.getchildren(), Element.getiterator()
5097 - bpo-36409: Remove the old plistlib API deprecated in Python 3.4
5099 - bpo-36302: distutils sorts source file lists so that Extension .so files
5102 - bpo-36250: Ignore ``ValueError`` from ``signal`` with ``interaction`` in
5103 non-main thread.
5105 - bpo-36046: Added ``user``, ``group`` and ``extra_groups`` parameters to
5108 - bpo-32627: Fix compile error when ``_uuid`` headers conflicting included.
5110 - bpo-35800: Deprecate ``smtpd.MailmanProxy`` ready for future removal.
5112 - bpo-35168: :attr:`shlex.shlex.punctuation_chars` is now a read-only
5115 - bpo-8538: Add support for boolean actions like ``--foo`` and ``--no-foo``
5118 - bpo-20504: Fixes a bug in :mod:`cgi` module when a multipart/form-data
5119 request has no `Content-Length` header.
5121 - bpo-25988: The abstract base classes in :mod:`collections.abc` no longer
5124 - bpo-11122: Distutils won't check for rpmbuild in specified paths only.
5126 - bpo-34775: Division handling of PurePath now returns NotImplemented
5130 - bpo-34749: :func:`binascii.a2b_base64` is now up to 2 times faster. Patch
5133 - bpo-34519: Add additional aliases for HP Roman 8. Patch by Michael Osipov.
5135 - bpo-28009: Fix uuid.getnode() on platforms with '.' as MAC Addr delimiter
5137 Currently, AIX is the only know platform with these settings. Patch by
5140 - bpo-30618: Add :meth:`~pathlib.Path.readlink`. Patch by Girts Folkmanis.
5142 - bpo-32498: Made :func:`urllib.parse.unquote()` accept bytes in addition to
5145 - bpo-33348: lib2to3 now recognizes expressions after ``*`` and `**` like in
5148 - bpo-32689: Update :func:`shutil.move` function to allow for Path objects
5152 - bpo-32820: Added __format__ to IPv4 and IPv6 classes. Always outputs a
5153 fully zero- padded string. Supports b/x/n modifiers (bin/hex/native
5154 format). Native format for IPv4 is bin, native format for IPv6 is hex.
5157 - bpo-27657: Fix urllib.parse.urlparse() with numeric paths. A string like
5158 "path:80" is no longer parsed as a path but as a scheme ("path") and a
5161 - bpo-4963: Fixed non-deterministic behavior related to mimetypes extension
5165 -------------
5167 - bpo-21767: Explicitly mention abc support in functools.singledispatch
5169 - bpo-38816: Provides more details about the interaction between
5170 :c:func:`fork` and CPython's runtime, focusing just on the C-API. This
5174 - bpo-38351: Modernize :mod:`email` examples from %-formatting to f-strings.
5176 - bpo-38778: Document the fact that :exc:`RuntimeError` is raised if
5177 :meth:`os.fork` is called in a subinterpreter.
5179 - bpo-38592: Add Brazilian Portuguese to the language switcher at Python
5182 - bpo-38294: Add list of no-longer-escaped chars to re.escape documentation
5184 - bpo-38053: Modernized the plistlib documentation
5186 - bpo-26868: Fix example usage of :c:func:`PyModule_AddObject` to properly
5189 - bpo-36797: Fix a dead link in the distutils API Reference.
5191 - bpo-37977: Warn more strongly and clearly about pickle insecurity
5193 - bpo-37979: Added a link to dateutil.parser.isoparse in the
5196 - bpo-12707: Deprecate info(), geturl(), getcode() methods in favor of the
5201 - bpo-37937: Mention ``frame.f_trace`` in :func:`sys.settrace` docs.
5203 - bpo-37878: Make :c:func:`PyThreadState_DeleteCurrent` Internal.
5205 - bpo-37759: Beginning edits to Whatsnew 3.8
5207 - bpo-37726: Stop recommending getopt in the tutorial for command line
5210 - bpo-32910: Remove implementation-specific behaviour of how venv's
5213 - bpo-37256: Fix wording of arguments for :class:`Request` in
5216 - bpo-37284: Add a brief note to indicate that any new
5220 - bpo-30088: Documented that :class:`mailbox.Maildir` constructor doesn't
5224 - bpo-37521: Fix `importlib` examples to insert any newly created modules
5230 - bpo-37456: Slash ('/') is now part of syntax.
5232 - bpo-37487: Fix PyList_GetItem index description to include 0.
5234 - bpo-37149: Replace the dead link to the Tkinter 8.5 reference by John
5237 - bpo-37478: Added possible exceptions to the description of os.chdir().
5239 - bpo-34903: Documented that in :meth:`datetime.datetime.strptime()`, the
5240 leading zero in some two-digit formats is optional. Patch by Mike Gleen.
5242 - bpo-36260: Add decompression pitfalls to zipfile module documentation.
5244 - bpo-37004: In the documentation for difflib, a note was added explicitly
5248 - bpo-36960: Restructured the :mod:`datetime` docs in the interest of making
5249 them more user-friendly and improving readability. Patch by Brad Solomon.
5251 - bpo-36487: Make C-API docs clear about what the "main" interpreter is.
5253 - bpo-23460: The documentation for decimal string formatting using the `:g`
5257 - bpo-35803: Document and test that ``tempfile`` functions may accept a
5258 :term:`path-like object` for the ``dir`` argument. Patch by Anthony
5261 - bpo-33944: Added a note about the intended use of code in .pth files.
5263 - bpo-34293: Fix the Doc/Makefile regarding PAPER environment variable and
5266 - bpo-25237: Add documentation for tkinter modules
5269 -----
5271 - bpo-38614: Fix test_communicate() of test_asyncio.test_subprocess: use
5274 - bpo-38614: Add timeout constants to :mod:`test.support`:
5280 - bpo-38502: test.regrtest now uses process groups in the multiprocessing
5281 mode (-jN command line option) if process groups are available: if
5284 - bpo-35998: Fix a race condition in test_asyncio.test_start_tls_server_1().
5287 ANSWER once it gets HELLO. Now, only the test main() function is
5290 - bpo-38470: Fix ``test_compileall.test_compile_dir_maxlevels()`` on Windows
5294 - bpo-37531: On timeout, regrtest no longer attempts to call
5300 - bpo-38239: Fix test_gdb for Link Time Optimization (LTO) builds.
5302 - bpo-38275: test_ssl now handles disabled TLS/SSL versions better.
5303 OpenSSL's crypto policy and run-time settings are recognized and tests for
5307 - bpo-38271: The private keys for test_ssl were encrypted with 3DES in
5312 - bpo-38270: test.support now has a helper function to check for
5315 when MD5 is disabled.
5317 - bpo-37123: Multiprocessing test test_mymanager() now also expects
5318 -SIGTERM, not only exitcode 0. BaseManager._finalize_manager() sends
5319 SIGTERM to the manager process if it takes longer than 1 second to stop,
5322 - bpo-38212: Multiprocessing tests: increase
5325 - bpo-38117: Test with OpenSSL 1.1.1d
5327 - bpo-38018: Increase code coverage for multiprocessing.shared_memory.
5329 - bpo-37805: Add tests for json.dump(..., skipkeys=True). Patch by Dong-hee
5332 - bpo-37531: Enhance regrtest multiprocess timeout: write a message when
5334 put a timeout on the second call to popen.communicate().
5336 - bpo-37876: Add tests for ROT-13 codec.
5338 - bpo-36833: Added tests for PyDateTime_xxx_GET_xxx() macros of the C API of
5341 - bpo-37558: Fix test_shared_memory_cleaned_after_process_termination name
5344 - bpo-37526: Add :func:`test.support.catch_threading_exception`: context
5348 - bpo-37421: test_concurrent_futures now explicitly stops the ForkServer
5351 - bpo-37421: multiprocessing tests now stop the ForkServer instance if it's
5355 - bpo-37421: test_distutils.test_build_ext() is now able to remove the
5359 - bpo-37421: test_concurrent_futures now cleans up multiprocessing to remove
5363 - bpo-37421: test_winconsoleio doesn't leak a temporary file anymore: use
5366 - bpo-37421: multiprocessing tests now explicitly call ``_run_finalizers()``
5369 - bpo-37421: urllib.request tests now call
5374 - bpo-37472: Remove ``Lib/test/outstanding_bugs.py``.
5376 - bpo-37199: Fix test failures when IPv6 is unavailable or disabled.
5378 - bpo-19696: Replace deprecated method "random.choose" with "random.choice"
5381 - bpo-37335: Remove no longer necessary code from c locale coercion tests
5383 - bpo-37421: Fix test_shutil to no longer leak temporary files.
5385 - bpo-37411: Fix test_wsgiref.testEnviron() to no longer depend on the
5386 environment variables (don't fail if "X" variable is set).
5388 - bpo-37400: Fix test_os.test_chown(): use os.getgroups() rather than
5391 - bpo-37359: Add --cleanup option to python3 -m test to remove
5393 cleantest" to run ``python3 -m test --cleanup``.
5395 - bpo-37362: test_gdb no longer fails if it gets an "unexpected" message on
5396 stderr: it now ignores stderr. The purpose of test_gdb is to test that
5397 python-gdb.py commands work as expected, not to test gdb.
5399 - bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1()
5401 - bpo-37278: Fix test_asyncio ProactorLoopCtrlC: join the thread to prevent
5404 - bpo-37261: Fix :func:`test.support.catch_unraisable_exception`: its
5408 - bpo-37069: regrtest now uses :func:`sys.unraisablehook` to mark a test as
5412 Use ``python3 -m test --fail-env-changed`` to catch unraisable exceptions
5415 - bpo-37252: Fix assertions in ``test_close`` and
5418 - bpo-37169: Rewrite ``_PyObject_IsFreed()`` unit tests.
5420 - bpo-37153: ``test_venv.test_multiprocessing()`` now explicitly calls
5423 - bpo-34001: Make test_ssl pass with LibreSSL. LibreSSL handles minimum and
5426 - bpo-36919: Make ``test_source_encoding.test_issue2301`` implementation
5429 - bpo-30202: Update ``test.test_importlib.test_abc`` to test
5432 - bpo-28009: Modify the test_uuid logic to test when a program is available
5435 - bpo-34596: Fallback to a default reason when :func:`unittest.skip` is
5439 -----
5441 - bpo-38809: On Windows, build scripts will now recognize and use python.exe
5444 - bpo-38684: Fix _hashlib build when Blake2 is disabled, but OpenSSL
5447 - bpo-38468: Misc/python-config.in now uses `getvar()` for all still
5450 - bpo-37415: Fix stdatomic.h header check for ICC compiler: the ICC
5451 implementation lacks atomic_uintptr_t type which is needed by Python.
5453 - bpo-38301: In Solaris family, we must be sure to use ``-D_REENTRANT``.
5456 - bpo-36002: Locate ``llvm-profdata`` and ``llvm-ar`` binaries using
5459 - bpo-37936: The :file:`.gitignore` file systematically keeps "rooted", with
5460 a non-trailing slash, all the rules that are meant to apply to files in a
5465 - bpo-37760: The :file:`Tools/unicode/makeunicodedata.py` script, which is
5469 ``dataclass`` with named attributes, rather than a length-18 list of
5472 - bpo-37936: The :file:`.gitignore` file no longer applies to any files that
5475 - bpo-37725: Change "clean" makefile target to also clean the program guided
5477 and "make profile-removal", or "make clobber".
5479 - bpo-37707: Mark some individual tests to skip when --pgo is used. The
5483 - bpo-36044: Reduce the number of unit tests run for the PGO generation
5485 unit test suite is slow. This change may result in a slightly less
5488 restored using './configure [..] PROFILE_TASK="-m test --pgo-extended"'.
5493 - bpo-37468: ``make install`` no longer installs ``wininst-*.exe`` files
5496 - bpo-37189: Many ``PyRun_XXX()`` functions like :c:func:`PyRun_String` were
5500 - bpo-25361: Enables use of SSE2 instructions in Windows 32-bit build.
5502 - bpo-36210: Update optional extension module detection for AIX. ossaudiodev
5504 missing. 3rd-party packaging of ncurses (with ASIS support) conflicts with
5511 -------
5513 - bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C
5516 - bpo-38453: Ensure ntpath.realpath() correctly resolves relative paths.
5518 - bpo-38519: Restores the internal C headers that were missing from the
5521 - bpo-38492: Remove ``pythonw.exe`` dependency on the Microsoft C++ runtime.
5523 - bpo-38344: Fix error message in activate.bat
5525 - bpo-38359: Ensures ``pyw.exe`` launcher reads correct registry key.
5527 - bpo-38355: Fixes ``ntpath.realpath`` failing on ``sys.executable``.
5529 - bpo-38117: Update bundled OpenSSL to 1.1.1d
5531 - bpo-38092: Reduce overhead when using multiprocessing in a Windows virtual
5534 - bpo-38133: Allow py.exe launcher to locate installations from the
5537 - bpo-38114: The ``pip.ini`` is no longer included in the Nuget package.
5539 - bpo-32592: Set Windows 8 as the minimum required version for API support
5541 - bpo-36634: :func:`os.cpu_count` now returns active processors rather than
5544 - bpo-36634: venv activate.bat now works when the existing variables contain
5547 - bpo-38081: Prevent error calling :func:`os.path.realpath` on ``'NUL'``.
5549 - bpo-38087: Fix case sensitivity in test_pathlib and test_ntpath.
5551 - bpo-38088: Fixes distutils not finding vcruntime140.dll with only the v142
5554 - bpo-37283: Ensure command-line and unattend.xml setting override
5557 - bpo-38030: Fixes :func:`os.stat` failing for block devices on Windows
5559 - bpo-38020: Fixes potential crash when calling :func:`os.readlink` (or
5560 indirectly through :func:`~os.path.realpath`) on a file that is not a
5563 - bpo-37705: Improve the implementation of ``winerror_to_errno()``.
5565 - bpo-37549: :func:`os.dup` no longer fails for standard streams on Windows
5568 - bpo-1311: The ``nul`` file on Windows now returns True from
5572 - bpo-9949: Enable support for following symlinks in :func:`os.realpath`.
5574 - bpo-37834: Treat all name surrogate reparse points on Windows in
5578 - bpo-36266: Add the module name in the formatted error message when DLL
5582 - bpo-25172: Trying to import the :mod:`crypt` module on Windows will result
5585 module is not available, the ImportError will include a message explaining
5588 - bpo-37778: Fixes the icons used for file associations to the Microsoft
5591 - bpo-37734: Fix use of registry values to launch Python from Microsoft
5594 - bpo-37702: Fix memory leak on Windows in creating an SSLContext object or
5597 - bpo-37672: Switch Windows Store package's pip to use bundled
5600 - bpo-10945: Officially drop support for creating bdist_wininst installers
5601 on non-Windows systems.
5603 - bpo-37445: Include the ``FORMAT_MESSAGE_IGNORE_INSERTS`` flag in
5606 - bpo-37369: Fixes path for :data:`sys.executable` when running from the
5609 - bpo-37380: Don't collect unfinished processes with ``subprocess._active``
5612 - bpo-37351: Removes libpython38.a from standard Windows distribution.
5614 - bpo-35360: Update Windows builds to use SQLite 3.28.0.
5616 - bpo-37267: On Windows, :func:`os.dup` no longer creates an inheritable fd
5619 - bpo-36779: Ensure ``time.tzname`` is correct on Windows when the active
5620 code page is set to CP_UTF7 or CP_UTF8.
5622 - bpo-32587: Make :data:`winreg.REG_MULTI_SZ` support zero-length strings.
5624 - bpo-28269: Replace use of :c:func:`strcasecmp` for the system function
5627 - bpo-36590: Add native Bluetooth RFCOMM support to socket module.
5630 -----
5632 - bpo-38117: Updated OpenSSL to 1.1.1d in macOS installer.
5634 - bpo-38089: Move Azure Pipelines to latest VM versions and make macOS tests
5637 - bpo-18049: Increase the default stack size of threads from 5MB to 16MB on
5641 - bpo-34602: Avoid test suite failures on macOS by no longer calling
5643 The runtime change is no longer needed since the interpreter is being
5646 - bpo-35360: Update macOS installer to use SQLite 3.28.0.
5648 - bpo-34631: Updated OpenSSL to 1.1.1c in macOS installer.
5651 ----
5653 - bpo-26353: Stop adding newline when saving an IDLE shell window.
5655 - bpo-4630: Add an option to toggle IDLE's cursor blink for shell, editor,
5659 - bpo-38598: Do not try to compile IDLE shell or output windows
5661 - bpo-36698: IDLE no longer fails when write non-encodable characters to
5665 - bpo-35379: When exiting IDLE, catch any AttributeError. One happens when
5666 EditorWindow.close is called twice. Printing a traceback, when IDLE is
5667 run from a terminal, is useless and annoying.
5669 - bpo-38183: To avoid problems, test_idle ignores the user config directory.
5673 - bpo-38077: IDLE no longer adds 'argv' to the user namespace when
5676 - bpo-38041: Shell restart lines now fill the window width, always start
5678 the included file name is long relative to the width.
5680 - bpo-35771: To avoid occasional spurious test_idle failures on slower
5683 - bpo-37824: Properly handle user input warnings in IDLE shell. Cease
5686 - bpo-37929: IDLE Settings dialog now closes properly when there is no shell
5689 - bpo-37902: Add mousewheel scrolling for IDLE module, path, and stack
5692 - bpo-37849: Fixed completions list appearing too high or low when shown
5695 - bpo-36419: Refactor IDLE autocomplete and improve testing.
5697 - bpo-37748: Reorder the Run menu. Put the most common choice, Run Module,
5700 - bpo-37692: Improve highlight config sample with example shell interaction
5703 - bpo-37628: Settings dialog no longer expands with font size.
5705 - bpo-37627: Initialize the Customize Run dialog with the command line
5709 - bpo-33610: Fix code context not showing the correct context when first
5712 - bpo-37530: Optimize code context to reduce unneeded background activity.
5716 - bpo-27452: Cleanup ``config.py`` by inlining ``RemoveFile`` and
5719 - bpo-37325: Fix tab focus traversal order for help source and custom run
5722 - bpo-37321: Both subprocess connection error messages now refer to the
5725 - bpo-17535: Add optional line numbers for IDLE editor windows. Windows
5729 - bpo-26806: To compensate for stack frames added by IDLE and avoid possible
5734 - bpo-37177: Properly 'attach' search dialogs to their main window so that
5738 - bpo-37039: Adjust "Zoom Height" to individual screens by momentarily
5740 screen settings may invalidate the saved height. While a window is
5743 - bpo-35763: Make calltip reminder about '/' meaning positional-only less
5744 obtrusive by only adding it when there is room on the first line.
5746 - bpo-5680: Add 'Run... Customized' to the Run menu to run a module with
5750 - bpo-36390: Gather Format menu functions into format.py. Combine
5754 -----------
5756 - bpo-38118: Update Valgrind suppression file to ignore a false alarm in
5759 - bpo-38347: pathfix.py: Assume all files that end on '.py' are Python
5762 - bpo-37803: pdb's ``--help`` and ``--version`` long options now work.
5764 - bpo-37942: Improve ArgumentClinic converter for floats.
5766 - bpo-37704: Remove ``Tools/scripts/h2py.py``: use cffi to access a C API in
5769 - bpo-37675: 2to3 now works when run from a zipped standard library.
5771 - bpo-37034: Argument Clinic now uses the argument name on errors with
5772 keyword-only argument instead of their position. Patch contributed by Rémi
5775 - bpo-37064: Add option -k to pathscript.py script: preserve shebang flags.
5776 Add option -a to pathscript.py script: add flags.
5779 -----
5781 - bpo-37633: Re-export some function compatibility wrappers for macros in
5784 - bpo-38644: Provide :c:func:`Py_EnterRecursiveCall` and
5790 - bpo-38650: The global variable :c:data:`PyStructSequence_UnnamedField` is
5793 - bpo-38540: Fixed possible leak in :c:func:`PyArg_Parse` and similar
5795 :c:macro:`PY_SSIZE_T_CLEAN` is not defined.
5797 - bpo-38395: Fix a crash in :class:`weakref.proxy` objects due to incorrect
5802 - bpo-36389: The ``_PyObject_CheckConsistency()`` function is now also
5806 - bpo-38266: Revert the removal of PyThreadState_DeleteCurrent() with
5809 - bpo-38303: Update audioop extension module to use the stable ABI
5810 (PEP-384). Patch by Tyler Kieft.
5812 - bpo-38234: :c:func:`Py_SetPath` now sets :data:`sys.executable` to the
5816 - bpo-38234: Python ignored arguments passed to :c:func:`Py_SetPath`,
5820 - bpo-38205: The :c:func:`Py_UNREACHABLE` macro now calls
5823 - bpo-38140: Make dict and weakref offsets opaque for C heap types by
5826 - bpo-15088: The C function ``PyGen_NeedsFinalizing`` has been removed. It
5831 - bpo-36763: Options added by ``PySys_AddXOption()`` are now handled the
5832 same way than ``PyConfig.xoptions`` and command line ``-X`` options.
5834 - bpo-37926: Fix a crash in ``PySys_SetArgvEx(0, NULL, 0)``.
5836 - bpo-37879: Fix subtype_dealloc to suppress the type decref when the base
5837 type is a C heap type
5839 - bpo-37645: Add :c:func:`_PyObject_FunctionStr` to get a user-friendly
5840 string representation of a function-like object. Patch by Jeroen Demeyer.
5842 - bpo-29548: The functions ``PyEval_CallObject``, ``PyEval_CallFunction``,
5846 - bpo-37151: ``PyCFunction_Call`` is now a deprecated alias of
5849 - bpo-37540: The vectorcall protocol now requires that the caller passes
5852 - bpo-37207: The vectorcall protocol is now enabled for ``type`` objects:
5856 - bpo-21120: Exclude Python-ast.h, ast.h and asdl.h from the limited API.
5858 - bpo-37483: Add new function ``_PyObject_CallOneArg`` for calling an object
5861 - bpo-36763: Add :func:`PyConfig_SetWideStringList` function.
5863 - bpo-37337: Add fast functions for calling methods:
5867 - bpo-28805: The :const:`METH_FASTCALL` calling convention has been
5870 - bpo-37221: The new function :c:func:`PyCode_NewWithPosOnlyArgs` allows to
5872 *posonlyargcount* parameter for indicating the number of positonal-only
5875 - bpo-37215: Fix dtrace issue introduce by bpo-36842
5877 - bpo-37194: Add a new public :c:func:`PyObject_CallNoArgs` function to the
5878 C API: call a callable Python object without any arguments. It is the most
5879 efficient way to call a callback without any argument. On x86-64, for
5884 - bpo-37170: Fix the cast on error in
5887 - bpo-35381: Convert posixmodule.c statically allocated types
5888 ``DirEntryType`` and ``ScandirIteratorType`` to heap-allocated types.
5890 - bpo-34331: Use singular/plural noun in error message when instantiating an
5891 abstract class with non-overriden abstract method(s).
5897 *Release date: 2019-06-04*
5900 --------
5902 - bpo-35907: CVE-2019-9948: Avoid file reading by disallowing
5903 ``local-file://`` and ``local_file://`` URL schemes in
5907 - bpo-33529: Prevent fold function used in email header encoding from
5908 entering infinite loop when there are too many non-ASCII characters in a
5911 - bpo-33164: Updated blake2 implementation which uses secure memset
5915 -----------------
5917 - bpo-35814: Allow unpacking in the right hand side of annotated
5918 assignments. In particular, ``t: Tuple[int, ...] = x, y, *z`` is now
5921 - bpo-37126: All structseq objects are now tracked by the garbage collector.
5924 - bpo-37122: Make the *co_argcount* attribute of code objects represent the
5925 total number of positional arguments (including positional-only
5927 which arguments are positional only, and the difference (*co_argcount* -
5928 *co_posonlyargcount*) is the number of positional-or-keyword arguments.
5931 - bpo-20092: Constructors of :class:`int`, :class:`float` and
5934 :meth:`~object.__float__` or :meth:`~object.__complex__` is not available.
5936 - bpo-37087: Add native thread ID (TID) support to OpenBSD.
5938 - bpo-26219: Implemented per opcode cache mechanism and ``LOAD_GLOBAL``
5939 instruction use it. ``LOAD_GLOBAL`` is now about 40% faster. Contributed
5942 - bpo-37072: Fix crash in PyAST_FromNodeObject() when flags is NULL.
5944 - bpo-37029: Freeing a great many small objects could take time quadratic in
5947 This is accomplished without search now, leaving the worst-case time
5953 - bpo-26423: Fix possible overflow in ``wrap_lenfunc()`` when ``sizeof(long)
5954 < sizeof(Py_ssize_t)`` (e.g., 64-bit Windows).
5956 - bpo-37050: Improve the AST for "debug" f-strings, which use '=' to print
5959 merged with adjacent constant expressions inside the f-string).
5961 - bpo-22385: The `bytes.hex`, `bytearray.hex`, and `memoryview.hex` methods
5966 - bpo-26836: Add :func:`os.memfd_create`.
5968 - bpo-37032: Added new ``replace()`` method to the code type
5971 - bpo-37007: Implement :func:`socket.if_nameindex()`,
5975 - bpo-36829: :c:func:`PyErr_WriteUnraisable` now creates a traceback object
5976 if there is no current traceback. Moreover, call
5980 - bpo-36878: Only accept text after `# type: ignore` if the first character
5981 is ASCII. This is to disallow things like `# type: ignoreé`.
5983 - bpo-36878: Store text appearing after a `# type: ignore` comment in the
5987 - bpo-2180: Treat line continuation at EOF as a ``SyntaxError`` by Anthony
5990 - bpo-36907: Fix a crash when calling a C function with a keyword dict
5991 (``f(**kwargs)``) and changing the dict ``kwargs`` while that function is
5994 - bpo-36946: Fix possible signed integer overflow when handling slices.
5996 - bpo-36826: Add NamedExpression kind support to ast_unparse.c
5998 - bpo-1875: A :exc:`SyntaxError` is now raised if a code blocks that will be
6002 - bpo-36027: Allow computation of modular inverses via three-argument
6003 ``pow``: the second argument is now permitted to be negative in the case
6006 - bpo-36861: Update the Unicode database to version 12.1.0.
6008 - bpo-28866: Avoid caching attributes of classes which type defines mro() to
6011 - bpo-36851: The ``FrameType`` stack is now correctly cleaned up if the
6012 execution ends with a return and the stack is not empty.
6014 - bpo-34616: The ``compile()`` builtin functions now support the
6016 that contains top-level ``await``, ``async with`` or ``async for``. This
6017 is useful to evaluate async-code from with an already async functions; for
6020 - bpo-36842: Implement PEP 578, adding sys.audit, io.open_code and related
6023 - bpo-27639: Correct return type for UserList slicing operations. Patch by
6026 - bpo-36737: Move PyRuntimeState.warnings into per-interpreter state (via
6029 - bpo-36793: Removed ``__str__`` implementations from builtin types
6034 - bpo-36817: Add a ``=`` feature f-strings for debugging. This can precede
6038 ``'3*9+15=42'``. If ``=`` is specified, the default conversion is set to
6039 ``!r``, unless a format spec is given, in which case the formatting
6040 behavior is unchanged, and __format__ will be used.
6042 - bpo-24048: Save the live exception during import.c's ``remove_module()``.
6044 - bpo-27987: pymalloc returns memory blocks aligned by 16 bytes, instead of
6045 8 bytes, on 64-bit platforms to conform x86-64 ABI. Recent compilers
6048 - bpo-36601: A long-since-meaningless check for ``getpid() == main_pid`` was
6051 - bpo-36594: Fix incorrect use of ``%p`` in format strings. Patch by Zackery
6054 - bpo-36045: builtins.help() now prefixes `async` for async functions
6056 - bpo-36084: Add native thread ID (TID) to threading.Thread objects
6059 - bpo-36035: Added fix for broken symlinks in combination with pathlib
6061 - bpo-35983: Added new trashcan macros to deal with a double deallocation
6066 - bpo-20602: Do not clear :data:`sys.flags` and :data:`sys.float_info`
6069 - bpo-26826: Expose :func:`copy_file_range` as a low level API in the
6072 - bpo-32388: Remove cross-version binary compatibility requirement in
6075 - bpo-31862: Port binascii to PEP 489 multiphase initialization. Patch by
6079 -------
6081 - bpo-37128: Added :func:`math.perm`.
6083 - bpo-37120: Add SSLContext.num_tickets to control the number of TLSv1.3
6086 - bpo-12202: Fix the error handling in
6089 - bpo-26835: The fcntl module now contains file sealing constants for
6092 - bpo-29262: Add ``get_origin()`` and ``get_args()`` introspection helpers
6095 - bpo-12639: :meth:`msilib.Directory.start_component()` no longer fails if
6096 *keyfile* is not ``None``.
6098 - bpo-36999: Add the ``asyncio.Task.get_coro()`` method to publicly expose
6101 - bpo-35246: Make :func:`asyncio.create_subprocess_exec` accept path-like
6104 - bpo-35279: Change default *max_workers* of ``ThreadPoolExecutor`` from
6108 - bpo-37076: :func:`_thread.start_new_thread` now logs uncaught exception
6113 - bpo-33725: On macOS, the :mod:`multiprocessing` module now uses *spawn*
6116 - bpo-37054: Fix destructor :class:`_pyio.BytesIO` and
6121 - bpo-37058: PEP 544: Add ``Protocol`` and ``@runtime_checkable`` to the
6124 - bpo-36933: The functions ``sys.set_coroutine_wrapper`` and
6128 - bpo-37047: Handle late binding and attribute access in
6132 - bpo-37049: PEP 589: Add ``TypedDict`` to the ``typing`` module.
6134 - bpo-37046: PEP 586: Add ``Literal`` to the ``typing`` module.
6136 - bpo-37045: PEP 591: Add ``Final`` qualifier and ``@final`` decorator to
6139 - bpo-37035: Don't log OSError based exceptions if a fatal error has
6142 propagated to user code, it's just logging them is pointless and pollute
6145 - bpo-37001: :func:`symtable.symtable` now accepts the same input types for
6146 source code as the built-in :func:`compile` function. Patch by Dino
6149 - bpo-37028: Implement asyncio REPL
6151 - bpo-37027: Return safe to use proxy socket object from
6154 - bpo-32528: Make asyncio.CancelledError a BaseException.
6163 - bpo-1230540: Add a new :func:`threading.excepthook` function which handles
6167 - bpo-36996: Handle :func:`unittest.mock.patch` used as a decorator on async
6170 - bpo-37008: Add support for calling :func:`next` with the mock resulting
6173 - bpo-27737: Allow whitespace only header encoding in ``email.header`` - by
6176 - bpo-36969: PDB command `args` now display positional only arguments.
6179 - bpo-36969: PDB command `args` now display keyword only arguments. Patch
6182 - bpo-36983: Add missing names to ``typing.__all__``: ``ChainMap``,
6183 ``ForwardRef``, ``OrderedDict`` - by Anthony Sottile.
6185 - bpo-36972: Add SupportsIndex protocol to the typing module to allow type
6189 - bpo-32972: Implement ``unittest.IsolatedAsyncioTestCase`` to help testing
6190 asyncio-based code.
6192 - bpo-36952: :func:`fileinput.input` and :class:`fileinput.FileInput`
6195 been made keyword-only.
6197 - bpo-36952: Starting with Python 3.3, importing ABCs from
6198 :mod:`collections` is deprecated, and import should be done from
6203 - bpo-36949: Implement __repr__ for WeakSet objects.
6205 - bpo-36948: Fix :exc:`NameError` in
6209 - bpo-33524: Fix the folding of email header when the max_line_length is 0
6210 or None and the header contains non-ascii characters. Contributed by
6211 Licht Takeuchi (@Licht-T).
6213 - bpo-24564: :func:`shutil.copystat` now ignores :const:`errno.EINVAL` on
6219 - bpo-36888: Python child processes can now access the status of their
6222 - bpo-36921: Deprecate ``@coroutine`` for sake of ``async def``.
6224 - bpo-25652: Fix bug in ``__rmod__`` of ``UserString`` - by Batuhan Taskaya.
6226 - bpo-36916: Remove a message about an unhandled exception in a task when
6227 writer.write() is used without await and writer.drain() fails with an
6230 - bpo-36889: Introduce :class:`asyncio.Stream` class that merges
6246 - bpo-36845: Added validation of integer prefixes to the construction of IP
6249 - bpo-23378: Add an extend action to argparser.
6251 - bpo-36867: Fix a bug making a SharedMemoryManager instance and its parent
6254 - bpo-23896: Adds a grammar to lib2to3.pygram that contains exec as a
6257 - bpo-36895: The function ``time.clock()`` was deprecated in 3.3 in favor of
6260 - bpo-35545: Fix asyncio discarding IPv6 scopes when ensuring hostname
6263 - bpo-36887: Add new function :func:`math.isqrt` to compute integer square
6266 - bpo-34632: Introduce the ``importlib.metadata`` module with (provisional)
6267 support for reading metadata from third-party packages.
6269 - bpo-36878: When using `type_comments=True` in `ast.parse`, treat `# type:
6270 ignore` followed by a non-alphanumeric character and then arbitrary text
6272 comment. This is to permit formations such as `# type: ignore[E1000]`.
6274 - bpo-36778: ``cp65001`` encoding (Windows code page 65001) becomes an alias
6277 - bpo-36867: The multiprocessing.resource_tracker replaces the
6281 - bpo-30262: The ``Cache`` and ``Statement`` objects of the :mod:`sqlite3`
6284 - bpo-24538: In `shutil.copystat()`, first copy extended file attributes and
6286 destination while it is still writeable.
6288 - bpo-36829: Add new :func:`sys.unraisablehook` function which can be
6289 overridden to control how "unraisable exceptions" are handled. It is
6290 called when an exception has occurred but there is no way for Python to
6294 - bpo-36832: Introducing ``zipfile.Path``, a pathlib-compatible wrapper for
6297 - bpo-36814: Fix an issue where os.posix_spawnp() would incorrectly raise a
6298 TypeError when file_actions is None.
6300 - bpo-33110: Handle exceptions raised by functions added by
6304 - bpo-26903: Limit `max_workers` in `ProcessPoolExecutor` to 61 to work
6307 - bpo-36813: Fix :class:`~logging.handlers.QueueListener` to call
6310 - bpo-36806: Forbid creation of asyncio stream objects like StreamReader,
6313 - bpo-36802: Provide both sync and async calls for StreamWriter.write() and
6316 - bpo-36801: Properly handle SSL connection closing in asyncio
6319 - bpo-36785: Implement PEP 574 (pickle protocol 5 with out-of-band buffers).
6321 - bpo-36772: functools.lru_cache() can now be used as a straight decorator
6324 - bpo-6584: Add a :exc:`~gzip.BadGzipFile` exception to the :mod:`gzip`
6327 - bpo-36748: Optimized write buffering in C implementation of
6329 latin1, or utf-8 encoding is about 20% faster. Patch by Inada Naoki.
6331 - bpo-8138: Don't mark ``wsgiref.simple_server.SimpleServer`` as
6332 multi-threaded since ``wsgiref.simple_server.WSGIServer`` is
6333 single-threaded.
6335 - bpo-22640: :func:`py_compile.compile` now supports silent mode. Patch by
6338 - bpo-29183: Fix double exceptions in :class:`wsgiref.handlers.BaseHandler`
6340 when no exception is raised.
6342 - bpo-36548: Improved the repr of regular expression flags.
6344 - bpo-36542: The signature of Python functions can now be overridden by
6347 - bpo-36533: Reinitialize logging.Handler locks in forked child processes
6354 - bpo-35252: Throw a TypeError instead of an AssertionError when using an
6357 - bpo-35900: Allow reduction methods to return a 6-item tuple where the 6th
6358 item specifies a custom state-setting method that's called instead of the
6361 - bpo-35900: enable custom reduction callback registration for functions and
6365 - bpo-36368: Fix a bug crashing SharedMemoryManager instances in interactive
6366 sessions after a ctrl-c (KeyboardInterrupt) was sent
6368 - bpo-31904: Fix mmap fail for VxWorks
6370 - bpo-27497: :meth:`csv.DictWriter.writeheader` now returns the return value
6374 - bpo-36239: Parsing .mo files now ignores comments starting and ending with
6375 #-#-#-#-#.
6377 - bpo-26707: Enable plistlib to read and write binary plist files that were
6381 - bpo-31904: Add posix module support for VxWorks.
6383 - bpo-35125: Asyncio: Remove inner callback on outer cancellation in shield
6385 - bpo-35721: Fix :meth:`asyncio.SelectorEventLoop.subprocess_exec()` leaks
6389 - bpo-31855: :func:`unittest.mock.mock_open` results now respects the
6392 - bpo-35431: Implement :func:`math.comb` that returns binomial coefficient,
6396 - bpo-26660: Fixed permission errors in
6398 ``TemporaryDirectory.cleanup()`` failed when non-writeable or
6399 non-searchable files or directories were created inside a temporary
6402 - bpo-34271: Add debugging helpers to ssl module. It's now possible to dump
6406 - bpo-26467: Added AsyncMock to support using unittest to mock asyncio
6409 - bpo-33569: dataclasses.InitVar: Exposes the type used to create the init
6412 - bpo-34424: Fix serialization of messages containing encoded strings when
6413 the policy.linesep is set to a multi-character string. Patch by Jens
6416 - bpo-34303: Performance of :func:`functools.reduce` is slightly improved.
6419 - bpo-33361: Fix a bug in :class:`codecs.StreamRecoder` where seeking might
6423 - bpo-22454: The :mod:`shlex` module now exposes :func:`shlex.join`, the
6426 - bpo-31922: :meth:`asyncio.AbstractEventLoop.create_datagram_endpoint`: Do
6427 not connect UDP socket when broadcast is allowed. This allows to receive
6430 - bpo-24882: Change ThreadPoolExecutor to use existing idle threads before
6433 - bpo-31961: Added support for bytes and path-like objects in
6435 :term:`path-like object` if *shell* is ``False`` and a sequence containing
6436 bytes and path-like objects. The *executable* parameter now accepts a
6437 bytes and :term:`path-like object`. The *cwd* parameter now accepts a
6440 - bpo-33123: :class:`pathlib.Path.unlink` now accepts a *missing_ok*
6444 - bpo-32941: Allow :class:`mmap.mmap` objects to access the madvise() system
6447 - bpo-22102: Added support for ZIP files with disks set to 0. Such files are
6451 - bpo-32515: trace.py can now run modules via python3 -m trace -t --module
6454 - bpo-32299: Changed :func:`unittest.mock.patch.dict` to return the patched
6457 - bpo-27141: Added a ``__copy__()`` to ``collections.UserList`` and
6461 - bpo-31829: ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) are now
6465 - bpo-23395: ``_thread.interrupt_main()`` now avoids setting the Python
6466 error status if the ``SIGINT`` signal is ignored or not handled by Python.
6469 -------------
6471 - bpo-36896: Clarify that some types have unstable constructor signature
6474 - bpo-36686: Improve documentation of the stdin, stdout, and stderr
6476 values are supported. Also mention that decoding as text is not supported.
6481 - bpo-36984: Improve version added references in ``typing`` module - by
6484 - bpo-36868: What's new now mentions SSLContext.hostname_checks_common_name
6487 - bpo-35924: Add a note to the ``curses.addstr()`` documentation to warn
6490 - bpo-36783: Added C API Documentation for Time_FromTimeAndFold and
6494 - bpo-36797: More of the legacy distutils documentation has been either
6498 - bpo-22865: Add detail to the documentation on the `pty.spawn` function.
6500 - bpo-35397: Remove deprecation and document urllib.parse.unwrap(). Patch
6503 - bpo-32995: Added the context variable in glossary.
6505 - bpo-33519: Clarify that `copy()` is not part of the `MutableSequence` ABC.
6507 - bpo-33482: Make `codecs.StreamRecoder.writelines` take a list of bytes.
6509 - bpo-25735: Added documentation for func factorial to indicate that returns
6512 - bpo-20285: Expand object.__doc__ (docstring) to make it clearer. Modify
6517 -----
6519 - bpo-37069: Modify test_coroutines, test_cprofile, test_generators,
6524 - bpo-37098: Fix test_memfd_create on older Linux Kernels.
6526 - bpo-37081: Test with OpenSSL 1.1.1c
6528 - bpo-36829: Add :func:`test.support.catch_unraisable_exception`: context
6531 - bpo-36915: The main regrtest process now always removes all temporary
6535 - bpo-36719: "python3 -m test -jN ..." now continues the execution of next
6537 test suite stopped immediately. Use --failfast to stop at the first error.
6539 - bpo-36816: Update Lib/test/selfsigned_pythontestdotnet.pem to match
6540 self-signed.pythontest.net's new TLS certificate.
6542 - bpo-35925: Skip httplib and nntplib networking tests when they would
6546 - bpo-36782: Add tests for several C API functions in the :mod:`datetime`
6549 - bpo-36342: Fix test_multiprocessing in test_venv if platform lacks
6553 -----
6555 - bpo-36721: To embed Python into an application, a new ``--embed`` option
6556 must be passed to ``python3-config --libs --embed`` to get ``-lpython3.8``
6558 ``python3-config --libs --embed`` first and fallback to ``python3-config
6559 --libs`` (without ``--embed``) if the previous command fails.
6561 Add a pkg-config ``python-3.8-embed`` module to embed Python into an
6562 application: ``pkg-config python-3.8-embed --libs`` includes
6563 ``-lpython3.8``. To support both 3.8 and older, try ``pkg-config
6564 python-X.Y-embed --libs`` first and fallback to ``pkg-config python-X.Y
6565 --libs`` (without ``--embed``) if the previous command fails (replace
6568 On the other hand, ``pkg-config python3.8 --libs`` no longer contains
6569 ``-lpython3.8``. C extensions must not be linked to libpython (except on
6570 Android, case handled by the script); this change is backward incompatible
6573 - bpo-36786: "make install" now runs compileall in parallel.
6576 -------
6578 - bpo-36965: include of STATUS_CONTROL_C_EXIT without depending on MSC
6581 - bpo-35926: Update to OpenSSL 1.1.1b for Windows.
6583 - bpo-29883: Add Windows support for UDP transports for the Proactor Event
6586 - bpo-33407: The :c:macro:`Py_DEPRECATED()` macro has been implemented for
6590 -----
6592 - bpo-36231: Support building Python on macOS without /usr/include
6597 ----
6599 - bpo-35610: Replace now redundant .context_use_ps1 with .prompt_last_line.
6600 This finishes change started in bpo-31858.
6602 - bpo-37038: Make idlelib.run runnable; add test clause.
6604 - bpo-36958: Print any argument other than None or int passed to SystemExit
6607 - bpo-36807: When saving a file, call os.fsync() so bits are flushed to e.g.
6610 - bpo-32411: In browser.py, remove extraneous sorting by line number since
6614 -----------
6616 - bpo-37053: Handle strings like u"bar" correctly in
6617 Tools/parser/unparse.py. Patch by Chih-Hsuan Yen.
6620 -----
6622 - bpo-36763: Implement the :pep:`587` "Python Initialization Configuration".
6624 - bpo-36379: Fix crashes when attempting to use the *modulo* parameter when
6625 ``__ipow__`` is implemented in C.
6627 - bpo-37107: Update :c:func:`PyObject_CallMethodObjArgs` and
6632 - bpo-36974: Implement :pep:`590`: Vectorcall: a fast calling protocol for
6633 CPython. This is a new protocol to optimize calls of custom callable
6636 - bpo-36763: ``Py_Main()`` now returns the exitcode rather than calling
6638 exception type is ``SystemExit``.
6640 - bpo-36922: Add new type flag ``Py_TPFLAGS_METHOD_DESCRIPTOR`` for objects
6645 - bpo-36728: The :c:func:`PyEval_ReInitThreads` function has been removed
6653 *Release date: 2019-05-06*
6656 --------
6658 - bpo-36742: Fixes mishandling of pre-normalization characters in
6661 - bpo-30458: Address CVE-2019-9740 by disallowing URL paths with embedded
6666 - bpo-35755: :func:`shutil.which` now uses ``os.confstr("CS_PATH")`` if
6667 available and if the :envvar:`PATH` environment variable is not set.
6671 variable is not set.
6674 -----------------
6676 - bpo-36722: In debug build, import now also looks for C extensions compiled
6679 - bpo-32849: Fix Python Initialization code on FreeBSD to detect properly
6680 when stdin file descriptor (fd 0) is invalid.
6682 - bpo-36623: Remove parser headers and related function declarations that
6685 - bpo-20180: ``dict.pop()`` is now up to 33% faster thanks to Argument
6688 - bpo-36611: Debug memory allocators: disable serialno field by default from
6691 has been allocated when a fatal memory error is logged to decide where to
6695 - bpo-36588: On AIX, :attr:`sys.platform` doesn't contain the major version
6697 Since older Python versions include the version number, it is recommended
6700 - bpo-36549: Change str.capitalize to use titlecase for the first character
6703 - bpo-36540: Implement :pep:`570` (Python positional-only parameters). Patch
6706 - bpo-36475: :c:func:`PyEval_AcquireLock` and :c:func:`PyEval_AcquireThread`
6707 now terminate the current thread if called while the interpreter is
6711 - bpo-36504: Fix signed integer overflow in _ctypes.c's
6714 - bpo-20844: Fix running script with encoding cookie and LF line ending may
6717 - bpo-24214: Fixed support of the surrogatepass error handler in the UTF-8
6720 - bpo-36452: Changing ``dict`` keys during iteration of the dict itself,
6726 - bpo-36459: Fix a possible double ``PyMem_FREE()`` due to tokenizer.c's
6729 - bpo-36433: Fixed TypeError message in classmethoddescr_call.
6731 - bpo-36430: Fix a possible reference leak in :func:`itertools.count`.
6733 - bpo-36440: Include node names in ``ParserError`` messages, instead of
6736 - bpo-36143: Regenerate :mod:`keyword` from the Grammar and Tokens file
6739 - bpo-18372: Add missing :c:func:`PyObject_GC_Track` calls in the
6743 -------
6745 - bpo-35952: Fix pythoninfo when the compiler is missing.
6747 - bpo-28238: The ``.find*()`` methods of xml.etree.ElementTree can now
6751 - bpo-26978: `pathlib.path.link_to()` is now implemented. It creates a hard
6754 - bpo-1613500: :class:`fileinput.FileInput` now uses the input file mode to
6756 ``'w'``) when ``inplace=True`` is passed to its constructor.
6758 - bpo-36734: Fix compilation of ``faulthandler.c`` on HP-UX. Initialize
6761 - bpo-13611: The xml.etree.ElementTree packages gained support for C14N 2.0
6764 - bpo-36669: Add missing matrix multiplication operator support to
6767 - bpo-36676: The XMLParser() in xml.etree.ElementTree provides namespace
6771 - bpo-36673: The TreeBuilder and XMLPullParser in xml.etree.ElementTree
6775 - bpo-36650: The C version of functools.lru_cache() was treating calls with
6780 - bpo-28552: Fix :mod:`distutils.sysconfig` if :data:`sys.executable` is
6783 :data:`sys.executable` if it is ``None`` or an empty string.
6785 - bpo-35755: :func:`shutil.which` and
6788 variable is not set. Moreover, don't use ``os.confstr("CS_PATH")`` nor
6789 :data:`os.defpath` if the ``PATH`` environment variable is set to an empty
6792 - bpo-25430: improve performance of ``IPNetwork.__contains__()``
6794 - bpo-30485: Path expressions in xml.etree.ElementTree can now avoid
6798 - bpo-36613: Fix :mod:`asyncio` wait() not removing callback if exception
6800 - bpo-36598: Fix ``isinstance`` check for Mock objects with spec when the
6801 code is executed under tracing. Patch by Karthikeyan Singaravelan.
6803 - bpo-18748: In development mode (:option:`-X` ``dev``) and in debug build,
6807 - bpo-36575: The ``_lsprof`` module now uses internal timer same to
6810 longer impacted by system clock updates since ``perf_counter()`` is
6813 - bpo-33461: ``json.loads`` now emits ``DeprecationWarning`` when
6814 ``encoding`` option is specified. Patch by Matthias Bussonnier.
6816 - bpo-36559: The random module now prefers the lean internal _sha512 module
6819 - bpo-17561: Set backlog=None as the default for socket.create_server.
6821 - bpo-34373: Fix :func:`time.mktime` error handling on AIX for year before
6824 - bpo-36232: Improve error message when trying to open existing DBM database
6827 - bpo-36546: Add statistics.quantiles()
6829 - bpo-36050: Optimized ``http.client.HTTPResponse.read()`` for large
6832 - bpo-36522: If *debuglevel* is set to >0 in :mod:`http.client`, print all
6836 - bpo-36492: Deprecated passing required arguments like *func* as keyword
6842 - bpo-27181: Add statistics.geometric_mean().
6844 - bpo-30427: ``os.path.normcase()`` relies on ``os.fspath()`` to check the
6849 - bpo-36385: Stop rejecting IPv4 octets for being ambiguously octal. Leading
6854 - bpo-36434: Errors during writing to a ZIP file no longer prevent to
6857 - bpo-36407: Fixed wrong indentation writing for CDATA section in
6860 - bpo-36326: inspect.getdoc() can now find docstrings for member objects
6861 when __slots__ is a dictionary.
6863 - bpo-36366: Calling ``stop()`` on an unstarted or stopped
6868 - bpo-36348: The :meth:`imap.IMAP4.logout` method no longer ignores silently
6871 - bpo-31904: Add time module support and fix test_time faiures for VxWorks.
6873 - bpo-36227: Added support for keyword arguments `default_namespace` and
6877 - bpo-36004: Added new alternate constructors
6883 - bpo-35936: :mod:`modulefinder` no longer depends on the deprecated
6888 - bpo-35376: :mod:`modulefinder` correctly handles modules that have the
6891 - bpo-17396: :mod:`modulefinder` no longer crashes when encountering syntax
6894 - bpo-35934: Added :meth:`~socket.create_server()` and
6897 accepting both IPv4 and IPv6 connections on the same socket. (Contributed
6900 - bpo-23078: Add support for :func:`classmethod` and :func:`staticmethod` to
6903 - bpo-35416: Fix potential resource warnings in distutils. Patch by Mickaël
6906 - bpo-25451: Add transparency methods to :class:`tkinter.PhotoImage`. Patch
6909 - bpo-35082: Don't return deleted attributes when calling dir on a
6912 - bpo-34547: :class:`wsgiref.handlers.BaseHandler` now handles abrupt client
6915 - bpo-31658: :func:`xml.sax.parse` now supports :term:`path-like <path-like
6918 - bpo-34139: Remove stale unix datagram socket before binding
6920 - bpo-33530: Implemented Happy Eyeballs in `asyncio.create_connection()`.
6924 - bpo-33291: Do not raise AttributeError when calling the inspect functions
6928 - bpo-31310: Fix the multiprocessing.semaphore_tracker so it is reused by
6931 - bpo-31292: Fix ``setup.py check --restructuredtext`` for files containing
6935 -------------
6937 - bpo-36625: Remove obsolete comments from docstrings in fractions.Fraction
6939 - bpo-30840: Document relative imports
6941 - bpo-36523: Add docstring for io.IOBase.writelines().
6943 - bpo-36425: New documentation translation: `Simplified Chinese
6944 <https://docs.python.org/zh-cn/>`_.
6946 - bpo-36345: Avoid the duplication of code from ``Tools/scripts/serve.py``
6948 wsgiref-based web server in the documentation of :mod:`wsgiref`.
6951 - bpo-36345: Using the code of the ``Tools/scripts/serve.py`` script as an
6955 - bpo-36157: Added Documention for PyInterpreterState_Main().
6957 - bpo-33043: Updates the docs.python.org page with the addition of a
6962 - bpo-35581: @typing.type_check_only now allows type stubs to mark functions
6965 - bpo-33832: Add glossary entry for 'magic method'.
6967 - bpo-32913: Added re.Match.groupdict example to regex HOWTO.
6970 -----
6972 - bpo-36719: regrtest now always detects uncollectable objects. Previously,
6973 the check was only enabled by ``--findleaks``. The check now also works
6974 with ``-jN/--multiprocess N``. ``--findleaks`` becomes a deprecated alias
6975 to ``--fail-env-changed``.
6977 - bpo-36725: When using multiprocessing mode (-jN), regrtest now better
6981 - bpo-36454: Change test_time.test_monotonic() to test only the lower bound
6986 - bpo-32424: Improve test coverage for xml.etree.ElementTree. Patch by
6989 - bpo-32424: Fix typo in test_cyclic_gc() test for xml.etree.ElementTree.
6992 - bpo-36635: Add a new :mod:`_testinternalcapi` module to test the internal
6995 - bpo-36629: Fix ``test_imap4_host_default_value()`` of ``test_imaplib``:
6998 - bpo-36611: Fix ``test_sys.test_getallocatedblocks()`` when
6999 :mod:`tracemalloc` is enabled.
7001 - bpo-36560: Fix reference leak hunting in regrtest: compute also deltas (of
7003 warmup, to ensure that everything is initialized before starting to hunt
7006 - bpo-36565: Fix reference hunting (``python3 -m test -R 3:3``) when Python
7007 has no built-in abc module.
7009 - bpo-31904: Port test_resource to VxWorks: skip tests cases setting
7012 - bpo-31904: Fix test_tabnanny on VxWorks: adjust ENOENT error message.
7014 - bpo-36436: Fix ``_testcapi.pymem_buffer_overflow()``: handle memory
7017 - bpo-31904: Fix test_utf8_mode on VxWorks: Python always use UTF-8 on
7020 - bpo-36341: Fix tests that may fail with PermissionError upon calling
7024 -----
7026 - bpo-36747: Remove the stale scriptsinstall Makefile target.
7028 - bpo-21536: On Unix, C extensions are no longer linked to libpython except
7031 It is now possible for a statically linked Python to load a C extension
7034 When Python is embedded, ``libpython`` must not be loaded with
7040 distutils, python-config and python-config.py have been modified.
7042 - bpo-36707: ``./configure --with-pymalloc`` no longer adds the ``m`` flag
7046 - bpo-36635: Change ``PyAPI_FUNC(type)``, ``PyAPI_DATA(type)`` and
7047 ``PyMODINIT_FUNC`` macros of ``pyport.h`` when ``Py_BUILD_CORE_MODULE`` is
7052 - bpo-31904: Don't build the ``_crypt`` extension on VxWorks.
7054 - bpo-36618: Add ``-fmax-type-align=8`` to CFLAGS when clang compiler is
7056 x86-64, clang expects alignment on 16 bytes by default and so uses MOVAPS
7058 Python is limited to alignment on 8 bytes to use MOVUPS instruction
7059 instead: slower but don't trigger a SIGSEGV if the memory is not aligned
7063 - bpo-36605: ``make tags`` and ``make TAGS`` now also parse
7066 - bpo-36465: Release builds and debug builds are now ABI compatible:
7071 the new ``./configure --with-trace-refs`` build option.
7073 - bpo-36577: setup.py now correctly reports missing OpenSSL headers and
7076 - bpo-36544: Fix regression introduced in bpo-36146 refactoring setup.py
7078 - bpo-36508: ``python-config --ldflags`` no longer includes flags of the
7082 - bpo-36503: Remove references to "aix3" and "aix4". Patch by M. Felt.
7085 -------
7087 - bpo-35920: Added platform.win32_edition() and platform.win32_is_iot().
7088 Added support for cross-compiling packages for Windows ARM32. Skip tests
7091 - bpo-36649: Remove trailing spaces for registry keys when installed via the
7094 - bpo-34144: Fixed activate.bat to correctly update codepage when chcp.com
7097 - bpo-36509: Added preset-iot layout for Windows IoT ARM containers. This
7099 contain files to support on-target builds since Windows ARM32 builds must
7100 be cross-compiled when using MSVC.
7102 - bpo-35941: enum_certificates function of the ssl module now returns
7108 ssl.enum_crls() function is changed in the same way to return all
7112 - bpo-36441: Fixes creating a venv when debug binaries are installed.
7114 - bpo-36085: Enable better DLL resolution on Windows by using safe DLL
7117 - bpo-36010: Add the venv standard library module to the nuget distribution
7120 - bpo-29515: Add the following socket module constants on Windows:
7128 - bpo-35947: Added current version of libffi to cpython-source-deps. Change
7131 - bpo-34060: Report system load when running test suite on Windows. Patch by
7134 - bpo-31512: With the Windows 10 Creators Update, non-elevated users can now
7138 -----
7140 - bpo-34602: Avoid failures setting macOS stack resource limit with
7141 resource.setrlimit. This reverts an earlier fix for bpo-18075 which forced
7142 a non-default stack size when building the interpreter executable on
7146 ----
7148 - bpo-36429: Fix starting IDLE with pyshell. Add idlelib.pyshell alias at
7153 -----------
7155 - bpo-14546: Fix the argument handling in Tools/scripts/lll.py.
7158 -----
7160 - bpo-36763: Fix memory leak in :c:func:`Py_SetStandardStreamEncoding`:
7161 release memory if the function is called twice.
7163 - bpo-36641: :c:macro:`PyDoc_VAR(name)` and
7167 - bpo-36389: Change the value of ``CLEANBYTE``, ``DEADDYTE`` and
7174 - bpo-36443: Since Python 3.7.0, calling :c:func:`Py_DecodeLocale` before
7175 :c:func:`Py_Initialize` produces mojibake if the ``LC_CTYPE`` locale is
7176 coerced and/or if the UTF-8 Mode is enabled by the user configuration. The
7177 LC_CTYPE coercion and UTF-8 Mode are now disabled by default to fix the
7178 mojibake issue. They must now be enabled explicitly (opt-in) using the new
7181 - bpo-36025: Fixed an accidental change to the datetime C API where the
7185 backwards-incompatible change was only present in alpha releases of Python
7188 - bpo-35810: Modify ``PyObject_Init`` to correctly increase the refcount of
7189 heap- allocated Type objects. Also fix the refcounts of the heap-allocated
7197 *Release date: 2019-03-25*
7200 --------
7202 - bpo-36216: Changes urlsplit() to raise ValueError when the URL contains
7203 characters that decompose under IDNA encoding (NFKC-normalization) into
7204 characters that affect how the URL is parsed.
7206 - bpo-35121: Don't send cookies of domain A without Domain attribute to
7207 domain B when domain A is a suffix match of domain B while using a
7212 -----------------
7214 - bpo-36421: Fix a possible double decref in _ctypes.c's
7217 - bpo-36412: Fix a possible crash when creating a new dictionary.
7219 - bpo-36398: Fix a possible crash in ``structseq_repr()``.
7221 - bpo-36256: Fix bug in parsermodule when parsing a state in a DFA that has
7224 - bpo-36365: repr(structseq) is no longer limited to 512 bytes.
7226 - bpo-36374: Fix a possible null pointer dereference in
7229 - bpo-36236: At Python initialization, the current directory is no longer
7232 - bpo-36352: Python initialization now fails with an error, rather than
7233 silently truncating paths, if a path is too long.
7235 - bpo-36301: Python initialization now fails if decoding ``pybuilddir.txt``
7238 - bpo-36333: Fix leak in _PyRuntimeState_Fini. Contributed by Stéphane
7241 - bpo-36332: The builtin :func:`compile` can now handle AST objects that
7244 - bpo-36282: Improved error message for too much positional arguments in
7247 - bpo-30040: New empty dict uses fewer memory for now. It used more memory
7249 deletion is about 2x faster. Patch by Inada Naoki.
7251 - bpo-36262: Fix an unlikely memory leak on conversion from string to float
7255 - bpo-36252: Update Unicode databases to version 12.0.0.
7257 - bpo-36218: Fix a segfault occurring when sorting a list of heterogeneous
7260 - bpo-36188: Cleaned up left-over vestiges of Python 2 unbound method
7263 - bpo-36124: Add a new interpreter-specific dict and expose it in the C-API
7266 their own internal per-interpreter state.
7268 - bpo-35975: Add a ``feature_version`` flag to ``ast.parse()`` (documented)
7270 older versions of the grammar. In particular, if ``feature_version`` is 5
7276 - bpo-31904: Use UTF-8 as the system encoding on VxWorks.
7278 - bpo-36048: The :meth:`~object.__index__` special method will be used
7283 - bpo-35808: Retire pgen and use a modified version of pgen2 to generate the
7287 -------
7289 - bpo-36401: The class documentation created by pydoc now has a separate
7292 - bpo-36320: The typing.NamedTuple() class has deprecated the _field_types
7297 - bpo-34745: Fix :mod:`asyncio` ssl memory issues caused by circular
7300 - bpo-36324: Add method to statistics.NormalDist for computing the inverse
7303 - bpo-36321: collections.namedtuple() misspelled the name of an attribute.
7309 - bpo-36297: "unicode_internal" codec is removed. It was deprecated since
7312 - bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be
7315 - bpo-36268: Switch the default format used for writing tars with
7316 mod:`tarfile` to the modern POSIX.1-2001 pax standard, from the
7317 vendor-specific GNU. Contributed by C.A.M. Gerlach.
7319 - bpo-36285: Fix integer overflows in the array module. Patch by Stephan
7322 - bpo-31904: Add _signal module support for VxWorks.
7324 - bpo-36272: :mod:`logging` does not silently ignore RecursionError anymore.
7327 - bpo-36280: Add a kind field to ast.Constant. It is 'u' if the literal has
7330 - bpo-35931: The :mod:`pdb` ``debug`` command now gracefully handles all
7333 - bpo-36251: Fix format strings used for stderrprinter and re.Match reprs.
7336 - bpo-36235: Fix ``CFLAGS`` in ``customize_compiler()`` of
7337 ``distutils.sysconfig``: when the ``CFLAGS`` environment variable is
7341 - bpo-35807: Update ensurepip to install pip 19.0.3 and setuptools 40.8.0.
7343 - bpo-36139: Release GIL when closing :class:`~mmap.mmap` objects.
7345 - bpo-36179: Fix two unlikely reference leaks in _hashopenssl. The leaks
7346 only occur in out-of-memory cases.
7348 - bpo-36169: Add overlap() method to statistics.NormalDist. Computes the
7351 - bpo-36103: Default buffer size used by ``shutil.copyfileobj()`` is changed
7352 from 16 KiB to 64 KiB on non-Windows platform to reduce system call
7355 - bpo-36130: Fix ``pdb`` with ``skip=...`` when stepping into a frame
7358 - bpo-35652: shutil.copytree(copy_function=...) erroneously pass DirEntry
7361 - bpo-35178: Ensure custom :func:`warnings.formatwarning` function can
7364 - bpo-36106: Resolve potential name clash with libm's sinpi(). Patch by
7367 - bpo-36091: Clean up reference to async generator in Lib/types. Patch by
7370 - bpo-36043: :class:`FileCookieJar` supports :term:`path-like object`.
7373 - bpo-35899: Enum has been fixed to correctly handle empty strings and
7374 strings with non-Latin characters (ie. 'α', 'א') without crashing.
7377 - bpo-21269: Add ``args`` and ``kwargs`` properties to mock call objects.
7380 - bpo-30670: `pprint.pp` has been added to pretty-print objects with
7385 - bpo-35843: Implement ``__getitem__`` for ``_NamespacePath``. Patch by
7388 - bpo-35802: Clean up code which checked presence of ``os.stat`` /
7392 - bpo-35715: Librates the return value of a ProcessPoolExecutor
7395 - bpo-35493: Use :func:`multiprocessing.connection.wait` instead of polling
7399 - bpo-35661: Store the venv prompt in pyvenv.cfg.
7401 - bpo-35121: Don't set cookie for a request when the request path is a
7405 - bpo-21478: Calls to a child function created with
7409 - bpo-35198: Fix C++ extension compilation on AIX
7412 -------------
7414 - bpo-36329: Declare the path of the Python binary for the usage of
7415 ``Tools/scripts/serve.py`` when executing ``make -C Doc/ serve``.
7418 - bpo-36138: Improve documentation about converting datetime.timedelta to
7421 - bpo-21314: A new entry was added to the Core Language Section of the
7426 -----
7428 - bpo-36234: test_posix.PosixUidGidTests: add tests for invalid uid/gid type
7431 - bpo-29571: Fix ``test_re.test_locale_flag()``: use
7436 - bpo-36123: Fix race condition in test_socket.
7439 -----
7441 - bpo-36356: Fix leaks that led to build failure when configured with
7444 - bpo-36146: Add ``TEST_EXTENSIONS`` constant to ``setup.py`` to allow to
7447 - bpo-36146: Fix setup.py on macOS: only add ``/usr/include/ffi`` to include
7450 - bpo-31904: Enable build system to cross-build for VxWorks RTOS.
7453 -------
7455 - bpo-36312: Fixed decoders for the following code pages: 50220, 50221,
7458 - bpo-36264: Don't honor POSIX ``HOME`` in ``os.path.expanduser`` on
7461 - bpo-24643: Fix name collisions due to ``#define timezone _timezone`` in
7465 ----
7467 - bpo-36405: Use dict unpacking in idlelib.
7469 - bpo-36396: Remove fgBg param of idlelib.config.GetHighlight(). This param
7472 - bpo-36176: Fix IDLE autocomplete & calltip popup colors. Prevent conflicts
7475 - bpo-23205: For the grep module, add tests for findfiles, refactor
7476 findfiles to be a module-level function, and refactor findfiles to use
7479 - bpo-23216: Add docstrings to IDLE search modules.
7481 - bpo-36152: Remove colorizer.ColorDelegator.close_when_done and the
7485 - bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Patch
7488 - bpo-36096: Refactor class variables to instance variables in colorizer.
7490 - bpo-30348: Increase test coverage of idlelib.autocomplete by 30%. Patch by
7494 -----------
7496 - bpo-35132: Fix py-list and py-bt commands of python-gdb.py on gdb7.
7498 - bpo-32217: Fix freeze script on Windows.
7501 -----
7503 - bpo-36381: Raise ``DeprecationWarning`` when '#' formats are used for
7506 - bpo-36142: The whole coreconfig.h header is now excluded from
7514 *Release date: 2019-02-25*
7517 -----------------
7519 - bpo-36052: Raise a :exc:`SyntaxError` when assigning a value to
7523 - bpo-36012: Doubled the speed of class variable writes. When a non-dunder
7526 - bpo-35942: The error message emitted when returning invalid types from
7530 - bpo-36016: ``gc.get_objects`` can now receive an optional parameter
7533 - bpo-1054041: When the main interpreter exits due to an uncaught
7539 - bpo-35992: Fix ``__class_getitem__()`` not being called on a class with a
7540 custom non-subscriptable metaclass.
7542 - bpo-35993: Fix a crash on fork when using subinterpreters. Contributed by
7545 - bpo-35991: Fix a potential double free in Modules/_randommodule.c.
7547 - bpo-35961: Fix a crash in slice_richcompare(): use strong references
7550 - bpo-35911: Enable the creation of cell objects by adding a
7554 - bpo-12822: Use monotonic clock for ``pthread_cond_timedwait`` when
7557 - bpo-15248: The compiler emits now syntax warnings in the case when a comma
7558 is likely missed before tuple or list.
7560 - bpo-35886: The implementation of PyInterpreterState has been moved into
7563 - bpo-31506: Clarify the errors reported when ``object.__new__`` and
7567 - bpo-35724: Signal-handling is now guaranteed to happen relative to the
7570 - bpo-33608: We added a new internal _Py_AddPendingCall() that operates
7577 - bpo-33989: Fix a possible crash in :meth:`list.sort` when sorting objects
7578 with ``ob_type->tp_richcompare == NULL``. Patch by Zackery Spytz.
7581 -------
7583 - bpo-35512: :func:`unittest.mock.patch.dict` used as a decorator with
7587 - bpo-36018: Add statistics.NormalDist, a tool for creating and manipulating
7592 - bpo-35904: Added statistics.fmean() as a faster, floating point variant of
7595 - bpo-35918: Removed broken ``has_key`` method from
7598 - bpo-18283: Add support for bytes to :func:`shutil.which`.
7600 - bpo-35960: Fix :func:`dataclasses.field` throwing away empty mapping
7603 - bpo-35500: Write expected and actual call parameters on separate lines in
7607 - bpo-35931: The :mod:`pdb` ``debug`` command now gracefully handles syntax
7610 - bpo-24209: In http.server script, rely on getaddrinfo to bind to preferred
7612 may bind to IPv6 or dual-stack, depending on the environment.
7614 - bpo-35321: Set ``__spec__.origin`` of ``_frozen_importlib`` to frozen so
7618 - bpo-35378: Fix a reference issue inside :class:`multiprocessing.Pool` that
7620 terminated explicitly. A new strong reference is added to the pool
7622 iterators so the pool does not get destroyed if a pool iterator is still
7625 - bpo-34294: re module, fix wrong capturing groups in rare cases.
7630 - bpo-35615: :mod:`weakref`: Fix a RuntimeError when copying a
7634 - bpo-35606: Implement :func:`math.prod` as analogous function to
7638 - bpo-32417: Performing arithmetic between :class:`datetime.datetime`
7645 - bpo-35153: Add *headers* optional keyword-only parameter to
7649 - bpo-34572: Fix C implementation of pickle.loads to use importlib's locking
7650 mechanisms, and thereby avoid using partially-loaded modules. Patch by Tim
7654 -------------
7656 - bpo-36083: Fix formatting of --check-hash-based-pycs options in the
7659 - bpo-36007: Bump minimum sphinx version to 1.8. Patch by Anthony Sottile.
7661 - bpo-22062: Update documentation and docstrings for pathlib. Original patch
7665 -----
7667 - bpo-27313: Avoid test_ttk_guionly ComboboxTest failure with macOS Cocoa
7670 - bpo-36019: Add test.support.TEST_HTTP_URL and replace references of
7674 - bpo-36037: Fix test_ssl for strict OpenSSL configuration like RHEL8 strict
7679 - bpo-35798: Added :func:`test.support.check_syntax_warning`.
7681 - bpo-35505: Make test_imap4_host_default_value independent on whether the
7682 local IMAP server is running.
7684 - bpo-35917: multiprocessing: provide unit tests for SyncManager and
7688 - bpo-35704: Skip ``test_shutil.test_unpack_archive_xztar`` to prevent a
7689 MemoryError on 32-bit AIX when MAXDATA setting is less than 0x20000000.
7693 - bpo-34720: Assert m_state != NULL to mimic GC traversal functions that do
7698 -------
7700 - bpo-35976: Added ARM build support to Windows build files in PCBuild.
7702 - bpo-35692: ``pathlib`` no longer raises when checking file and directory
7705 - bpo-35872: Uses the base Python executable when invoking venv in a virtual
7708 - bpo-35873: Prevents venv paths being inherited by child processes
7710 - bpo-35299: Fix sysconfig detection of the source directory and distutils
7714 ----
7716 - bpo-24310: IDLE -- Document settings dialog font tab sample.
7718 - bpo-35833: Revise IDLE doc for control codes sent to Shell. Add a code
7721 - bpo-35689: Add docstrings and unittests for colorizer.py.
7727 *Release date: 2019-02-03*
7730 --------
7732 - bpo-35746: [CVE-2019-5010] Fix a NULL pointer deref in ssl module. The
7735 Vulnerability (TALOS-2018-0758) reported by Colin Read and Nicolas Edet of
7738 - bpo-34812: The :option:`-I` command line option (run Python in isolated
7739 mode) is now also copied by the :mod:`multiprocessing` and
7741 :option:`-E` and :option:`-s` options (enabled by :option:`-I`) were
7744 - bpo-34791: The xml.sax and xml.dom.domreg no longer use environment
7746 sys.flags.ignore_environment is set by -E or -I arguments.
7748 - bpo-17239: The xml.sax and xml.dom.minidom parsers no longer processes
7752 - bpo-34623: CVE-2018-14647: The C accelerated _elementtree module now
7756 - bpo-34405: Updated to OpenSSL 1.1.0i for Windows builds.
7758 - bpo-33871: Fixed sending the part of the file in :func:`os.sendfile` on
7762 - bpo-32533: Fixed thread-safety of error handling in _ssl.
7764 - bpo-33136: Harden ssl module against LibreSSL CVE-2018-8970.
7765 X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new
7768 - bpo-33001: Minimal fix to prevent buffer overrun in os.symlink on Windows
7770 - bpo-32981: Regexes in difflib and poplib were vulnerable to catastrophic
7772 have been refactored. This resolves CVE-2018-1060 and CVE-2018-1061. Patch
7775 - bpo-28414: The ssl module now allows users to perform their own IDN
7779 -----------------
7781 - bpo-35877: Make parenthesis optional for named expressions in while
7784 - bpo-35814: Allow same right hand side expressions in annotated assignments
7786 parentheses on the right) is now allowed.
7788 - bpo-35766: Add the option to parse PEP 484 type comments in the ast
7789 module. (Off by default.) This is merging the key functionality of the
7793 - bpo-35713: Reorganize Python initialization to get working exceptions and
7796 - bpo-33416: Add end line and end column position information to the Python
7797 AST nodes. This is a C-level backwards incompatible change.
7799 - bpo-35720: Fixed a minor memory leak in pymain_parse_cmdline_impl function
7802 - bpo-35634: ``func(**kwargs)`` will now raise an error when ``kwargs`` is a
7807 - bpo-35623: Fix a crash when sorting very long lists. Patch by Stephan
7810 - bpo-35214: clang Memory Sanitizer build instrumentation was added to work
7814 - bpo-35560: Fix an assertion error in :func:`format` in debug build for
7816 Release build is not impacted. Patch by Karthikeyan Singaravelan.
7818 - bpo-35552: Format characters ``%s`` and ``%V`` in
7820 no longer read memory past the limit if *precision* is specified.
7822 - bpo-35504: Fix segfaults and :exc:`SystemError`\ s when deleting certain
7825 - bpo-35504: Fixed a SystemError when delete the characters_written
7828 - bpo-35494: Improved syntax error messages for unbalanced parentheses in
7829 f-string.
7831 - bpo-35444: Fixed error handling in pickling methods when fail to look up
7834 - bpo-35436: Fix various issues with memory allocation error handling.
7837 - bpo-35423: Separate the signal handling trigger in the eval loop from the
7838 "pending calls" machinery. There is no semantic change and the difference
7839 in performance is insignificant.
7841 - bpo-35357: Internal attributes' names of unittest.mock._Call and
7846 - bpo-35372: Fixed the code page decoder for input longer than 2 GiB
7849 - bpo-35336: Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the
7850 C locale if the LC_CTYPE locale is "C".
7852 - bpo-31241: The *lineno* and *col_offset* attributes of AST nodes for list
7857 - bpo-33954: For :meth:`str.format`, :meth:`float.__format__` and
7858 :meth:`complex.__format__` methods for non-ASCII decimal point when using
7861 - bpo-35269: Fix a possible segfault involving a newly-created coroutine.
7864 - bpo-35224: Implement :pep:`572` (assignment expressions). Patch by Emily
7867 - bpo-32492: Speed up :class:`namedtuple` attribute access by 1.6x using a C
7868 fast-path for the name descriptors. Patch by Pablo Galindo.
7870 - bpo-35214: Fixed an out of bounds memory access when parsing a truncated
7874 - bpo-35214: The interpreter and extension modules have had annotations
7876 configure flag --with-memory-sanitizer has been added to make test builds
7879 - bpo-35193: Fix an off by one error in the bytecode peephole optimizer
7884 - bpo-35169: Improved error messages for forbidden assignments.
7886 - bpo-34022: Fix handling of hash-based bytecode files in :mod:`zipimport`.
7889 - bpo-28401: Debug builds will no longer to attempt to import extension
7893 - bpo-29341: Clarify in the docstrings of :mod:`os` methods that path-like
7896 - bpo-35050: :mod:`socket`: Fix off-by-one bug in length check for
7899 - bpo-29743: Raise :exc:`ValueError` instead of :exc:`OverflowError` in case
7901 raise :exc:`TypeError` instead of :exc:`AttributeError` for non-integer
7904 - bpo-16806: Fix ``lineno`` and ``col_offset`` for multi-line string tokens.
7906 - bpo-35029: :exc:`SyntaxWarning` raised as an exception at code generation
7910 - bpo-34983: Expose :meth:`symtable.Symbol.is_nonlocal` in the symtable
7913 - bpo-34974: :class:`bytes` and :class:`bytearray` constructors no longer
7917 - bpo-34939: Allow annotated names in module namespace that are declared
7920 - bpo-34973: Fixed crash in :func:`bytes` when the :class:`list` argument is
7921 mutated while it is iterated.
7923 - bpo-34876: The *lineno* and *col_offset* attributes of the AST for
7927 tracing. This is the only case when the position of child AST nodes can
7930 - bpo-34879: Fix a possible null pointer dereference in bytesobject.c.
7933 - bpo-34784: Fix the implementation of PyStructSequence_NewType in order to
7936 - bpo-32912: A :exc:`SyntaxWarning` is now emitted instead of a
7940 - bpo-34854: Fixed a crash in compiling string annotations containing a
7941 lambda with a keyword-only argument that doesn't have a default value.
7943 - bpo-34850: The compiler now produces a :exc:`SyntaxWarning` when identity
7944 checks (``is`` and ``is not``) are used with certain types of literals
7946 are not guaranteed by the language spec. The warning advises users to use
7949 - bpo-34824: Fix a possible null pointer dereference in Modules/_ssl.c.
7952 - bpo-30156: The C function ``property_descr_get()`` uses a "cached" tuple
7957 - bpo-34762: Fix contextvars C API to use PyObject* pointer types.
7959 - bpo-34751: The hash function for tuples is now based on xxHash which gives
7961 on 64-bit systems it improves tuple hashes in general. Patch by Jeroen
7964 - bpo-34735: Fix a memory leak in Modules/timemodule.c. Patch by Zackery
7967 - bpo-34683: Fixed a bug where some SyntaxError error pointed to locations
7968 that were off-by-one.
7970 - bpo-34651: Only allow the main interpreter to fork. The avoids the
7971 possibility of affecting the main interpreter, which is critical to
7974 - bpo-34653: Remove unused function PyParser_SimpleParseStringFilename.
7976 - bpo-32236: Warn that line buffering is not supported if :func:`open` is
7979 - bpo-34641: Further restrict the syntax of the left-hand side of keyword
7980 arguments in function calls. In particular, ``f((keyword)=arg)`` is now
7983 - bpo-34637: Make the *start* argument to *sum()* visible as a keyword
7986 - bpo-1621: Do not assume signed integer overflow behavior (C undefined
7989 - bpo-34588: Fix an off-by-one in the recursive call pruning feature of
7992 - bpo-34485: On Windows, the LC_CTYPE is now set to the user preferred
7996 - bpo-34485: Standard streams like sys.stdout now use the "surrogateescape"
7998 is not coerced and the UTF-8 Mode is disabled).
8000 - bpo-34485: Fix the error handler of standard streams like sys.stdout:
8001 PYTHONIOENCODING=":" is now ignored instead of setting the error handler
8004 - bpo-34485: Python now gets the locale encoding with C code to initialize
8006 is now initialized to the Python codec name to get a normalized encoding
8007 name and to ensure that the codec is loaded. The change avoids importing
8010 - bpo-34527: On FreeBSD, Py_DecodeLocale() and Py_EncodeLocale() now also
8011 forces the ASCII encoding if the LC_CTYPE locale is "POSIX", not only if
8012 the LC_CTYPE locale is "C".
8014 - bpo-34527: The UTF-8 Mode is now also enabled by the "POSIX" locale, not
8017 - bpo-34403: On HP-UX with C or POSIX locale, sys.getfilesystemencoding()
8018 now returns "ascii" instead of "roman8" (when the UTF-8 Mode is disabled
8019 and the C locale is not coerced).
8021 - bpo-34523: The Python filesystem encoding is now read earlier during the
8024 - bpo-12458: Tracebacks show now correct line number for subexpressions in
8029 - bpo-34408: Prevent a null pointer dereference and resource leakage in
8032 - bpo-34400: Fix undefined behavior in parsetok.c. Patch by Zackery Spytz.
8034 - bpo-33073: Added as_integer_ratio to ints to make them more interoperable
8037 - bpo-34377: Update valgrind suppression list to use
8041 - bpo-34353: Added the "socket" option in the `stat.filemode()` Python
8044 - bpo-34320: Fix ``dict(od)`` didn't copy iteration order of OrderedDict.
8046 - bpo-34113: Fixed crash on debug builds when opcode stack was adjusted with
8049 - bpo-34100: Compiler now merges constants in tuples and frozensets
8052 - bpo-34151: Performance of list concatenation, repetition and slicing
8053 operations is slightly improved. Patch by Sergey Fedoseev.
8055 - bpo-34170: -X dev: it is now possible to override the memory allocator
8056 using PYTHONMALLOC even if the developer mode is enabled.
8058 - bpo-33237: Improved :exc:`AttributeError` message for partially
8061 - bpo-34149: Fix min and max functions to get default behavior when key is
8064 - bpo-34125: Profiling of unbound built-in methods now works when
8065 ``**kwargs`` is given.
8067 - bpo-34141: Optimized pickling atomic types (None, bool, int, float, bytes,
8070 - bpo-34126: Fix crashes when profiling certain invalid calls of unbound
8073 - bpo-24618: Fixed reading invalid memory when create the code object with
8076 - bpo-34068: In :meth:`io.IOBase.close`, ensure that the
8077 :attr:`~io.IOBase.closed` attribute is not set with a live exception.
8080 - bpo-34087: Fix buffer overflow while converting unicode to numeric values.
8082 - bpo-34080: Fixed a memory leak in the compiler when it raised some
8085 - bpo-34066: Disabled interruption by Ctrl-C between calling ``open()`` and
8088 - bpo-34042: Fix dict.copy() to maintain correct total refcount (as reported
8091 - bpo-33418: Fix potential memory leak in function object when it creates
8094 - bpo-33985: Implement contextvars.ContextVar.name attribute.
8096 - bpo-33956: Update vendored Expat library copy to version 2.2.5.
8098 - bpo-24596: Decref the module object in :c:func:`PyRun_SimpleFileExFlags`
8101 - bpo-33451: Close directly executed pyc files before calling
8104 - bpo-1617161: The hash of :class:`BuiltinMethodType` instances (methods of
8105 built-in classes) now depends on the hash of the identity of *__self__*
8107 :class:`MethodWrapperType` instances (methods of user-defined classes and
8108 some methods of built-in classes like ``str.__add__``) now depend on the
8112 - bpo-33824: Fix "LC_ALL=C python3.7 -V": reset properly the command line
8115 - bpo-33803: Fix a crash in hamt.c caused by enabling GC tracking for an
8118 - bpo-33738: Seven macro incompatibilities with the Limited API were fixed,
8123 - bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow()
8126 - bpo-30167: ``PyRun_SimpleFileExFlags`` removes ``__cached__`` from module
8129 - bpo-33706: Fix a crash in Python initialization when parsing the command
8132 - bpo-33597: Reduce ``PyGC_Head`` size from 3 words to 2 words.
8134 - bpo-30654: Fixed reset of the SIGINT handler to SIG_DFL on interpreter
8138 - bpo-33622: Fixed a leak when the garbage collector fails to add an object
8141 exception is set and preserves it.
8143 - bpo-33462: Make dict and dict views reversible. Patch by Rémi Lapeyre.
8145 - bpo-23722: A :exc:`RuntimeError` is now raised when the custom metaclass
8148 3.6--3.7.
8150 - bpo-33499: Add :envvar:`PYTHONPYCACHEPREFIX` environment variable and
8151 :option:`-X` ``pycache_prefix`` command-line option to set an alternate
8154 - bpo-25711: The :mod:`zipimport` module has been rewritten in pure Python.
8156 - bpo-33509: Fix module_globals parameter of warnings.warn_explicit(): don't
8157 crash if module_globals is not a dict.
8159 - bpo-31849: Fix signed/unsigned comparison warning in pyhash.c.
8161 - bpo-33475: Fixed miscellaneous bugs in converting annotations to strings
8164 - bpo-20104: Added support for the `setpgroup`, `resetids`, `setsigmask`,
8168 - bpo-33391: Fix a leak in set_symmetric_difference().
8170 - bpo-33363: Raise a SyntaxError for ``async with`` and ``async for``
8173 - bpo-28055: Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
8175 - bpo-33128: Fix a bug that causes PathFinder to appear twice on
8178 - bpo-33331: Modules imported last are now cleared first at interpreter
8181 - bpo-33312: Fixed clang ubsan (undefined behavior sanitizer) warnings in
8183 keys structure is declared.
8185 - bpo-33305: Improved syntax error messages for invalid numerical literals.
8187 - bpo-33306: Improved syntax error messages for unbalanced parentheses.
8189 - bpo-33234: The list constructor will pre-size and not over-allocate when
8190 the input length is known.
8192 - bpo-33270: Intern the names for all anonymous code objects. Patch by
8195 - bpo-30455: The C and Python code and the documentation related to tokens
8198 - bpo-33176: Add a ``toreadonly()`` method to memoryviews.
8200 - bpo-33231: Fix potential memory leak in ``normalizestring()``.
8202 - bpo-33205: Change dict growth function from
8204 ``round_up_to_power_2(used*3)``. Previously, dict is shrinked only when
8207 - bpo-29922: Improved error messages in 'async with' when ``__aenter__()``
8208 or ``__aexit__()`` return non-awaitable object.
8210 - bpo-33199: Fix ``ma_version_tag`` in dict implementation is uninitialized
8211 when copying from key-sharing dict.
8213 - bpo-33053: When using the -m switch, sys.path[0] is now explicitly
8218 - bpo-33138: Changed standard error message for non-pickleable and
8219 non-copyable types. It now says "cannot pickle" instead of "can't pickle"
8222 - bpo-33018: Improve consistency of errors raised by ``issubclass()`` when
8223 called with a non-class and an abstract base class as the first and second
8226 - bpo-33083: ``math.factorial`` no longer accepts arguments that are not
8227 int-like. Patch by Pablo Galindo.
8229 - bpo-33041: Added new opcode :opcode:`END_ASYNC_FOR` and fixes the
8234 * Jumping into an ``async for`` loop is now disabled.
8237 - bpo-25750: Fix rare Python crash due to bad refcounting in
8241 - bpo-33041: Fixed bytecode generation for "async for" with a complex
8245 - bpo-33026: Fixed jumping out of "with" block by setting f_lineno.
8247 - bpo-33005: Fix a crash on fork when using a custom memory allocator (ex:
8252 - bpo-32911: Due to unexpected compatibility issues discovered during
8253 downstream beta testing, reverted :issue:`29463`. ``docstring`` field is
8255 which was added in 3.7a1. Docstring expression is restored as a first
8258 - bpo-17288: Prevent jumps from 'return' and 'exception' trace events.
8260 - bpo-32946: Importing names from already imported module with "from ...
8261 import ..." is now 30% faster if the module is not a package.
8263 - bpo-32932: Make error message more revealing when there are non-str
8266 - bpo-32925: Optimized iterating and containing test for literal lists
8267 consisting of non-constants: ``x in [a, b]`` and ``for x in [a, b]``. The
8270 - bpo-32889: Update Valgrind suppression list to account for the rename of
8273 - bpo-32836: Don't use temporary variables in cases of list/dict/set
8276 - bpo-31356: Remove the new API added in bpo-31356 (gc.ensure_disabled()
8279 - bpo-32305: For namespace packages, ensure that both ``__file__`` and
8282 - bpo-32303: Make sure ``__spec__.loader`` matches ``__loader__`` for
8285 - bpo-32711: Fix the warning messages for Python/ast_unparse.c. Patch by
8288 - bpo-32583: Fix possible crashing in builtin Unicode decoders caused by
8289 write out-of-bound errors when using customized decode error handlers.
8291 - bpo-32489: A :keyword:`continue` statement is now allowed in the
8294 - bpo-17611: Simplified the interpreter loop by moving the logic of
8306 - bpo-32285: New function unicodedata.is_normalized, which can check whether
8307 a string is in a specific normal form.
8309 - bpo-10544: Yield expressions are now disallowed in comprehensions and
8312 - bpo-32117: Iterable unpacking is now allowed without parentheses in yield
8316 - bpo-31902: Fix the ``col_offset`` attribute for ast nodes
8320 - bpo-25862: Fix assertion failures in the ``tell()`` method of
8323 - bpo-21983: Fix a crash in `ctypes.cast()` in case the type argument is a
8326 - bpo-31577: Fix a crash in `os.utime()` in case of a bad ns argument. Patch
8329 - bpo-29832: Remove references to 'getsockaddrarg' from various socket error
8333 -------
8335 - bpo-35845: Add 'order' parameter to memoryview.tobytes().
8337 - bpo-35864: The _asdict() method for collections.namedtuple now returns a
8340 - bpo-35537: An ExitStack is now used internally within subprocess.POpen to
8345 - bpo-35847: RISC-V needed the CTYPES_PASS_BY_REF_HACK. Fixes ctypes
8348 - bpo-35813: Shared memory submodule added to multiprocessing to avoid need
8351 - bpo-35780: Fix lru_cache() errors arising in recursive, reentrant, or
8352 multi-threaded code. These errors could result in orphan links and in the
8356 misordering of links when errors are encountered. Sync-up the C code and
8359 cache entry is reduced by almost half. Fix counting of cache misses. In
8363 - bpo-35537: :func:`os.posix_spawn` and :func:`os.posix_spawnp` now have a
8366 - bpo-23846: :class:`asyncio.ProactorEventLoop` now catches and logs send
8367 errors when the self-pipe is full.
8369 - bpo-34323: :mod:`asyncio`: Enhance ``IocpProactor.close()`` log: wait 1
8370 second before the first log, then log every second. Log also the number of
8373 - bpo-35674: Add a new :func:`os.posix_spawnp` function. Patch by Joannah
8376 - bpo-35733: ``ast.Constant(boolean)`` no longer an instance of
8379 - bpo-35726: QueueHandler.prepare() now makes a copy of the record before
8383 - bpo-35719: Sped up multi-argument :mod:`math` functions atan2(),
8384 copysign(), remainder() and hypot() by 1.3--2.5 times.
8386 - bpo-35717: Fix KeyError exception raised when using enums and compile.
8389 - bpo-35699: Fixed detection of Visual Studio Build Tools 2017 in distutils
8391 - bpo-32710: Fix memory leaks in asyncio ProactorEventLoop on overlapped
8394 - bpo-35702: The :data:`time.CLOCK_UPTIME_RAW` constant is now available for
8397 - bpo-32710: Fix a memory leak in asyncio in the ProactorEventLoop when
8401 - bpo-35682: Fix ``asyncio.ProactorEventLoop.sendfile()``: don't attempt to
8404 - bpo-35283: Add a deprecated warning for the
8405 :meth:`threading.Thread.isAlive` method. Patch by Dong-hee Na.
8407 - bpo-35664: Improve operator.itemgetter() performance by 33% with optimized
8409 single non-negative integer index into a tuple (which is the typical use
8412 - bpo-35643: Fixed a SyntaxWarning: invalid escape sequence in
8415 - bpo-35619: Improved support of custom data descriptors in :func:`help` and
8418 - bpo-28503: The `crypt` module now internally uses the `crypt_r()` library
8421 - bpo-35614: Fixed help() on metaclasses. Patch by Sanyam Khurana.
8423 - bpo-35568: Expose ``raise(signum)`` as `raise_signal`
8425 - bpo-35588: The floor division and modulo operations and the :func:`divmod`
8426 function on :class:`fractions.Fraction` types are 2--4x faster. Patch by
8429 - bpo-35585: Speed-up building enums by value, e.g. http.HTTPStatus(200).
8431 - bpo-30561: random.gammavariate(1.0, beta) now computes the same result as
8436 - bpo-35537: The :mod:`subprocess` module can now use the
8439 - bpo-35526: Delaying the 'joke' of barry_as_FLUFL.mandatory to Python
8442 - bpo-35523: Remove :mod:`ctypes` callback workaround: no longer create a
8446 - bpo-31784: :func:`uuid.uuid1` now calls :func:`time.time_ns` rather than
8449 - bpo-35513: :class:`~unittest.runner.TextTestRunner` of
8452 :func:`time.time` can go backwards, whereas :func:`time.perf_counter` is
8455 - bpo-35502: Fixed reference leaks in
8459 - bpo-35348: Make :func:`platform.architecture` parsing of ``file`` command
8460 output more reliable: add the ``-b`` option to the ``file`` command to
8464 - bpo-35491: :mod:`multiprocessing`: Add ``Pool.__repr__()`` and enhance
8469 - bpo-35477: :meth:`multiprocessing.Pool.__enter__` now fails if the pool is
8472 - bpo-31446: Copy command line that was passed to CreateProcessW since this
8475 - bpo-35471: Python 2.4 dropped MacOS 9 support. The macpath module was
8476 deprecated in Python 3.7. The module is now removed.
8478 - bpo-23057: Unblock Proactor event loop when keyboard interrupt is received
8481 - bpo-35052: Fix xml.dom.minidom cloneNode() on a document with an entity:
8484 - bpo-20239: Allow repeated assignment deletion of
8487 - bpo-17185: Set ``__signature__`` on mock for :mod:`inspect` to get
8490 - bpo-35445: Memory errors during creating posix.environ no longer ignored.
8492 - bpo-35415: Validate fileno= argument to socket.socket().
8494 - bpo-35424: :class:`multiprocessing.Pool` destructor now emits
8495 :exc:`ResourceWarning` if the pool is still running.
8497 - bpo-35330: When a :class:`Mock` instance was used to wrap an object, if
8498 `side_effect` is used in one of the mocks of it methods, don't call the
8500 same way that it is done with return_value.
8502 - bpo-35346: Drop Mac OS 9 and Rhapsody support from the :mod:`platform`
8506 - bpo-10496: :func:`~distutils.utils.check_environ` of
8511 - bpo-10496: :func:`posixpath.expanduser` now returns the input *path*
8512 unchanged if the ``HOME`` environment variable is not set and the current
8518 - bpo-35389: :func:`platform.libc_ver` now uses
8520 parameter is not set.
8522 - bpo-35394: Add empty slots to asyncio abstract protocols.
8524 - bpo-35310: Fix a bug in :func:`select.select` where, in some cases, the
8530 - bpo-35380: Enable TCP_NODELAY on Windows for proactor asyncio event loop.
8532 - bpo-35341: Add generic version of ``collections.OrderedDict`` to the
8535 - bpo-35371: Fixed possible crash in ``os.utime()`` on Windows when pass
8538 - bpo-35346: :func:`platform.uname` now redirects ``stderr`` to
8541 - bpo-35066: Previously, calling the strftime() method on a datetime object
8544 python implementation did not match this behavior. Datetime is now PEP-399
8547 - bpo-35345: The function `platform.popen` has been removed, it was
8550 - bpo-35344: On macOS, :func:`platform.platform` now uses
8551 :func:`platform.mac_ver`, if it returns a non-empty release string, to get
8554 - bpo-35312: Make ``lib2to3.pgen2.parse.ParseError`` round-trip pickle-able.
8557 - bpo-35308: Fix regression in ``webbrowser`` where default browsers may be
8560 - bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff.
8564 - bpo-28604: :func:`locale.localeconv` now sets temporarily the ``LC_CTYPE``
8566 monetary strings are non-ASCII. This temporary change affects other
8569 - bpo-35277: Update ensurepip to install pip 18.1 and setuptools 40.6.2.
8571 - bpo-24209: Adds IPv6 support when invoking http.server directly.
8573 - bpo-35226: Recursively check arguments when testing for equality of
8575 parameters used to create ancestors of mocks in ``mock_calls`` is not
8578 - bpo-29564: The warnings module now suggests to enable tracemalloc if the
8579 source is specified, the tracemalloc module is available, but tracemalloc
8580 is not tracing memory allocations.
8582 - bpo-35189: Modify the following fnctl function to retry if interrupted by
8585 - bpo-30064: Use add_done_callback() in sock_* asyncio API to unsubscribe
8588 - bpo-35186: Removed the "built with" comment added when ``setup.py upload``
8589 is used with either ``bdist_rpm`` or ``bdist_dumb``.
8591 - bpo-35152: Allow sending more than 2 GB at once on a multiprocessing
8592 connection on non-Windows systems.
8594 - bpo-35062: Fix incorrect parsing of
8597 - bpo-35065: Remove `StreamReaderProtocol._untrack_reader`. The call to
8598 `_untrack_reader` is currently performed too soon, causing the protocol to
8602 - bpo-34160: ElementTree and minidom now preserve the attribute order
8605 - bpo-35079: Improve difflib.SequenceManager.get_matching_blocks doc by
8606 adding 'non-overlapping' and changing '!=' to '<'.
8608 - bpo-33710: Deprecated ``l*gettext()`` functions and methods in the
8614 - bpo-35017: :meth:`socketserver.BaseServer.serve_forever` now exits
8615 immediately if it's :meth:`~socketserver.BaseServer.shutdown` method is
8616 called while it is polling for new events.
8618 - bpo-35024: `importlib` no longer logs `wrote <bytecode path>` redundantly
8619 after `(created|could not create) <bytecode path>` is already logged.
8622 - bpo-35047: ``unittest.mock`` now includes mock calls in exception messages
8626 - bpo-31047: Fix ``ntpath.abspath`` regression where it didn't remove a
8629 - bpo-35053: tracemalloc now tries to update the traceback when an object is
8633 - bpo-31553: Add the --json-lines option to json.tool. Patch by hongweipeng.
8635 - bpo-34794: Fixed a leak in Tkinter when pass the Python wrapper around
8638 - bpo-34909: Enum: fix grandchildren subclassing when parent mixed with
8641 - bpo-35022: :class:`unittest.mock.MagicMock` now supports the
8644 - bpo-35008: Fixed references leaks when call the ``__setstate__()`` method
8648 - bpo-23420: Verify the value for the parameter '-s' of the cProfile CLI.
8651 - bpo-33947: dataclasses now handle recursive reprs without raising
8654 - bpo-34890: Make :func:`inspect.iscoroutinefunction`,
8658 - bpo-34521: Use :func:`socket.CMSG_SPACE` to calculate ancillary data size
8663 - bpo-31522: The `mailbox.mbox.get_string` function *from_* parameter can
8664 now successfully be set to a non-default value.
8666 - bpo-34970: Protect tasks weak set manipulation in ``asyncio.all_tasks()``
8668 - bpo-34969: gzip: Add --fast, --best on the gzip CLI, these parameters will
8673 - bpo-16965: The :term:`2to3` :2to3fixer:`execfile` fixer now opens the file
8676 - bpo-34966: :mod:`pydoc` now supports aliases not only to methods defined
8677 in the end class, but also to inherited methods. The docstring is not
8680 - bpo-34926: :meth:`mimetypes.MimeTypes.guess_type` now accepts
8681 :term:`path-like object` in addition to url strings. Patch by Mayank
8684 - bpo-23831: Add ``moveto()`` method to the ``tkinter.Canvas`` widget. Patch
8687 - bpo-34941: Methods ``find()``, ``findtext()`` and ``findall()`` of the
8691 - bpo-32680: :class:`smtplib.SMTP` objects now always have a `sock`
8694 - bpo-34769: Fix for async generators not finalizing when event loop is in
8697 - bpo-34936: Fix ``TclError`` in ``tkinter.Spinbox.selection_element()``.
8700 - bpo-34829: Add methods ``selection_from``, ``selection_range``,
8704 - bpo-34911: Added *secure_protocols* argument to
8709 - bpo-34922: Fixed integer overflow in the :meth:`~hashlib.shake.digest()`
8713 - bpo-34925: 25% speedup in argument parsing for the functions in the bisect
8716 - bpo-34900: Fixed :meth:`unittest.TestCase.debug` when used to call test
8719 - bpo-34844: logging.Formatter enhancement - Ensure styles and fmt matches
8720 in logging.Formatter - Added validate method in each format style class:
8721 StrFormatStyle, PercentStyle, StringTemplateStyle. - This method is called
8722 in the constructor of logging.Formatter class - Also re-raise the KeyError
8726 - bpo-34897: Adjust test.support.missing_compiler_executable check so that a
8727 nominal command name of "" is ignored. Patch by Michael Felt.
8729 - bpo-34871: Fix inspect module polluted ``sys.modules`` when parsing
8732 - bpo-34898: Add `mtime` argument to `gzip.compress` for reproducible
8735 - bpo-28441: On Cygwin and MinGW, ensure that ``sys.executable`` always
8737 (unless it is a symbolic link).
8739 - bpo-34866: Adding ``max_num_fields`` to ``cgi.FieldStorage`` to make DOS
8743 - bpo-34711: http.server ensures it reports HTTPStatus.NOT_FOUND when the
8744 local path ends with "/" and is not a directory, even if the underlying OS
8748 - bpo-34872: Fix self-cancellation in C implementation of asyncio.Task
8750 - bpo-34849: Don't log waiting for ``selector.select`` in asyncio loop
8751 iteration. The waiting is pretty normal for any asyncio program, logging
8755 - bpo-34022: The :envvar:`SOURCE_DATE_EPOCH` environment variable no longer
8759 - bpo-34819: Use a monotonic clock to compute timeouts in
8761 timeouts from deviating when the system clock is adjusted.
8763 - bpo-34758: Add .wasm -> application/wasm to list of recognized file types
8766 - bpo-34789: :func:`xml.sax.make_parser` now accepts any iterable as its
8769 - bpo-34334: In :class:`QueueHandler`, clear `exc_text` from
8772 - bpo-34687: On Windows, asyncio now uses ProactorEventLoop, instead of
8775 - bpo-5950: Support reading zip files with archive comments in
8778 - bpo-32892: The parser now represents all constants as
8784 - bpo-34728: Add deprecation warning when `loop` is used in methods:
8787 - bpo-34738: ZIP files created by :mod:`distutils` will now include entries
8790 - bpo-34659: Add an optional *initial* argument to itertools.accumulate().
8792 - bpo-29577: Support multiple mixin classes when creating Enums.
8794 - bpo-34670: Add SSLContext.post_handshake_auth and
8798 - bpo-32718: The Activate.ps1 script from venv works with PowerShell Core
8799 6.1 and is now available under all operating systems.
8801 - bpo-31177: Fix bug that prevented using :meth:`reset_mock
8804 - bpo-34672: Add a workaround, so the ``'Z'`` :func:`time.strftime`
8807 - bpo-34666: Implement ``asyncio.StreamWriter.awrite`` and
8812 - bpo-6721: Acquire the logging module's commonly used internal locks while
8815 - bpo-34658: Fix a rare interpreter unhandled exception state SystemError
8820 - bpo-34652: Ensure :func:`os.lchmod` is never defined on Linux.
8822 - bpo-34638: Store a weak reference to stream reader to break strong
8824 close the socket if the stream is deleted (garbage collected) without
8827 - bpo-34536: `Enum._missing_`: raise `ValueError` if None returned and
8828 `TypeError` if non-member is returned.
8830 - bpo-34636: Speed up re scanning of many non-matching characters for \s \w
8833 - bpo-24412: Add :func:`~unittest.addModuleCleanup()` and
8838 - bpo-34630: Don't log SSL certificate errors in asyncio code (connection
8839 error logging is skipped already).
8841 - bpo-32490: Prevent filename duplication in :mod:`subprocess` exception
8844 - bpo-34363: dataclasses.asdict() and .astuple() now handle namedtuples
8847 - bpo-34625: Update vendorized expat library version to 2.2.6.
8849 - bpo-32270: The subprocess module no longer mistakenly closes redirected
8853 - bpo-34622: Create a dedicated ``asyncio.CancelledError``,
8859 - bpo-34610: Fixed iterator of :class:`multiprocessing.managers.DictProxy`.
8861 - bpo-34421: Fix distutils logging for non-ASCII strings. This caused
8864 - bpo-34604: Fix possible mojibake in the error message of `pwd.getpwnam`
8868 - bpo-30977: Make uuid.UUID use ``__slots__`` to reduce its memory
8871 - bpo-34574: OrderedDict iterators are not exhausted during pickling
8874 - bpo-8110: Refactored :mod:`subprocess` to check for Windows-specific
8877 - bpo-34530: ``distutils.spawn.find_executable()`` now falls back on
8878 :data:`os.defpath` if the ``PATH`` environment variable is not set.
8880 - bpo-34563: On Windows, fix multiprocessing.Connection for very large read:
8882 INT_MAX (usually 2^31-1).
8884 - bpo-34558: Correct typo in Lib/ctypes/_aix.py
8886 - bpo-34282: Move ``Enum._convert`` to ``EnumMeta._convert_`` and fix enum
8889 - bpo-22872: When the queue is closed, :exc:`ValueError` is now raised by
8894 - bpo-34515: Fix parsing non-ASCII identifiers in
8897 - bpo-13312: Avoids a possible integer underflow (undefined behavior) in the
8901 - bpo-34472: Improved compatibility for streamed files in :mod:`zipfile`.
8905 - bpo-34454: Fix the .fromisoformat() methods of datetime types crashing
8906 when given unicode with non-UTF-8-encodable code points. Specifically,
8910 - bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks.
8913 - bpo-34171: Running the :mod:`trace` module no longer creates the
8916 - bpo-34441: Fix crash when an ``ABC``-derived class with invalid
8917 ``__subclasses__`` is passed as the second argument to
8920 - bpo-34427: Fix infinite loop in ``a.extend(a)`` for ``MutableSequence``
8923 - bpo-34412: Make :func:`signal.strsignal` work on HP-UX. Patch by Michael
8926 - bpo-20849: shutil.copytree now accepts a new ``dirs_exist_ok`` keyword
8929 - bpo-31715: Associate ``.mjs`` file extension with
8932 - bpo-34384: :func:`os.readlink` now accepts :term:`path-like <path-like
8935 - bpo-22602: The UTF-7 decoder now raises :exc:`UnicodeDecodeError` for
8936 ill-formed sequences starting with "+" (as specified in RFC 2152). Patch
8939 - bpo-2122: The :meth:`mmap.flush() <mmap.mmap.flush>` method now returns
8942 - bpo-34341: Appending to the ZIP archive with the ZIP64 extension no longer
8945 - bpo-34333: Fix %-formatting in :meth:`pathlib.PurePath.with_suffix` when
8948 - bpo-18540: The :class:`imaplib.IMAP4` and :class:`imaplib.IMAP4_SSL`
8950 of *host* parameter (``''``) is used.
8952 - bpo-26502: Implement ``traceback.FrameSummary.__len__()`` method to
8955 - bpo-34318: :func:`~unittest.TestCase.assertRaises`,
8959 passed callable is None. They no longer ignore unknown keyword arguments
8963 - bpo-9372: Deprecate :meth:`__getitem__` methods of
8967 - bpo-33613: Fix a race condition in ``multiprocessing.semaphore_tracker``
8971 - bpo-34248: Report filename in the exception raised when the database file
8973 OS-related error. Patch by Zsolt Cserna.
8975 - bpo-33089: Add math.dist() to compute the Euclidean distance between two
8978 - bpo-34246: :meth:`smtplib.SMTP.send_message` no longer modifies the
8981 - bpo-31047: Fix ``ntpath.abspath`` for invalid paths on windows. Patch by
8984 - bpo-32321: Add pure Python fallback for functools.reduce. Patch by Robert
8987 - bpo-34270: The default asyncio task class now always has a name which can
8989 :meth:`~asyncio.Task.set_name`) and is visible in the :func:`repr` output.
8993 If no initial name is set, the default Task implementation generates a
8994 name like ``Task-1`` using a monotonic counter.
8996 - bpo-34263: asyncio's event loop will not pass timeouts longer than one day
8999 - bpo-34035: Fix several AttributeError in zipfile seek() methods. Patch by
9002 - bpo-32215: Fix performance regression in :mod:`sqlite3` when a DML
9005 - bpo-34075: Deprecate passing non-ThreadPoolExecutor instances to
9008 - bpo-34251: Restore ``msilib.Win64`` to preserve backwards compatibility
9011 - bpo-19891: Ignore errors caused by missing / non-writable homedir while
9015 - bpo-33089: Enhanced math.hypot() to support more than two dimensions.
9017 - bpo-34228: tracemalloc: PYTHONTRACEMALLOC=0 environment variable and -X
9021 - bpo-13041: Use :func:`shutil.get_terminal_size` to calculate the terminal
9023 Zbyszek Jędrzejewski-Szmek.
9025 - bpo-34213: Allow frozen dataclasses to have a field named "object".
9028 - bpo-34052: :meth:`sqlite3.Connection.create_aggregate`,
9036 - bpo-34197: Attributes *skipinitialspace*, *doublequote* and *strict* of
9040 - bpo-32788: Errors other than :exc:`TypeError` raised in methods
9044 - bpo-21446: The :2to3fixer:`reload` fixer now uses :func:`importlib.reload`
9047 - bpo-940286: pydoc's ``Helper.showtopic()`` method now prints the cross
9050 - bpo-34164: :func:`base64.b32decode` could raise UnboundLocalError or
9054 - bpo-33729: Fixed issues with arguments parsing in :mod:`hashlib`.
9056 - bpo-34097: ZipFile can zip files older than 1980-01-01 and newer than
9057 2107-12-31 using a new ``strict_timestamps`` parameter at the cost of
9060 - bpo-34108: Remove extraneous CR in 2to3 refactor.
9062 - bpo-34070: Make sure to only check if the handle is a tty, when opening a
9063 file with ``buffering=-1``.
9065 - bpo-27494: Reverted :issue:`27494`. 2to3 rejects now a trailing comma in
9068 - bpo-33967: functools.singledispatch now raises TypeError instead of
9071 - bpo-34041: Add the parameter *deterministic* to the
9075 - bpo-34056: Ensure the loader shim created by ``imp.load_module`` always
9077 ``imp.load_module`` with :pep:`552` hash-based pycs.
9079 - bpo-34054: The multiprocessing module now uses the monotonic clock
9083 - bpo-34043: Optimize tarfile uncompress performance about 15% when gzip is
9086 - bpo-34044: ``subprocess.Popen`` now copies the *startupinfo* argument to
9090 - bpo-34010: Fixed a performance regression for reading streams with
9094 - bpo-34019: webbrowser: Correct the arguments passed to Opera Browser when
9097 - bpo-34003: csv.DictReader now creates dicts instead of OrderedDicts. Patch
9100 - bpo-33978: Closed existing logging handlers before reconfiguration via
9103 - bpo-14117: Make minor tweaks to turtledemo. The 'wikipedia' example is now
9104 'rosette', describing what it draws. The 'penrose' print output is
9105 reduced. The'1024' output of 'tree' is eliminated.
9107 - bpo-33974: Fixed passing lists and tuples of strings containing special
9111 - bpo-27500: Fix getaddrinfo to resolve IPv6 addresses correctly.
9113 - bpo-24567: Improve random.choices() to handle subnormal input weights that
9116 - bpo-33871: Fixed integer overflow in :func:`os.readv`, :func:`os.writev`,
9118 *headers* or *trailers* arguments (on BSD-based OSes and macOS).
9120 - bpo-25007: Add :func:`copy.copy` and :func:`copy.deepcopy` support to zlib
9123 - bpo-33929: multiprocessing: Fix a race condition in Popen of
9130 - bpo-33899: Tokenize module now implicitly emits a NEWLINE when provided
9134 - bpo-33897: Added a 'force' keyword argument to logging.basicConfig().
9136 - bpo-33695: :func:`shutil.copytree` uses :func:`os.scandir` function and
9138 The speedup for copying a directory with 8000 files is around +9% on
9140 of :func:`os.stat` syscalls is reduced by 38% making
9144 - bpo-33916: bz2 and lzma: When Decompressor.__init__() is called twice,
9147 - bpo-32568: Make select.epoll() and its documentation consistent regarding
9150 - bpo-33833: Fixed bug in asyncio where ProactorSocketTransport logs
9153 - bpo-33663: Convert content length to string before putting to header.
9155 - bpo-33721: :mod:`os.path` functions that return a boolean result like
9169 - bpo-26544: Fixed implementation of :func:`platform.libc_ver`. It almost
9172 - bpo-33843: Remove deprecated ``cgi.escape``, ``cgi.parse_qs`` and
9175 - bpo-33842: Remove ``tarfile.filemode`` which is deprecated since Python
9178 - bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. Patch by
9181 - bpo-33805: Improve error message of dataclasses.replace() when an InitVar
9182 is not specified
9184 - bpo-33687: Fix the call to ``os.chmod()`` for ``uu.decode()`` if a mode is
9187 - bpo-33812: Datetime instance d with non-None tzinfo, but with
9188 d.tzinfo.utcoffset(d) returning None is now treated as naive by the
9191 - bpo-32108: In configparser, don't clear section when it is assigned to
9194 - bpo-27397: Make email module properly handle invalid-length base64
9197 - bpo-33578: Implement multibyte encoder/decoder state methods
9199 - bpo-30805: Avoid race condition with debug logging
9201 - bpo-33476: Fix _header_value_parser.py when address group is missing final
9202 ';'. Contributed by Enrique Perez-Terron
9204 - bpo-33694: asyncio: Fix a race condition causing data loss on
9207 - bpo-32493: Correct test for ``uuid_enc_be`` availability in
9210 - bpo-33792: Add asyncio.WindowsSelectorEventLoopPolicy and
9213 - bpo-33274: W3C DOM Level 1 specifies return value of
9217 - bpo-33778: Update ``unicodedata``'s database to Unicode version 11.0.0.
9219 - bpo-33165: Added a stacklevel parameter to logging calls to allow use of
9222 - bpo-33770: improve base64 exception message for encoded inputs of invalid
9225 - bpo-33769: asyncio/start_tls: Fix error message; cancel callbacks in case
9226 of an unhandled error; mark SSLTransport as closed if it is aborted.
9228 - bpo-33767: The concatenation (``+``) and repetition (``*``) sequence
9232 - bpo-33734: asyncio/ssl: Fix AttributeError, increase default handshake
9235 - bpo-31014: Fixed creating a controller for :mod:`webbrowser` when a user
9239 - bpo-2504: Add gettext.pgettext() and variants.
9241 - bpo-33197: Add description property for _ParameterKind
9243 - bpo-32751: When cancelling the task due to a timeout,
9244 :meth:`asyncio.wait_for` will now wait until the cancellation is complete.
9246 - bpo-32684: Fix gather to propagate cancellation of itself even with
9249 - bpo-33654: Support protocol type switching in SSLTransport.set_protocol().
9251 - bpo-33674: Pause the transport as early as possible to further reduce the
9254 - bpo-33671: :func:`shutil.copyfile`, :func:`shutil.copy`,
9256 platform-specific fast-copy syscalls on Linux and macOS in order to copy
9259 :func:`memoryview`-based variant of :func:`shutil.copyfileobj` is used.
9260 The speedup for copying a 512MiB file is about +26% on Linux, +50% on
9264 - bpo-33674: Fix a race condition in SSLProtocol.connection_made() of
9269 - bpo-31647: Fixed bug where calling write_eof() on a
9272 - bpo-32610: Make asyncio.all_tasks() return only pending tasks.
9274 - bpo-32410: Avoid blocking on file IO in sendfile fallback code
9276 - bpo-33469: Fix RuntimeError after closing loop that used run_in_executor
9278 - bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines
9280 - bpo-33654: Fix transport.set_protocol() to support switching between
9284 - bpo-33652: Pickles of type variables and subscripted generics are now
9285 future-proof and compatible with older Python versions.
9287 - bpo-32493: Fixed :func:`uuid.uuid1` on FreeBSD.
9289 - bpo-33238: Add ``InvalidStateError`` to :mod:`concurrent.futures`.
9294 - bpo-33618: Finalize and document preliminary and experimental TLS 1.3
9297 - bpo-33625: Release GIL on `grp.getgrnam`, `grp.getgrgid`, `pwd.getpwnam`
9301 - bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__
9303 - bpo-11874: Use a better regex when breaking usage into wrappable parts.
9306 - bpo-30877: Fixed a bug in the Python implementation of the JSON decoder
9308 the decoding. Based on patch by c-fos.
9310 - bpo-33604: Remove HMAC default to md5 marked for removal in 3.8 (removal
9311 originally planned in 3.6, bump to 3.8 in gh-7062).
9313 - bpo-33582: Emit a deprecation warning for inspect.formatargspec
9315 - bpo-21145: Add ``functools.cached_property`` decorator, for computed
9318 - bpo-33570: Change TLS 1.3 cipher suite settings for compatibility with
9319 OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 ciphers
9322 - bpo-28556: Do not simplify arguments to `typing.Union`. Now
9323 `Union[Manager, Employee]` is not simplified to `Employee` at runtime.
9327 - bpo-12486: :func:`tokenize.generate_tokens` is now documented as a public
9331 - bpo-33540: Add a new ``block_on_close`` class attribute to
9334 - bpo-33548: tempfile._candidate_tempdir_list should consider common TEMP
9337 - bpo-33109: argparse subparsers are once again not required by default,
9338 reverting the change in behavior introduced by bpo-26510 in 3.7.0a2.
9340 - bpo-33541: Remove unused private method ``_strptime.LocaleTime.__pad``
9343 - bpo-33536: dataclasses.make_dataclass now checks for invalid field names
9347 - bpo-33542: Prevent ``uuid.get_node`` from using a DUID instead of a MAC on
9350 - bpo-26819: Fix race condition with `ReadTransport.resume_reading` in
9353 - Fix failure in `typing.get_type_hints()` when ClassVar was provided as a
9356 - bpo-33516: :class:`unittest.mock.MagicMock` now supports the ``__round__``
9359 - bpo-28612: Added support for Site Maps to urllib's ``RobotFileParser`` as
9364 - bpo-28167: Remove platform.linux_distribution, which was deprecated since
9367 - bpo-33504: Switch the default dictionary implementation for
9371 - bpo-33505: Optimize asyncio.ensure_future() by reordering if checks: 1.17x
9374 - bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in
9378 - bpo-29235: The :class:`cProfile.Profile` class can now be used as a
9381 - bpo-33495: Change dataclasses.Fields repr to use the repr of each of its
9383 actually represents. This is especially true for the 'type' member.
9385 - bpo-26103: Correct ``inspect.isdatadescriptor`` to look for ``__set__`` or
9388 - bpo-29209: Removed the ``doctype()`` method and the *html* parameter of
9395 - bpo-33453: Fix dataclasses to work if using literal string type
9400 - bpo-28556: Minor fixes in typing module: add annotations to
9404 - bpo-33365: Print the header values besides the header keys instead just
9405 the header keys if *debuglevel* is set to >0 in :mod:`http.client`. Patch
9408 - bpo-20087: Updated alias mapping with glibc 2.27 supported locales.
9410 - bpo-33422: Fix trailing quotation marks getting deleted when looking up
9413 - bpo-28167: The function ``platform.linux_distribution`` and
9417 - bpo-33281: Fix ctypes.util.find_library regression on macOS.
9419 - bpo-33311: Text and html output generated by cgitb does not display
9420 parentheses if the current call is done directly in the module. Patch by
9423 - bpo-27300: The file classes in *tempfile* now accept an *errors* parameter
9426 - bpo-32933: :func:`unittest.mock.mock_open` now supports iteration over the
9429 - bpo-33217: Raise :exc:`TypeError` when looking up non-Enum objects in Enum
9432 - bpo-33197: Update error message when constructing invalid
9433 inspect.Parameters Patch by Dong-hee Na.
9435 - bpo-33383: Fixed crash in the get() method of the :mod:`dbm.ndbm` database
9436 object when it is called with a single argument.
9438 - bpo-33375: The warnings module now finds the Python file associated with a
9440 This is consistent with how tracebacks and pdb find filenames, and should
9443 - bpo-33336: ``imaplib`` now allows ``MOVE`` command in ``IMAP4.uid()`` (RFC
9447 - bpo-32455: Added *jump* parameter to :func:`dis.stack_effect`.
9449 - bpo-27485: Rename and deprecate undocumented functions in
9452 - bpo-33332: Add ``signal.valid_signals()`` to expose the POSIX sigfillset()
9455 - bpo-33251: `ConfigParser.items()` was fixed so that key-value pairs passed
9458 - bpo-33329: Fix multiprocessing regression on newer glibcs
9460 - bpo-33334: :func:`dis.stack_effect` now supports all defined opcodes
9463 - bpo-991266: Fix quoting of the ``Comment`` attribute of
9466 - bpo-33131: Upgrade bundled version of pip to 10.0.1.
9468 - bpo-33308: Fixed a crash in the :mod:`parser` module when converting an ST
9472 - bpo-23403: lib2to3 now uses pickle protocol 4 for pre-computed grammars.
9474 - bpo-33266: lib2to3 now recognizes ``rf'...'`` strings.
9476 - bpo-11594: Ensure line-endings are respected when using lib2to3.
9478 - bpo-33254: Have :func:`importlib.resources.contents` and
9482 - bpo-33265: ``contextlib.ExitStack`` and ``contextlib.AsyncExitStack`` now
9485 - bpo-33263: Fix FD leak in `_SelectorSocketTransport` Patch by Vlad
9488 - bpo-33256: Fix display of ``<module>`` call in the html produced by
9491 - bpo-33144: ``random.Random()`` and its subclassing mechanism got optimized
9497 - bpo-33185: Fixed regression when running pydoc with the :option:`-m`
9504 - bpo-29613: Added support for the ``SameSite`` cookie flag to the
9507 - bpo-33169: Delete entries of ``None`` in :data:`sys.path_importer_cache`
9508 when :meth:`importlib.machinery.invalidate_caches` is called.
9510 - bpo-33203: ``random.Random.choice()`` now raises ``IndexError`` for empty
9514 - bpo-33224: Update difflib.mdiff() for :pep:`479`. Convert an uncaught
9515 StopIteration in a generator into a return-statement.
9517 - bpo-33209: End framing at the end of C implementation of
9520 - bpo-32861: The urllib.robotparser's ``__str__`` representation now
9521 includes wildcard entries and the "Crawl-delay" and "Request-rate" fields.
9525 - bpo-23403: ``DEFAULT_PROTOCOL`` in :mod:`pickle` was bumped to 4. Protocol
9526 4 is described in :pep:`3154` and available since Python 3.4. It offers
9530 - bpo-20104: Improved error handling and fixed a reference leak in
9533 - bpo-33106: Deleting a key from a read-only dbm database raises module
9536 - bpo-33175: In dataclasses, Field.__set_name__ now looks up the
9540 - bpo-32380: Create functools.singledispatchmethod to support generic single
9543 - bpo-33141: Have Field objects pass through __set_name__ to their default
9546 - bpo-33096: Allow ttk.Treeview.insert to insert iid that has a false
9550 - bpo-32873: Treat type variables and special typing forms as immutable by
9554 - bpo-33134: When computing dataclass's __hash__, use the lookup table to
9555 contain the function which returns the __hash__ value. This is an
9559 - bpo-33127: The ssl module now compiles with LibreSSL 2.7.1.
9561 - bpo-32505: Raise TypeError if a member variable of a dataclass is of type
9564 - bpo-33078: Fix the failure on OSX caused by the tests relying on
9567 - bpo-33116: Add 'Field' to dataclasses.__all__.
9569 - bpo-32896: Fix an error where subclassing a dataclass with a field that
9572 - bpo-33100: Dataclasses: If a field has a default value that's a
9576 - bpo-32953: If a non-dataclass inherits from a frozen dataclass, allow
9579 hierarchy to be either all frozen or all non-frozen.
9581 - bpo-33097: Raise RuntimeError when ``executor.submit`` is called during
9584 - bpo-32968: Modulo and floor division involving Fraction and float should
9587 - bpo-33061: Add missing ``NoReturn`` to ``__all__`` in typing.py
9589 - bpo-33078: Fix the size handling in multiprocessing.Queue when a pickling
9592 - bpo-33064: lib2to3 now properly supports trailing commas after ``*args``
9595 - bpo-33056: FIX properly close leaking fds in
9598 - bpo-33021: Release the GIL during fstat() calls, avoiding hang of all
9602 - bpo-31804: Avoid failing in multiprocessing.Process if the standard
9605 - bpo-33034: Providing an explicit error message when casting the port
9606 property to anything that is not an integer value using ``urlparse()`` and
9609 - bpo-30249: Improve struct.unpack_from() exception messages for problems
9612 - bpo-33037: Skip sending/receiving data after SSL transport closing.
9614 - bpo-27683: Fix a regression in :mod:`ipaddress` that result of
9615 :meth:`hosts` is empty when the network is constructed by a tuple
9618 - bpo-22674: Add the strsignal() function in the signal module that returns
9621 - bpo-32999: Fix C implementation of ``ABC.__subclasscheck__(cls,
9622 subclass)`` crashed when ``subclass`` is not a type object.
9624 - bpo-33009: Fix inspect.signature() for single-parameter partialmethods.
9626 - bpo-32969: Expose several missing constants in zlib and fix corresponding
9629 - bpo-32056: Improved exceptions raised for invalid number of channels and
9633 - bpo-32970: Improved disassembly of the MAKE_FUNCTION instruction.
9635 - bpo-32844: Fix wrong redirection of a low descriptor (0 or 1) to stderr in
9636 subprocess if another low descriptor is closed.
9638 - bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen
9639 classes, and also disallow inheriting non-frozen from frozen classes. This
9642 - bpo-32713: Fixed tarfile.itn handling of out-of-bounds float values. Patch
9645 - bpo-32257: The ssl module now contains OP_NO_RENEGOTIATION constant,
9648 - bpo-32951: Direct instantiation of SSLSocket and SSLObject objects is now
9653 - bpo-32929: Remove the tri-state parameter "hash", and add the boolean
9654 "unsafe_hash". If unsafe_hash is True, add a __hash__ function, but if a
9655 __hash__ exists, raise TypeError. If unsafe_hash is False, add a __hash__
9656 based on the values of eq= and frozen=. The unsafe_hash=False behavior is
9657 the same as the old hash=None behavior. unsafe_hash=False is the default,
9660 - bpo-32947: Add OP_ENABLE_MIDDLEBOX_COMPAT and test workaround for TLSv1.3
9663 - bpo-32146: Document the interaction between frozen executables and the
9666 - bpo-30622: The ssl module now detects missing NPN support in LibreSSL.
9668 - bpo-32922: dbm.open() now encodes filename with the filesystem encoding
9671 - bpo-32759: Free unused arenas in multiprocessing.heap.
9673 - bpo-32859: In ``os.dup2``, don't check every call whether the ``dup3``
9676 - bpo-32556: nt._getfinalpathname, nt._getvolumepathname and
9679 - bpo-21060: Rewrite confusing message from setup.py upload from "No dist
9683 - bpo-32857: In :mod:`tkinter`, ``after_cancel(None)`` now raises a
9687 - bpo-32852: Make sure sys.argv remains as a list when running trace.
9689 - bpo-31333: ``_abc`` module is added. It is a speedup module with C
9692 subclass are up to 1.5x faster. In addition, this makes Python start-up up
9701 - bpo-32841: Fixed `asyncio.Condition` issue which silently ignored
9705 - bpo-32819: ssl.match_hostname() has been simplified and no longer depends
9709 - bpo-19675: ``multiprocessing.Pool`` no longer leaks processes if its
9712 - bpo-32394: socket: Remove
9714 Windows during run-time.
9716 - bpo-31787: Fixed refleaks of ``__init__()`` methods in various modules.
9719 - bpo-30157: Fixed guessing quote and delimiter in csv.Sniffer.sniff() when
9720 only the last field is quoted. Patch by Jake Davis.
9722 - bpo-30688: Added support of ``\N{name}`` escapes in regular expressions.
9725 - bpo-32792: collections.ChainMap() preserves the order of the underlying
9728 - bpo-32775: :func:`fnmatch.translate()` no longer produces patterns which
9729 contain set operations. Sets starting with '[' or containing '--', '&&',
9734 - bpo-32622: Implement native fast sendfile for Windows proactor event loop.
9736 - bpo-32777: Fix a rare but potential pre-exec child process deadlock in
9741 - bpo-32647: The ctypes module used to depend on indirect linking for
9742 dlopen. The shared extension is now explicitly linked against libdl on
9745 - bpo-32749: A :mod:`dbm.dumb` database opened with flags 'r' is now
9746 read-only. :func:`dbm.dumb.open` with flags 'r' and 'w' no longer creates
9749 - bpo-32741: Implement ``asyncio.TimerHandle.when()`` method.
9751 - bpo-32691: Use mod_spec.parent when running modules with pdb
9753 - bpo-32734: Fixed ``asyncio.Lock()`` safety issue which allowed acquiring
9757 - bpo-32727: Do not include name field in SMTP envelope from address. Patch
9760 - bpo-31453: Add TLSVersion constants and SSLContext.maximum_version /
9765 - bpo-24334: Internal implementation details of ssl module were cleaned up.
9770 - bpo-31848: Fix the error handling in Aifc_read.initfp() when the SSND
9771 chunk is not found. Patch by Zackery Spytz.
9773 - bpo-32585: Add Ttk spinbox widget to :mod:`tkinter.ttk`. Patch by Alan D
9776 - bpo-32512: :mod:`profile` CLI accepts `-m module_name` as an alternative
9779 - bpo-8525: help() on a type now displays builtin subclasses. This is
9785 - bpo-31639: http.server now exposes a ThreadingHTTPServer class and uses it
9786 when the module is run with ``-m`` to cope with web browsers pre-opening
9789 - bpo-29877: compileall: import ProcessPoolExecutor only when needed,
9792 - bpo-32221: Various functions returning tuple containing IPv6 addresses now
9793 omit ``%scope`` part since the same information is already encoded in
9796 interface name is omitted.
9798 - bpo-32147: :func:`binascii.unhexlify` is now up to 2 times faster. Patch
9801 - bpo-30693: The TarFile class now recurses directories in a reproducible
9804 - bpo-30693: The ZipFile class now recurses directories in a reproducible
9807 - bpo-31680: Added :data:`curses.ncurses_version`.
9809 - bpo-31908: Fix output of cover files for ``trace`` module command-line
9810 tool. Previously emitted cover files only when ``--missing`` option was
9813 - bpo-31608: Raise a ``TypeError`` instead of crashing if a
9814 ``collections.deque`` subclass returns a non-deque from ``__new__``. Patch
9817 - bpo-31425: Add support for sockets of the AF_QIPCRTR address family,
9818 supported by the Linux kernel. This is used to communicate with services,
9822 - bpo-22005: Implemented unpickling instances of
9827 - bpo-27645: :class:`sqlite3.Connection` now exposes a
9829 library is at version 3.6.11 or higher. Patch by Lele Gaifax.
9831 - bpo-16865: Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer.
9833 - bpo-31508: Removed support of arguments in
9837 - bpo-29456: Fix bugs in hangul normalization: u1176, u11a7 and u11c3
9840 -------------
9842 - bpo-21257: Document :func:`http.client.parse_headers`.
9844 - bpo-34764: Improve example of iter() with 2nd sentinel argument.
9846 - bpo-35564: Explicitly set master_doc variable in conf.py for compliance
9849 - bpo-35511: Specified that profile.Profile class doesn't not support enable
9851 manager is only supported in cProfile module.
9853 - bpo-10536: Enhance the gettext docs. Patch by Éric Araujo
9855 - bpo-35089: Remove mention of ``typing.io`` and ``typing.re``. Their types
9858 - bpo-35038: Fix the documentation about an unexisting `f_restricted`
9861 - bpo-35042: Replace PEP XYZ by the pep role and allow to use the direct
9864 - bpo-35044: Fix the documentation with the role ``exc`` for the
9867 - bpo-35035: Rename documentation for :mod:`email.utils` to
9870 - bpo-34967: Use app.add_object_type() instead of the deprecated Sphinx
9873 - bpo-34913: Add documentation about the new command line interface of the
9876 - bpo-32174: chm document displays non-ASCII charaters properly on some MBCS
9879 - bpo-11233: Create availability directive for documentation. Original
9882 - bpo-34790: Document how passing coroutines to asyncio.wait() can be
9885 - bpo-34552: Make clear that ``==`` operator sometimes is equivalent to
9886 `is`. The ``<``, ``<=``, ``>`` and ``>=`` operators are only defined where
9889 - bpo-28617: Fixed info in the stdtypes docs concerning the types that
9892 - bpo-20177: Migrate datetime.date.fromtimestamp to Argument Clinic. Patch
9895 - bpo-34065: Fix wrongly written basicConfig documentation markup syntax
9897 - bpo-33460: replaced ellipsis with correct error codes in tutorial chapter
9900 - bpo-33847: Add '@' operator entry to index.
9902 - bpo-33409: Clarified the relationship between :pep:`538`'s
9905 - bpo-33197: Add versionadded tag to the documentation of
9908 - bpo-17045: Improve the C-API doc for PyTypeObject. This includes adding
9909 several quick-reference tables and a lot of missing slot/typedef entries.
9913 - bpo-33736: Improve the documentation of :func:`asyncio.open_connection`,
9916 - bpo-23859: Document that `asyncio.wait()` does not cancel its futures on
9919 - bpo-32436: Document :pep:`567` changes to asyncio.
9921 - bpo-33604: Update HMAC md5 default to a DeprecationWarning, bump removal
9924 - bpo-33594: Document ``getargspec``, ``from_function`` and ``from_builtin``
9928 - bpo-33503: Fix broken pypi link
9930 - bpo-33421: Add missing documentation for ``typing.AsyncContextManager``.
9932 - bpo-33487: BZ2file now emit a DeprecationWarning when buffering=None is
9934 state it is deprecated since 3.0.
9936 - bpo-33378: Add Korean language switcher for https://docs.python.org/3/
9938 - bpo-33276: Clarify that the ``__path__`` attribute on modules cannot be
9941 - bpo-33201: Modernize documentation for writing C extension types.
9943 - bpo-33195: Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document.
9944 ``Py_UNICODE`` related APIs are deprecated since Python 3.3, but it is
9947 - bpo-33126: Document PyBuffer_ToContiguous().
9949 - bpo-27212: Modify documentation for the :func:`islice` recipe to consume
9952 - bpo-28247: Update :mod:`zipapp` documentation to describe how to make
9955 - bpo-18802: Documentation changes for ipaddress. Patch by Jon Foster and
9958 - bpo-27428: Update documentation to clarify that ``WindowsRegistryFinder``
9961 - bpo-28124: The ssl module function ssl.wrap_socket() has been
9962 de-emphasized and deprecated in favor of the more secure and efficient
9965 - bpo-17232: Clarify docs for -O and -OO. Patch by Terry Reedy.
9967 - bpo-32436: Add documentation for the contextvars module (PEP 567).
9969 - bpo-32800: Update link to w3c doc for xml default namespaces.
9971 - bpo-11015: Update :mod:`test.support` documentation.
9973 - bpo-32613: Update the faq/windows.html to use the py command from PEP 397
9976 - bpo-8722: Document :meth:`__getattr__` behavior when property :meth:`get`
9979 - bpo-32614: Modify RE examples in documentation to use raw strings to
9983 - bpo-20709: Remove the paragraph where we explain that os.utime() does not
9984 support a directory as path under Windows. Patch by Jan-Philip Gehrcke
9986 - bpo-32722: Remove the bad example in the tutorial of the Generator
9989 - bpo-31972: Improve docstrings for `pathlib.PurePath` subclasses.
9991 - bpo-30607: Use the externalized ``python-docs-theme`` package when
9994 - bpo-8243: Add a note about curses.addch and curses.addstr exception
9997 - bpo-32337: Update documentation related with ``dict`` order.
9999 - bpo-25041: Document ``AF_PACKET`` in the :mod:`socket` module.
10001 - bpo-31432: Clarify meaning of CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED
10005 -----
10007 - bpo-35772: Fix sparse file tests of test_tarfile on ppc64 with the tmpfs
10010 a file which contains no data. tmpfs effective block size is a page size
10015 - bpo-35045: Make ssl tests less strict and also accept TLSv1 as system
10018 - bpo-32710: ``test_asyncio/test_sendfile.py`` now resets the event loop
10022 - bpo-33717: test.pythoninfo now logs information of all clocks, not only
10025 - bpo-35488: Add a test to pathlib's Path.match() to verify it does not
10026 support glob-style ** recursive pattern matching.
10028 - bpo-31731: Fix a race condition in ``check_interrupted_write()`` of
10031 possible that the thread gets the signal before the signal is blocked.
10033 - bpo-35424: Fix test_multiprocessing_main_handling: use
10037 - bpo-35519: Rename :mod:`test.bisect` module to :mod:`test.bisect_cmd` to
10041 - bpo-35513: Replace :func:`time.time` with :func:`time.monotonic` in tests
10044 - bpo-34279: :func:`test.support.run_unittest` no longer raise
10046 exception is now only raised if no test have been run and no test have
10049 - bpo-35412: Add testcase to ``test_future4``: check unicode literal.
10051 - bpo-26704: Added test demonstrating double-patching of an instance method.
10054 - bpo-33725: test_multiprocessing_fork may crash on recent versions of
10055 macOS. Until the issue is resolved, skip the test on macOS.
10057 - bpo-35352: Modify test_asyncio to use the certificate set from the test
10060 - bpo-35317: Fix ``mktime()`` overflow error in ``test_email``: run
10064 - bpo-21263: After several reports that test_gdb does not work properly on
10065 macOS and since gdb is not shipped by default anymore, test_gdb is now
10069 - bpo-34279: regrtest issue a warning when no tests have been executed in a
10070 particular test file. Also, a new final result state is issued if no test
10073 - bpo-34962: make docstest in Doc now passes., and is enforced in CI
10075 - bpo-23596: Use argparse for the command line of the gzip module. Patch by
10078 - bpo-34537: Fix ``test_gdb.test_strings()`` when ``LC_ALL=C`` and GDB was
10081 - bpo-34587: test_socket: Remove RDSTest.testCongestion(). The test tries to
10088 - bpo-34661: Fix test_shutil if unzip doesn't support -t.
10090 - bpo-34200: Fixed non-deterministic flakiness of test_pkg by not using the
10094 - bpo-34569: The experimental PEP 554 data channels now correctly pass
10095 negative PyLong objects between subinterpreters on 32-bit systems. Patch
10098 - bpo-34594: Fix usage of hardcoded ``errno`` values in the tests.
10100 - bpo-34579: Fix test_embed for AIX Patch by Michael Felt
10102 - bpo-34542: Use 3072 RSA keys and SHA-256 signature for test certs and
10105 - bpo-11193: Remove special condition for AIX in
10108 - bpo-34347: Fix `test_utf8_mode.test_cmd_line` for AIX
10110 - bpo-34490: On AIX with AF_UNIX family sockets getsockname() does not
10113 - bpo-34391: Fix ftplib test for TLS 1.3 by reading from data socket.
10115 - bpo-11192: Fix `test_socket` on AIX 6.1 and later IPv6 zone id supports
10116 only supported by inet_pton6_zone() Switch to runtime-based
10117 platform.system() to establish current platform rather than build-time
10120 - bpo-34399: Update all RSA keys and DH params to use at least 2048 bits.
10122 - bpo-34373: Fix ``test_mktime`` and ``test_pthread_getcpuclickid`` tests
10126 - bpo-11191: Skip the distutils test 'test_search_cpp' when using XLC as
10129 - Improved an error message when mock assert_has_calls fails.
10131 - bpo-33746: Fix test_unittest when run in verbose mode.
10133 - bpo-33901: Fix test_dbm_gnu on macOS with gdbm 1.15: add a larger value to
10136 - bpo-33873: Fix a bug in ``regrtest`` that caused an extra test to run if
10137 --huntrleaks/-R was used. Exit with error in case that invalid parameters
10138 are specified to --huntrleaks/-R (at least one warmup run and one
10141 - bpo-33562: Check that a global asyncio event loop policy is not left
10144 - bpo-33655: Ignore test_posix_fallocate failures on BSD platforms that
10147 - bpo-32962: Fixed test_gdb when Python is compiled with flags -mcet
10148 -fcf-protection -O0.
10150 - bpo-33358: Fix ``test_embed.test_pre_initialization_sys_options()`` when
10151 the interpreter is built with ``--enable-shared``.
10153 - bpo-32872: Avoid regrtest compatibility issue with namespace packages.
10155 - bpo-32517: Fix failing ``test_asyncio`` on macOS 10.12.2+ due to transport
10158 - bpo-32663: Making sure the `SMTPUTF8SimTests` class of tests gets run in
10161 - bpo-27643: Test_C test case needs "signed short" bitfields, but the IBM
10165 Applicable to Python2-2.7 and later
10167 - bpo-19417: Add test_bdb.py.
10169 - bpo-31809: Add tests to verify connection with secp ECDH curves.
10172 -----
10174 - bpo-34691: The _contextvars module is now built into the core Python
10177 - bpo-35683: Improved Azure Pipelines build steps and now verifying layouts
10180 - bpo-35642: Remove asynciomodule.c from pythoncore.vcxproj
10182 - bpo-35550: Fix incorrect Solaris #ifdef checks to look for __sun && __SVR4
10185 - bpo-35499: ``make profile-opt`` no longer replaces ``CFLAGS_NODIST`` with
10186 ``CFLAGS``. It now adds profile-guided optimization (PGO) flags to
10189 - bpo-35257: Avoid leaking the linker flags from Link Time Optimizations
10192 - bpo-35351: When building Python with clang and LTO, LTO flags are no
10193 longer passed into CFLAGS to build third-party C extensions through
10196 - bpo-35139: Fix a compiler error when statically linking `pyexpat` in
10199 - bpo-35059: PCbuild: Set InlineFunctionExpansion to OnlyExplicitInline
10204 - bpo-35011: Restores the use of pyexpatns.h to isolate our embedded copy of
10209 - bpo-28015: Have --with-lto works correctly with clang.
10211 - bpo-34765: Update the outdated install-sh file to the latest revision from
10214 - bpo-34585: Check for floating-point byte order in configure.ac using
10216 cross-compiled builds.
10218 - bpo-34710: Fixed SSL module build with OpenSSL & pedantic CFLAGS.
10220 - bpo-34582: Add JUnit XML output for regression tests and update Azure
10223 - bpo-34081: Make Sphinx warnings as errors in the Docs Makefile.
10225 - bpo-34555: Fix for case where it was not possible to have both
10228 - bpo-33015: Fix an undefined behaviour in the pthread implementation of
10232 - bpo-34245: The Python shared library is now installed with write
10233 permission (mode 0755), which is the standard way of installing such
10236 - bpo-34121: Fix detection of C11 atomic support on clang.
10238 - bpo-32430: Rename Modules/Setup.dist to Modules/Setup, and remove the
10242 - bpo-30345: Add -g to LDFLAGS when compiling with LTO to get debug symbols.
10244 - bpo-5755: Move ``-Wstrict-prototypes`` option to ``CFLAGS_NODIST`` from
10248 - bpo-33614: Ensures module definition files for the stable ABI on Windows
10251 - bpo-33648: The --with-c-locale-warning configuration flag has been
10254 - bpo-33522: Enable CI builds on Visual Studio Team Services at
10257 - bpo-33512: configure's check for "long double" has been simplified
10259 - bpo-33483: C compiler is now correctly detected from the standard
10260 environment variables. --without-gcc and --with-icc options have been
10263 - bpo-33394: Enable the verbose build for extension modules, when GNU make
10264 is passed macros on the command line.
10266 - bpo-33393: Update config.guess and config.sub files.
10268 - bpo-33377: Add new triplets for mips r6 and riscv variants (used in
10271 - bpo-32232: By default, modules configured in `Modules/Setup` are no longer
10272 built with `-DPy_BUILD_CORE`. Instead, modules that specifically need that
10275 - bpo-33182: The embedding tests can once again be built with clang 6.0
10277 - bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1.
10279 - bpo-33012: gcc 8 has added a new warning heuristic to detect invalid
10281 often. The most common is the cast of a METH_NOARGS function (that uses
10285 - bpo-32898: Fix the python debug build when using COUNT_ALLOCS.
10287 - bpo-29442: Replace optparse with argparse in setup.py
10290 -------
10292 - bpo-35890: Fix API calling consistency of GetVersionEx and wcstok.
10294 - bpo-32560: The ``py`` launcher now forwards its ``STARTUPINFO`` structure
10297 - bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows
10299 - bpo-35811: Avoid propagating venv settings when launching via py.exe
10301 - bpo-35797: Fix default executable used by the multiprocessing module
10303 - bpo-35758: Allow building on ARM with MSVC.
10305 - bpo-29734: Fix handle leaks in os.stat on Windows.
10307 - bpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport
10310 - bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple
10313 - bpo-35402: Update Windows build to use Tcl and Tk 8.6.9
10315 - bpo-35401: Updates Windows build to OpenSSL 1.1.0j
10317 - bpo-34977: venv on Windows will now use a python.exe redirector rather
10320 - bpo-34977: Adds support for building a Windows App Store package
10322 - bpo-35067: Remove _distutils_findvs module and use vswhere.exe instead.
10324 - bpo-32557: Allow shutil.disk_usage to take a file path on Windows
10326 - bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp.
10328 - bpo-34603: Fix returning structs from functions produced by MSVC
10330 - bpo-34581: Guard MSVC-specific code in socketmodule.c with ``#ifdef
10333 - bpo-34532: Fixes exit code of list version arguments for py.exe.
10335 - bpo-34062: Fixed the '--list' and '--list-paths' arguments for the py.exe
10338 - bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash.
10340 - bpo-34011: A suite of code has been changed which copied across DLLs and
10343 copying code is now only run when that is the case, rather than whenever a
10344 venv is created.
10346 - bpo-34006: Revert line length limit for Windows help docs. The line-length
10347 limit is not needed because the pages appear in a separate app rather than
10350 - bpo-31546: Restore running PyOS_InputHook while waiting for user input at
10354 - bpo-30237: Output error when ReadConsole is canceled by
10357 - bpo-33895: GIL is released while calling functions that acquire Windows
10360 - bpo-33720: Reduces maximum marshal recursion depth on release builds.
10362 - bpo-29097: Fix bug where :meth:`datetime.fromtimestamp` erroneously throws
10366 - bpo-33316: PyThread_release_lock always fails
10368 - bpo-33184: Update Windows installer to use OpenSSL 1.1.0h.
10370 - bpo-32890: Fix usage of GetLastError() instead of errno in os.execve() and
10373 - bpo-33016: Fix potential use of uninitialized memory in
10376 - bpo-32903: Fix a memory leak in os.chdir() on Windows if the current
10377 directory is set to a UNC path.
10379 - bpo-32901: Update Tcl and Tk versions to 8.6.8
10381 - bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data.
10383 - bpo-32409: Ensures activate.bat can handle Unicode contents.
10385 - bpo-32457: Improves handling of denormalized executable path when
10388 - bpo-32370: Use the correct encoding for ipconfig output in the uuid
10391 - bpo-29248: Fix :func:`os.readlink` on Windows, which was mistakenly
10395 - bpo-1104: Correctly handle string length in
10400 -----
10402 - bpo-35401: Update macOS installer to use OpenSSL 1.1.0j.
10404 - bpo-35025: Properly guard the use of the ``CLOCK_GETTIME`` et al. macros
10407 - bpo-24658: On macOS, fix reading from and writing into a file with a size
10410 - bpo-34405: Update to OpenSSL 1.1.0i for macOS installer builds.
10412 - bpo-33635: In macOS stat on some file descriptors (/dev/fd/3 f.e) will
10418 - bpo-13631: The .editrc file in user's home directory is now processed
10422 - bpo-33184: Update macOS installer build to use OpenSSL 1.1.0h.
10424 - bpo-32726: Build and link with private copy of Tcl/Tk 8.6 for the macOS
10427 longer need or use any external versions of Tcl/Tk, either system-provided
10428 or user-installed, such as ActiveTcl.
10430 - bpo-32901: Update macOS 10.9+ installer to Tcl/Tk 8.6.8.
10432 - bpo-31903: In :mod:`_scproxy`, drop the GIL when calling into
10436 ----
10438 - bpo-35770: IDLE macosx deletes Options => Configure IDLE. It previously
10439 deleted Window => Zoom Height by mistake. (Zoom Height is now on the
10440 Options menu). On Mac, the settings dialog is accessed via Preferences on
10443 - bpo-35769: Change IDLE's new file name from 'Untitled' to 'untitled'
10445 - bpo-35660: Fix imports in idlelib.window.
10447 - bpo-35641: Proper format `calltip` when the function has no docstring.
10449 - bpo-33987: Use ttk Frame for ttk widgets.
10451 - bpo-34055: Fix erroneous 'smart' indents and newlines in IDLE Shell.
10453 - bpo-35591: Find Selection now works when selection not found.
10455 - bpo-35196: Speed up squeezer line counting.
10457 - bpo-35598: Update config_key: use PEP 8 names and ttk widgets, make some
10460 - bpo-28097: Add Previous/Next History entries to Shell menu.
10462 - bpo-35208: Squeezer now properly counts wrapped lines before newlines.
10464 - bpo-35555: Gray out Code Context menu entry when it's not applicable.
10466 - bpo-35521: Document the IDLE editor code context feature. Add some
10469 - bpo-22703: The Code Context menu label now toggles between Show/Hide Code
10473 - bpo-35213: Where appropriate, use 'macOS' in idlelib.
10475 - bpo-34864: On macOS, warn if the system preference "Prefer tabs when
10476 opening documents" is set to "Always".
10478 - bpo-34864: Document two IDLE on MacOS issues. The System Preferences Dock
10482 - bpo-35202: Remove unused imports from lib/idlelib
10484 - bpo-33000: Document that IDLE's shell has no line limit. A program that
10487 - bpo-23220: Explain how IDLE's Shell displays output.
10489 - bpo-35099: Improve the doc about IDLE running user code. The section is
10490 renamed from "IDLE -- console differences" is renamed "Running user code".
10493 - bpo-35097: Add IDLE doc subsection explaining editor windows. Topics
10496 - bpo-35093: Document the IDLE document viewer in the IDLE doc. Add a
10499 - bpo-35088: Update idlelib.help.copy_string docstring. We now use git and
10502 - bpo-35087: Update idlelib help files for the current doc build. The main
10503 change is the elimination of chapter-section numbers.
10505 - bpo-34548: Use configured color theme for read-only text views.
10507 - bpo-1529353: Enable "squeezing" of long outputs in the shell, to avoid
10512 - bpo-34047: Fixed mousewheel scrolling direction on macOS.
10514 - bpo-34275: Make IDLE calltips always visible on Mac. Some MacOS-tk
10517 - bpo-34120: Fix unresponsiveness after closing certain windows and dialogs.
10519 - bpo-33975: Avoid small type when running htests. Since part of the purpose
10520 of human-viewed tests is to determine that widgets look right, it is
10523 - bpo-33905: Add test for idlelib.stackview.StackBrowser.
10525 - bpo-33924: Change mainmenu.menudefs key 'windows' to 'window'. Every other
10526 menudef key is lowercase version of main menu entry.
10528 - bpo-33906: Rename idlelib.windows as window Match Window on the main menu
10531 - bpo-33917: Fix and document idlelib/idle_test/template.py. The revised
10535 - bpo-33904: IDLE: In rstrip, rename class RstripExtension as Rstrip
10537 - bpo-33907: For consistency and clarity, rename an IDLE module and classes.
10539 module calltip_w, class CallTip is now CalltipWindow.
10541 - bpo-33856: Add "help" in the welcome message of IDLE
10543 - bpo-33839: IDLE: refactor ToolTip and CallTip and add documentation and
10546 - bpo-33855: Minimally test all IDLE modules. Add missing files, import
10549 - bpo-33656: On Windows, add API call saying that tk scales for DPI. On
10554 - bpo-33768: Clicking on a context line moves that line to the top of the
10557 - bpo-33763: IDLE: Use read-only text widget for code context instead of
10560 - bpo-33664: Scroll IDLE editor text by lines. Previously, the mouse wheel
10563 the shell and grep output windows, but not to read-only text views.
10565 - bpo-33679: Enable theme-specific color configuration for Code Context. Use
10566 the Highlights tab to see the setting for built-in themes or add settings
10569 - bpo-33642: Display up to maxlines non-blank lines for Code Context. If
10570 there is no current context, show a single blank line.
10572 - bpo-33628: IDLE: Cleanup codecontext.py and its test.
10574 - bpo-33564: IDLE's code context now recognizes async as a block opener.
10576 - bpo-21474: Update word/identifier definition from ascii to unicode. In
10577 text and entry boxes, this affects selection by double-click, movement
10578 left/right by control-left/right, and deletion left/right by
10579 control-BACKSPACE/DEL.
10581 - bpo-33204: IDLE: consistently color invalid string prefixes. A 'u' string
10583 of the prefix, starting at the right, as is valid. Revise and extend
10586 - bpo-32984: Set ``__file__`` while running a startup file. Like Python,
10588 presenting the first interactive input prompt. For IDLE, ``-s`` runs a
10590 :envvar:`PYTHONSTARTUP`; ``-r file`` runs ``file``. Python sets
10593 without the ``-n`` option.
10595 - bpo-32940: Simplify and rename StringTranslatePseudoMapping in pyparse.
10597 - bpo-32916: Change ``str`` to ``code`` in pyparse.
10599 - bpo-32905: Remove unused code in pyparse module.
10601 - bpo-32874: Add tests for pyparse.
10603 - bpo-32837: Using the system and place-dependent default encoding for
10604 open() is a bad idea for IDLE's system and location-independent files.
10606 - bpo-32826: Add "encoding=utf-8" to open() in IDLE's test_help_about. GUI
10607 test test_file_buttons() only looks at initial ascii-only lines, but
10609 internally reads and decodes far enough ahead to encounter a non-ascii
10612 - bpo-32831: Add docstrings and tests for codecontext.
10614 - bpo-32765: Update configdialog General tab docstring to add new widgets to
10618 -----------
10620 - bpo-35884: Add a benchmark script for timing various ways to access
10623 - bpo-34989: python-gdb.py now handles errors on computing the line number
10626 - bpo-20260: Argument Clinic now has non-bitwise unsigned int converters.
10628 - bpo-32962: python-gdb now catches ``UnicodeDecodeError`` exceptions when
10631 - bpo-32962: python-gdb now catches ValueError on read_var(): when Python
10634 - bpo-33189: :program:`pygettext.py` now recognizes only literal strings as
10636 f-string expressions.
10638 - bpo-31920: Fixed handling directories as arguments in the ``pygettext``
10641 - bpo-29673: Fix pystackv and pystack gdbinit macros.
10643 - bpo-25427: Remove the pyvenv script in favor of ``python3 -m venv`` in
10647 - bpo-32885: Add an ``-n`` flag for ``Tools/scripts/pathfix.py`` to disable
10650 - bpo-32222: Fix pygettext not extracting docstrings for functions with type
10653 - bpo-31583: Fix 2to3 for using with --add-suffix option but without
10654 --output-dir option for relative path to files in current directory.
10657 -----
10659 - bpo-35713: The :c:func:`PyByteArray_Init` and :c:func:`PyByteArray_Fini`
10664 - bpo-33817: Fixed :c:func:`_PyBytes_Resize` for empty bytes objects.
10666 - bpo-35322: Fix memory leak in :c:func:`PyUnicode_EncodeLocale` and
10669 - bpo-35059: The following C macros have been converted to static inline
10674 - bpo-35296: ``make install`` now also installs the internal API:
10677 - bpo-35081: Internal APIs surrounded by ``#ifdef Py_BUILD_CORE`` have been
10681 - bpo-35259: Conditionally declare :c:func:`Py_FinalizeEx()` (new in 3.6)
10684 - bpo-35081: The :c:func:`_PyObject_GC_TRACK` and
10688 - bpo-35134: Creation of a new ``Include/cpython/`` subdirectory.
10690 - bpo-34725: Adds _Py_SetProgramFullPath so embedders may override
10693 - bpo-34910: Ensure that :c:func:`PyObject_Print` always returns ``-1`` on
10696 - bpo-34523: Py_DecodeLocale() and Py_EncodeLocale() now use the UTF-8
10697 encoding on Windows if Py_LegacyWindowsFSEncodingFlag is zero.
10699 - bpo-34193: Fix pluralization in TypeError messages in getargs.c and
10703 - bpo-34127: Return grammatically correct error message based on argument
10706 - bpo-23927: Fixed :exc:`SystemError` in
10707 :c:func:`PyArg_ParseTupleAndKeywords` when the ``w*`` format unit is used
10710 - bpo-32455: Added :c:func:`PyCompile_OpcodeStackEffectWithJump`.
10712 - bpo-34008: Py_Main() can again be called after Py_Initialize(), as in
10715 - bpo-32500: Fixed error messages for :c:func:`PySequence_Size`,
10720 - bpo-33818: :c:func:`PyExceptionClass_Name` will now return ``const char
10723 - bpo-33042: Embedding applications may once again call
10727 - bpo-32374: Document that m_traverse for multi-phase initialized modules
10730 - bpo-30863: :c:func:`PyUnicode_AsWideChar` and
10738 *Release date: 2018-06-27*
10741 -------
10743 - bpo-33851: Fix :func:`ast.get_docstring` for a node that lacks a
10747 -----
10749 - bpo-33932: Calling Py_Initialize() twice does nothing, instead of failing
10756 *Release date: 2018-06-12*
10759 -----------------
10761 - bpo-33803: Fix a crash in hamt.c caused by enabling GC tracking for an
10764 - bpo-33706: Fix a crash in Python initialization when parsing the command
10767 - bpo-30654: Fixed reset of the SIGINT handler to SIG_DFL on interpreter
10771 - bpo-31849: Fix signed/unsigned comparison warning in pyhash.c.
10774 -------
10776 - bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. Patch by
10779 - bpo-33812: Datetime instance d with non-None tzinfo, but with
10780 d.tzinfo.utcoffset(d) returning None is now treated as naive by the
10783 - bpo-30805: Avoid race condition with debug logging
10785 - bpo-33694: asyncio: Fix a race condition causing data loss on
10788 - bpo-32493: Correct test for ``uuid_enc_be`` availability in
10791 - bpo-33792: Add asyncio.WindowsSelectorEventLoopPolicy and
10794 - bpo-33778: Update ``unicodedata``'s database to Unicode version 11.0.0.
10796 - bpo-33770: improve base64 exception message for encoded inputs of invalid
10799 - bpo-33769: asyncio/start_tls: Fix error message; cancel callbacks in case
10800 of an unhandled error; mark SSLTransport as closed if it is aborted.
10802 - bpo-33767: The concatenation (``+``) and repetition (``*``) sequence
10806 - bpo-33734: asyncio/ssl: Fix AttributeError, increase default handshake
10809 - bpo-11874: Use a better regex when breaking usage into wrappable parts.
10812 - bpo-33582: Emit a deprecation warning for inspect.formatargspec
10815 -------------
10817 - bpo-33409: Clarified the relationship between :pep:`538`'s
10820 - bpo-33736: Improve the documentation of :func:`asyncio.open_connection`,
10823 - bpo-31432: Clarify meaning of CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED
10827 -----
10829 - bpo-5755: Move ``-Wstrict-prototypes`` option to ``CFLAGS_NODIST`` from
10834 -------
10836 - bpo-33720: Reduces maximum marshal recursion depth on release builds.
10839 ----
10841 - bpo-33656: On Windows, add API call saying that tk scales for DPI. On
10846 - bpo-33768: Clicking on a context line moves that line to the top of the
10849 - bpo-33763: IDLE: Use read-only text widget for code context instead of
10852 - bpo-33664: Scroll IDLE editor text by lines. Previously, the mouse wheel
10855 the shell and grep output windows, but not to read-only text views.
10857 - bpo-33679: Enable theme-specific color configuration for Code Context. Use
10858 the Highlights tab to see the setting for built-in themes or add settings
10861 - bpo-33642: Display up to maxlines non-blank lines for Code Context. If
10862 there is no current context, show a single blank line.
10868 *Release date: 2018-05-30*
10871 -----------------
10873 - bpo-33622: Fixed a leak when the garbage collector fails to add an object
10876 exception is set and preserves it.
10878 - bpo-33509: Fix module_globals parameter of warnings.warn_explicit(): don't
10879 crash if module_globals is not a dict.
10881 - bpo-20104: The new `os.posix_spawn` added in 3.7.0b1 was removed as we are
10885 - bpo-33475: Fixed miscellaneous bugs in converting annotations to strings
10888 - bpo-33391: Fix a leak in set_symmetric_difference().
10890 - bpo-28055: Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
10892 - bpo-32911: Due to unexpected compatibility issues discovered during
10893 downstream beta testing, reverted :issue:`29463`. ``docstring`` field is
10895 which was added in 3.7a1. Docstring expression is restored as a first
10898 - bpo-21983: Fix a crash in `ctypes.cast()` in case the type argument is a
10902 -------
10904 - bpo-32751: When cancelling the task due to a timeout,
10905 :meth:`asyncio.wait_for` will now wait until the cancellation is complete.
10907 - bpo-32684: Fix gather to propagate cancellation of itself even with
10910 - bpo-33654: Support protocol type switching in SSLTransport.set_protocol().
10912 - bpo-33674: Pause the transport as early as possible to further reduce the
10915 - bpo-33674: Fix a race condition in SSLProtocol.connection_made() of
10920 - bpo-31647: Fixed bug where calling write_eof() on a
10923 - bpo-32610: Make asyncio.all_tasks() return only pending tasks.
10925 - bpo-32410: Avoid blocking on file IO in sendfile fallback code
10927 - bpo-33469: Fix RuntimeError after closing loop that used run_in_executor
10929 - bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines
10931 - bpo-33654: Fix transport.set_protocol() to support switching between
10935 - bpo-33652: Pickles of type variables and subscripted generics are now
10936 future-proof and compatible with older Python versions.
10938 - bpo-32493: Fixed :func:`uuid.uuid1` on FreeBSD.
10940 - bpo-33618: Finalize and document preliminary and experimental TLS 1.3
10943 - bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__
10945 - bpo-30877: Fixed a bug in the Python implementation of the JSON decoder
10947 the decoding. Based on patch by c-fos.
10949 - bpo-33570: Change TLS 1.3 cipher suite settings for compatibility with
10950 OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 ciphers
10953 - bpo-28556: Do not simplify arguments to `typing.Union`. Now
10954 `Union[Manager, Employee]` is not simplified to `Employee` at runtime.
10958 - bpo-33540: Add a new ``block_on_close`` class attribute to
10961 - bpo-33548: tempfile._candidate_tempdir_list should consider common TEMP
10964 - bpo-33109: argparse subparsers are once again not required by default,
10965 reverting the change in behavior introduced by bpo-26510 in 3.7.0a2.
10967 - bpo-33536: dataclasses.make_dataclass now checks for invalid field names
10971 - bpo-33542: Prevent ``uuid.get_node`` from using a DUID instead of a MAC on
10974 - bpo-26819: Fix race condition with `ReadTransport.resume_reading` in
10977 - Fix failure in `typing.get_type_hints()` when ClassVar was provided as a
10980 - bpo-33505: Optimize asyncio.ensure_future() by reordering if checks: 1.17x
10983 - bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in
10987 - bpo-33495: Change dataclasses.Fields repr to use the repr of each of its
10989 actually represents. This is especially true for the 'type' member.
10991 - bpo-33453: Fix dataclasses to work if using literal string type
10996 - bpo-28556: Minor fixes in typing module: add annotations to
11000 - bpo-20087: Updated alias mapping with glibc 2.27 supported locales.
11002 - bpo-33422: Fix trailing quotation marks getting deleted when looking up
11005 - bpo-28167: The function ``platform.linux_distribution`` and
11009 - bpo-33197: Update error message when constructing invalid
11010 inspect.Parameters Patch by Dong-hee Na.
11012 - bpo-33263: Fix FD leak in `_SelectorSocketTransport` Patch by Vlad
11015 - bpo-32861: The urllib.robotparser's ``__str__`` representation now
11016 includes wildcard entries and the "Crawl-delay" and "Request-rate" fields.
11019 - bpo-32257: The ssl module now contains OP_NO_RENEGOTIATION constant,
11022 - bpo-16865: Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer.
11025 -------------
11027 - bpo-23859: Document that `asyncio.wait()` does not cancel its futures on
11030 - bpo-32436: Document :pep:`567` changes to asyncio.
11032 - bpo-33604: Update HMAC md5 default to a DeprecationWarning, bump removal
11035 - bpo-33503: Fix broken pypi link
11037 - bpo-33421: Add missing documentation for ``typing.AsyncContextManager``.
11040 -----
11042 - bpo-33655: Ignore test_posix_fallocate failures on BSD platforms that
11045 - bpo-32604: Remove the _xxsubinterpreters module (meant for testing) and
11049 -----
11051 - bpo-33614: Ensures module definition files for the stable ABI on Windows
11054 - bpo-33522: Enable CI builds on Visual Studio Team Services at
11057 - bpo-33012: Add ``-Wno-cast-function-type`` for gcc 8 for silencing
11062 -----
11064 - bpo-13631: The .editrc file in user's home directory is now processed
11069 ----
11071 - bpo-33628: IDLE: Cleanup codecontext.py and its test.
11073 - bpo-33564: IDLE's code context now recognizes async as a block opener.
11075 - bpo-32831: Add docstrings and tests for codecontext.
11081 *Release date: 2018-05-02*
11084 -----------------
11086 - bpo-33363: Raise a SyntaxError for ``async with`` and ``async for``
11089 - bpo-33128: Fix a bug that causes PathFinder to appear twice on
11092 - bpo-33312: Fixed clang ubsan (undefined behavior sanitizer) warnings in
11094 keys structure is declared.
11096 - bpo-33231: Fix potential memory leak in ``normalizestring()``.
11098 - bpo-33205: Change dict growth function from
11100 ``round_up_to_power_2(used*3)``. Previously, dict is shrinked only when
11103 - bpo-29922: Improved error messages in 'async with' when ``__aenter__()``
11104 or ``__aexit__()`` return non-awaitable object.
11106 - bpo-33199: Fix ``ma_version_tag`` in dict implementation is uninitialized
11107 when copying from key-sharing dict.
11110 -------
11112 - bpo-33281: Fix ctypes.util.find_library regression on macOS.
11114 - bpo-33383: Fixed crash in the get() method of the :mod:`dbm.ndbm` database
11115 object when it is called with a single argument.
11117 - bpo-33329: Fix multiprocessing regression on newer glibcs
11119 - bpo-991266: Fix quoting of the ``Comment`` attribute of
11122 - bpo-33131: Upgrade bundled version of pip to 10.0.1.
11124 - bpo-33308: Fixed a crash in the :mod:`parser` module when converting an ST
11128 - bpo-33266: lib2to3 now recognizes ``rf'...'`` strings.
11130 - bpo-11594: Ensure line-endings are respected when using lib2to3.
11132 - bpo-33254: Have :func:`importlib.resources.contents` and
11136 - bpo-33256: Fix display of ``<module>`` call in the html produced by
11139 - bpo-33185: Fixed regression when running pydoc with the :option:`-m`
11144 - bpo-33169: Delete entries of ``None`` in :data:`sys.path_importer_cache`
11145 when :meth:`importlib.machinery.invalidate_caches` is called.
11147 - bpo-33217: Deprecate looking up non-Enum objects in Enum classes and Enum
11150 - bpo-33203: ``random.Random.choice()`` now raises ``IndexError`` for empty
11154 - bpo-33224: Update difflib.mdiff() for :pep:`479`. Convert an uncaught
11155 StopIteration in a generator into a return-statement.
11157 - bpo-33209: End framing at the end of C implementation of
11160 - bpo-20104: Improved error handling and fixed a reference leak in
11163 - bpo-33175: In dataclasses, Field.__set_name__ now looks up the
11167 - bpo-33097: Raise RuntimeError when ``executor.submit`` is called during
11170 - bpo-31908: Fix output of cover files for ``trace`` module command-line
11171 tool. Previously emitted cover files only when ``--missing`` option was
11175 -------------
11177 - bpo-33378: Add Korean language switcher for https://docs.python.org/3/
11179 - bpo-33276: Clarify that the ``__path__`` attribute on modules cannot be
11182 - bpo-33201: Modernize documentation for writing C extension types.
11184 - bpo-33195: Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document.
11185 ``Py_UNICODE`` related APIs are deprecated since Python 3.3, but it is
11188 - bpo-8243: Add a note about curses.addch and curses.addstr exception
11191 - bpo-32337: Update documentation related with ``dict`` order.
11194 -----
11196 - bpo-33358: Fix ``test_embed.test_pre_initialization_sys_options()`` when
11197 the interpreter is built with ``--enable-shared``.
11200 -----
11202 - bpo-33394: Enable the verbose build for extension modules, when GNU make
11203 is passed macros on the command line.
11205 - bpo-33393: Update config.guess and config.sub files.
11207 - bpo-33377: Add new triplets for mips r6 and riscv variants (used in
11210 - bpo-32232: By default, modules configured in `Modules/Setup` are no longer
11211 built with `-DPy_BUILD_CORE`. Instead, modules that specifically need that
11214 - bpo-33182: The embedding tests can once again be built with clang 6.0
11217 -------
11219 - bpo-33184: Update Windows installer to use OpenSSL 1.1.0h.
11222 -----
11224 - bpo-33184: Update macOS installer build to use OpenSSL 1.1.0h.
11227 ----
11229 - bpo-21474: Update word/identifier definition from ascii to unicode. In
11230 text and entry boxes, this affects selection by double-click, movement
11231 left/right by control-left/right, and deletion left/right by
11232 control-BACKSPACE/DEL.
11234 - bpo-33204: IDLE: consistently color invalid string prefixes. A 'u' string
11236 of the prefix, starting at the right, as is valid. Revise and extend
11240 -----------
11242 - bpo-33189: :program:`pygettext.py` now recognizes only literal strings as
11244 f-string expressions.
11246 - bpo-31920: Fixed handling directories as arguments in the ``pygettext``
11249 - bpo-29673: Fix pystackv and pystack gdbinit macros.
11251 - bpo-31583: Fix 2to3 for using with --add-suffix option but without
11252 --output-dir option for relative path to files in current directory.
11258 *Release date: 2018-03-29*
11261 --------
11263 - bpo-33136: Harden ssl module against LibreSSL CVE-2018-8970.
11264 X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new
11267 - bpo-33001: Minimal fix to prevent buffer overrun in os.symlink on Windows
11269 - bpo-32981: Regexes in difflib and poplib were vulnerable to catastrophic
11271 have been refactored. This resolves CVE-2018-1060 and CVE-2018-1061. Patch
11275 -----------------
11277 - bpo-33053: When using the -m switch, sys.path[0] is now explicitly
11282 - bpo-33018: Improve consistency of errors raised by ``issubclass()`` when
11283 called with a non-class and an abstract base class as the first and second
11286 - bpo-33041: Fixed jumping when the function contains an ``async for`` loop.
11288 - bpo-33026: Fixed jumping out of "with" block by setting f_lineno.
11290 - bpo-33005: Fix a crash on fork when using a custom memory allocator (ex:
11295 - bpo-17288: Prevent jumps from 'return' and 'exception' trace events.
11297 - bpo-32836: Don't use temporary variables in cases of list/dict/set
11301 -------
11303 - bpo-33141: Have Field objects pass through __set_name__ to their default
11306 - bpo-33096: Allow ttk.Treeview.insert to insert iid that has a false
11310 - bpo-32873: Treat type variables and special typing forms as immutable by
11314 - bpo-33134: When computing dataclass's __hash__, use the lookup table to
11315 contain the function which returns the __hash__ value. This is an
11319 - bpo-33127: The ssl module now compiles with LibreSSL 2.7.1.
11321 - bpo-32505: Raise TypeError if a member variable of a dataclass is of type
11324 - bpo-33078: Fix the failure on OSX caused by the tests relying on
11327 - bpo-33116: Add 'Field' to dataclasses.__all__.
11329 - bpo-32896: Fix an error where subclassing a dataclass with a field that
11332 - bpo-33100: Dataclasses: If a field has a default value that's a
11336 - bpo-32953: If a non-dataclass inherits from a frozen dataclass, allow
11339 hierarchy to be either all frozen or all non-frozen.
11341 - bpo-33061: Add missing ``NoReturn`` to ``__all__`` in typing.py
11343 - bpo-33078: Fix the size handling in multiprocessing.Queue when a pickling
11346 - bpo-33064: lib2to3 now properly supports trailing commas after ``*args``
11349 - bpo-33056: FIX properly close leaking fds in
11352 - bpo-33021: Release the GIL during fstat() calls, avoiding hang of all
11356 - bpo-31804: Avoid failing in multiprocessing.Process if the standard
11359 - bpo-33037: Skip sending/receiving data after SSL transport closing.
11361 - bpo-27683: Fix a regression in :mod:`ipaddress` that result of
11362 :meth:`hosts` is empty when the network is constructed by a tuple
11365 - bpo-32999: Fix C implementation of ``ABC.__subclasscheck__(cls,
11366 subclass)`` crashed when ``subclass`` is not a type object.
11368 - bpo-33009: Fix inspect.signature() for single-parameter partialmethods.
11370 - bpo-32969: Expose several missing constants in zlib and fix corresponding
11373 - bpo-32056: Improved exceptions raised for invalid number of channels and
11377 - bpo-32844: Fix wrong redirection of a low descriptor (0 or 1) to stderr in
11378 subprocess if another low descriptor is closed.
11380 - bpo-32857: In :mod:`tkinter`, ``after_cancel(None)`` now raises a
11384 - bpo-31639: http.server now exposes a ThreadedHTTPServer class and uses it
11385 when the module is run with ``-m`` to cope with web browsers pre-opening
11388 - bpo-27645: :class:`sqlite3.Connection` now exposes a
11390 library is at version 3.6.11 or higher. Patch by Lele Gaifax.
11393 -------------
11395 - bpo-33126: Document PyBuffer_ToContiguous().
11397 - bpo-27212: Modify documentation for the :func:`islice` recipe to consume
11400 - bpo-28247: Update :mod:`zipapp` documentation to describe how to make
11403 - bpo-18802: Documentation changes for ipaddress. Patch by Jon Foster and
11406 - bpo-27428: Update documentation to clarify that ``WindowsRegistryFinder``
11410 -----
11412 - bpo-32872: Avoid regrtest compatibility issue with namespace packages.
11414 - bpo-32517: Fix failing ``test_asyncio`` on macOS 10.12.2+ due to transport
11417 - bpo-19417: Add test_bdb.py.
11420 -----
11422 - bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1.
11425 -------
11427 - bpo-33016: Fix potential use of uninitialized memory in
11430 - bpo-32903: Fix a memory leak in os.chdir() on Windows if the current
11431 directory is set to a UNC path.
11434 -----
11436 - bpo-32726: Build and link with private copy of Tcl/Tk 8.6 for the macOS
11439 longer need or use any external versions of Tcl/Tk, either system-provided
11440 or user-installed, such as ActiveTcl.
11443 ----
11445 - bpo-32984: Set ``__file__`` while running a startup file. Like Python,
11447 presenting the first interactive input prompt. For IDLE, ``-s`` runs a
11449 :envvar:`PYTHONSTARTUP`; ``-r file`` runs ``file``. Python sets
11452 without the ``-n`` option.
11454 - bpo-32940: Simplify and rename StringTranslatePseudoMapping in pyparse.
11457 -----------
11459 - bpo-32885: Add an ``-n`` flag for ``Tools/scripts/pathfix.py`` to disable
11463 -----
11465 - bpo-33042: Embedding applications may once again call
11469 - bpo-32374: Document that m_traverse for multi-phase initialized modules
11476 *Release date: 2018-02-27*
11479 --------
11481 - bpo-28414: The ssl module now allows users to perform their own IDN
11485 -----------------
11487 - bpo-32889: Update Valgrind suppression list to account for the rename of
11490 - bpo-31356: Remove the new API added in bpo-31356 (gc.ensure_disabled()
11493 - bpo-32305: For namespace packages, ensure that both ``__file__`` and
11496 - bpo-32303: Make sure ``__spec__.loader`` matches ``__loader__`` for
11499 - bpo-32711: Fix the warning messages for Python/ast_unparse.c. Patch by
11502 - bpo-32583: Fix possible crashing in builtin Unicode decoders caused by
11503 write out-of-bound errors when using customized decode error handlers.
11506 -------
11508 - bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen
11509 classes, and also disallow inheriting non-frozen from frozen classes. This
11512 - bpo-32713: Fixed tarfile.itn handling of out-of-bounds float values. Patch
11515 - bpo-32951: Direct instantiation of SSLSocket and SSLObject objects is now
11520 - bpo-32929: Remove the tri-state parameter "hash", and add the boolean
11521 "unsafe_hash". If unsafe_hash is True, add a __hash__ function, but if a
11522 __hash__ exists, raise TypeError. If unsafe_hash is False, add a __hash__
11523 based on the values of eq= and frozen=. The unsafe_hash=False behavior is
11524 the same as the old hash=None behavior. unsafe_hash=False is the default,
11527 - bpo-32947: Add OP_ENABLE_MIDDLEBOX_COMPAT and test workaround for TLSv1.3
11530 - bpo-30622: The ssl module now detects missing NPN support in LibreSSL.
11532 - bpo-32922: dbm.open() now encodes filename with the filesystem encoding
11535 - bpo-32859: In ``os.dup2``, don't check every call whether the ``dup3``
11538 - bpo-32556: nt._getfinalpathname, nt._getvolumepathname and
11541 - bpo-25988: Emit a :exc:`DeprecationWarning` when using or importing an ABC
11544 - bpo-21060: Rewrite confusing message from setup.py upload from "No dist
11548 - bpo-32852: Make sure sys.argv remains as a list when running trace.
11550 - bpo-31333: ``_abc`` module is added. It is a speedup module with C
11553 subclass are up to 1.5x faster. In addition, this makes Python start-up up
11560 - bpo-32841: Fixed `asyncio.Condition` issue which silently ignored
11564 - bpo-32819: ssl.match_hostname() has been simplified and no longer depends
11568 - bpo-32394: socket: Remove
11570 Windows during run-time.
11572 - bpo-31787: Fixed refleaks of ``__init__()`` methods in various modules.
11575 - bpo-30157: Fixed guessing quote and delimiter in csv.Sniffer.sniff() when
11576 only the last field is quoted. Patch by Jake Davis.
11578 - bpo-32792: collections.ChainMap() preserves the order of the underlying
11581 - bpo-32775: :func:`fnmatch.translate()` no longer produces patterns which
11582 contain set operations. Sets starting with '[' or containing '--', '&&',
11587 - bpo-32622: Implement native fast sendfile for Windows proactor event loop.
11589 - bpo-32777: Fix a rare but potential pre-exec child process deadlock in
11594 - bpo-32647: The ctypes module used to depend on indirect linking for
11595 dlopen. The shared extension is now explicitly linked against libdl on
11598 - bpo-32741: Implement ``asyncio.TimerHandle.when()`` method.
11600 - bpo-32691: Use mod_spec.parent when running modules with pdb
11602 - bpo-32734: Fixed ``asyncio.Lock()`` safety issue which allowed acquiring
11606 - bpo-32727: Do not include name field in SMTP envelope from address. Patch
11609 - bpo-31453: Add TLSVersion constants and SSLContext.maximum_version /
11614 - bpo-24334: Internal implementation details of ssl module were cleaned up.
11619 - bpo-31848: Fix the error handling in Aifc_read.initfp() when the SSND
11620 chunk is not found. Patch by Zackery Spytz.
11622 - bpo-32585: Add Ttk spinbox widget to :mod:`tkinter.ttk`. Patch by Alan D
11625 - bpo-32221: Various functions returning tuple containing IPv6 addresses now
11626 omit ``%scope`` part since the same information is already encoded in
11629 interface name is omitted.
11631 - bpo-30693: The TarFile class now recurses directories in a reproducible
11634 - bpo-30693: The ZipFile class now recurses directories in a reproducible
11638 -------------
11640 - bpo-28124: The ssl module function ssl.wrap_socket() has been
11641 de-emphasized and deprecated in favor of the more secure and efficient
11644 - bpo-17232: Clarify docs for -O and -OO. Patch by Terry Reedy.
11646 - bpo-32436: Add documentation for the contextvars module (PEP 567).
11648 - bpo-32800: Update link to w3c doc for xml default namespaces.
11650 - bpo-11015: Update :mod:`test.support` documentation.
11652 - bpo-8722: Document :meth:`__getattr__` behavior when property :meth:`get`
11655 - bpo-32614: Modify RE examples in documentation to use raw strings to
11659 - bpo-31972: Improve docstrings for `pathlib.PurePath` subclasses.
11662 -----
11664 - bpo-31809: Add tests to verify connection with secp ECDH curves.
11667 -----
11669 - bpo-32898: Fix the python debug build when using COUNT_ALLOCS.
11672 -------
11674 - bpo-32901: Update Tcl and Tk versions to 8.6.8
11676 - bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data.
11678 - bpo-32409: Ensures activate.bat can handle Unicode contents.
11680 - bpo-32457: Improves handling of denormalized executable path when
11683 - bpo-32370: Use the correct encoding for ipconfig output in the uuid
11686 - bpo-29248: Fix :func:`os.readlink` on Windows, which was mistakenly
11691 -----
11693 - bpo-32901: Update macOS 10.9+ installer to Tcl/Tk 8.6.8.
11696 ----
11698 - bpo-32916: Change ``str`` to ``code`` in pyparse.
11700 - bpo-32905: Remove unused code in pyparse module.
11702 - bpo-32874: Add tests for pyparse.
11704 - bpo-32837: Using the system and place-dependent default encoding for
11705 open() is a bad idea for IDLE's system and location-independent files.
11707 - bpo-32826: Add "encoding=utf-8" to open() in IDLE's test_help_about. GUI
11708 test test_file_buttons() only looks at initial ascii-only lines, but
11710 internally reads and decodes far enough ahead to encounter a non-ascii
11713 - bpo-32765: Update configdialog General tab docstring to add new widgets to
11717 -----------
11719 - bpo-32222: Fix pygettext not extracting docstrings for functions with type
11726 *Release date: 2018-01-30*
11729 -----------------
11731 - bpo-32703: Fix coroutine's ResourceWarning when there's an active error
11734 - bpo-32650: Pdb and other debuggers dependent on bdb.py will correctly step
11737 - bpo-28685: Optimize list.sort() and sorted() by using type specialized
11740 - bpo-32685: Improve suggestion when the Python 2 form of print statement is
11742 else terminated by a semi-colon instead of a newline. Patch by Nitish
11745 - bpo-32697: Python now explicitly preserves the definition order of
11746 keyword-only parameters. It's always preserved their order, but this
11747 behavior was never guaranteed before; this behavior is now guaranteed and
11750 - bpo-32690: The locals() dictionary now displays in the lexical order that
11753 - bpo-32677: Add ``.isascii()`` method to ``str``, ``bytes`` and
11757 - bpo-32670: Enforce :pep:`479` for all code. This means that manually
11758 raising a StopIteration exception from a generator is prohibited for all
11762 - bpo-32591: Added built-in support for tracking the origin of coroutine
11767 - bpo-31368: Expose preadv and pwritev system calls in the os module. Patch
11770 - bpo-32544: ``hasattr(obj, name)`` and ``getattr(obj, name, default)`` are
11771 about 4 times faster than before when ``name`` is not found and ``obj``
11774 - bpo-26163: Improved frozenset() hash to create more distinct hash values
11777 - bpo-32550: Remove the STORE_ANNOTATION bytecode.
11779 - bpo-20104: Expose posix_spawn as a low level API in the os module.
11782 - bpo-24340: Fixed estimation of the code stack size.
11784 - bpo-32436: Implement :pep:`567` Context Variables.
11786 - bpo-18533: ``repr()`` on a dict containing its own ``values()`` or
11791 - bpo-20891: Py_Initialize() now creates the GIL. The GIL is no longer
11792 created "on demand" to fix a race condition when PyGILState_Ensure() is
11793 called in a non-Python thread.
11795 - bpo-32028: Leading whitespace is now correctly ignored when generating
11799 - bpo-31179: Make dict.copy() up to 5.5 times faster.
11801 - bpo-31113: Get rid of recursion in the compiler for normal control flow.
11804 -------
11806 - bpo-25988: Deprecate exposing the contents of collections.abc in the
11809 - bpo-31429: The default cipher suite selection of the ssl module now uses a
11810 blacklist approach rather than a hard-coded whitelist. Python no longer
11811 re-enables ciphers that have been blocked by OpenSSL security update.
11814 - bpo-30306: contextlib.contextmanager now releases the arguments passed to
11815 the underlying generator as soon as the context manager is entered.
11820 - bpo-21417: Added support for setting the compression level for
11823 - bpo-32251: Implement asyncio.BufferedProtocol (provisional API).
11825 - bpo-32513: In dataclasses, allow easier overriding of dunder methods
11828 - bpo-32660: :mod:`termios` makes available ``FIONREAD``, ``FIONCLEX``,
11831 - bpo-27931: Fix email address header parsing error when the username is an
11834 - bpo-32659: Under Solaris and derivatives, :class:`os.stat_result` provides
11837 - bpo-32662: Implement Server.start_serving(), Server.serve_forever(), and
11841 - bpo-32391: Implement :meth:`asyncio.StreamWriter.wait_closed` and
11844 - bpo-32643: Make Task._step, Task._wakeup and Future._schedule_callbacks
11847 - bpo-32630: Refactor decimal module to use contextvars to store decimal
11850 - bpo-32622: Add :meth:`asyncio.AbstractEventLoop.sendfile` method.
11852 - bpo-32304: distutils' upload command no longer corrupts tar files ending
11856 - bpo-32502: uuid.uuid1 no longer raises an exception if a 64-bit hardware
11857 address is encountered.
11859 - bpo-32596: ``concurrent.futures`` imports ``ThreadPoolExecutor`` and
11864 - bpo-31801: Add ``_ignore_`` to ``Enum`` so temporary variables can be used
11867 - bpo-32576: Use queue.SimpleQueue() in places where it can be invoked from
11870 - bpo-32574: Fix memory leak in asyncio.Queue, when the queue has limited
11871 size and it is full, the cancelation of queue.put() can cause a memory
11874 - bpo-32521: The nis module is now compatible with new libnsl and headers
11877 - bpo-32467: collections.abc.ValuesView now inherits from
11880 - bpo-32473: Improve ABCMeta._dump_registry() output readability
11882 - bpo-32102: New argument ``capture_output`` for subprocess.run
11884 - bpo-32521: glibc has removed Sun RPC. Use replacement libtirpc headers and
11887 - bpo-32493: UUID module fixes build for FreeBSD/OpenBSD
11889 - bpo-32503: Pickling with protocol 4 no longer creates too small frames.
11891 - bpo-29237: Create enum for pstats sorting options
11893 - bpo-32454: Add close(fd) function to the socket module.
11895 - bpo-25942: The subprocess module is now more graceful when handling a
11896 Ctrl-C KeyboardInterrupt during subprocess.call, subprocess.run, or a
11902 - bpo-32433: The hmac module now has hmac.digest(), which provides an
11905 - bpo-28134: Sockets now auto-detect family, type and protocol from file
11908 - bpo-32404: Fix bug where :meth:`datetime.datetime.fromtimestamp` did not
11911 - bpo-32403: Improved speed of :class:`datetime.date` and
11914 - bpo-32228: Ensure that ``truncate()`` preserves the file position (as
11917 - bpo-32410: Implement ``loop.sock_sendfile`` for asyncio event loop.
11919 - bpo-22908: Added seek and tell to the ZipExtFile class. This only works if
11920 the file object used to open the zipfile is seekable.
11922 - bpo-32373: Add socket.getblocking() method.
11924 - bpo-32248: Add :mod:`importlib.resources` and
11928 File-based and zipimport-based loaders both implement these APIs.
11929 :class:`importlib.abc.ResourceLoader` is deprecated in favor of these new
11932 - bpo-32320: collections.namedtuple() now supports default values.
11934 - bpo-29302: Add contextlib.AsyncExitStack. Patch by Alexander Mohr and Ilya
11937 - bpo-31961: *Removed in Python 3.7.0b2.* The *args* argument of
11938 subprocess.Popen can now be a :term:`path-like object`. If *args* is given
11939 as a sequence, it's first element can now be a :term:`path-like object` as
11942 - bpo-31900: The :func:`locale.localeconv` function now sets temporarily the
11944 ``decimal_point`` and ``thousands_sep`` byte strings if they are non-ASCII
11945 or longer than 1 byte, and the ``LC_NUMERIC`` locale is different than the
11951 - bpo-31853: Use super().method instead of socket.method in SSLSocket. They
11954 - bpo-31399: The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host()
11959 - bpo-14976: Add a queue.SimpleQueue class, an unbounded FIFO queue with a
11963 -------------
11965 - bpo-32724: Add references to some commands in the documentation of Pdb.
11968 - bpo-32649: Complete the C API documentation, profiling and tracing part
11969 with the newly added per-opcode events.
11971 - bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile and
11972 their C-API counterparts regarding which type of events are received in
11976 -----
11978 - bpo-32721: Fix test_hashlib to not fail if the _md5 module is not built.
11980 - bpo-28414: Add test cases for IDNA 2003 and 2008 host names. IDNA 2003
11981 internationalized host names are working since bpo-31399 has landed. IDNA
11984 - bpo-32604: Add a new "_xxsubinterpreters" extension module that exposes
11985 the existing subinterpreter C-API and a new cross-interpreter data sharing
11986 mechanism. The module is primarily intended for more thorough testing of
11990 - bpo-32602: Add test certs and test for ECDSA cert and EC/RSA dual mode.
11992 - bpo-32549: On Travis CI, Python now Compiles and uses a local copy of
11996 -----
11998 - bpo-32635: Fix segfault of the crypt module when libxcrypt is provided
12001 - bpo-32598: Use autoconf to detect OpenSSL libs, headers and supported
12002 features. The ax_check_openssl M4 macro uses pkg-config to locate OpenSSL
12005 - bpo-32593: Drop support of FreeBSD 9 and older.
12007 - bpo-29708: If the :envvar:`SOURCE_DATE_EPOCH` environment variable is set,
12008 :mod:`py_compile` will always create hash-based ``.pyc`` files.
12011 -------
12013 - bpo-32588: Create standalone _distutils_findvs module and add missing
12016 - bpo-29911: Ensure separate Modify and Uninstall buttons are displayed.
12018 - bpo-32507: Use app-local UCRT install rather than the proper update for
12022 -----
12024 - bpo-32726: Provide an additional, more modern macOS installer variant that
12025 supports macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied
12026 third-party libraries to OpenSSL 1.1.0g and to SQLite 3.22.0. The 10.9+
12029 - bpo-28440: No longer add /Library/Python/3.x/site-packages to sys.path for
12033 -----
12035 - bpo-32681: Fix uninitialized variable 'res' in the C implementation of
12038 - bpo-10381: Add C API access to the ``datetime.timezone`` constructor and
12045 *Release date: 2018-01-08*
12048 -----------------
12050 - bpo-31975: The default warning filter list now starts with a
12052 once again shown by default in single-file scripts and at the interactive
12055 - bpo-32226: ``__class_getitem__`` is now an automatic class method.
12057 - bpo-32399: Add AIX uuid library support for RFC4122 using uuid_create() in
12060 - bpo-32390: Fix the compilation failure on AIX after the f_fsid field has
12064 - bpo-32379: Make MRO computation faster when a class inherits from a single
12067 - bpo-32259: The error message of a TypeError raised when unpack
12068 non-iterable is now more specific.
12070 - bpo-27169: The ``__debug__`` constant is now optimized out at compile
12071 time. This fixes also bpo-22091.
12073 - bpo-32329: The :option:`-R` option now turns on hash randomization when
12074 the :envvar:`PYTHONHASHSEED` environment variable is set to ``0``.
12076 ``sys.flags.hash_randomization`` is now properly set to 0 when hash
12077 randomization is turned off by ``PYTHONHASHSEED=0``.
12079 - bpo-30416: The optimizer is now protected from spending much time doing
12084 - bpo-32282: Fix an unnecessary ifdef in the include of VersionHelpers.h in
12087 - bpo-30579: Implement TracebackType.__new__ to allow Python-level creation
12090 - bpo-32260: Don't byte swap the input keys to the SipHash algorithm on
12091 big-endian platforms. This should ensure siphash gives consistent results
12094 - bpo-31506: Improve the error message logic for object.__new__ and
12097 - bpo-20361: ``-b`` and ``-bb`` now inject ``'default::BytesWarning'`` and
12100 ``-W`` option or the ``PYTHONWARNINGS`` environment variable.
12102 - bpo-32230: `-X dev` now injects a ``'default'`` entry into
12104 ``-Wdefault`` at the command line.
12106 - bpo-29240: Add a new UTF-8 mode: implementation of the :pep:`540`.
12108 - bpo-32226: :pep:`560`: Add support for ``__mro_entries__`` and
12111 - bpo-32225: :pep:`562`: Add support for module ``__getattr__`` and
12114 - bpo-31901: The `atexit` module now has its callback stored per
12117 - bpo-31650: Implement :pep:`552` (Deterministic pycs). Python now supports
12119 than source last-modified time.
12121 - bpo-29469: Move constant folding from bytecode layer to AST layer.
12125 -------
12127 - bpo-32506: Now that dict is defined as keeping insertion order, drop
12130 - bpo-32279: Add params to dataclasses.make_dataclasses(): init, repr, eq,
12133 - bpo-32278: Make type information optional on dataclasses.make_dataclass().
12134 If omitted, the string 'typing.Any' is used.
12136 - bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is
12139 - bpo-32468: Improve frame repr() to mention filename, code name and current
12142 - bpo-23749: asyncio: Implement loop.start_tls()
12144 - bpo-32441: Return the new file descriptor (i.e., the second argument) from
12147 - bpo-32422: ``functools.lru_cache`` uses less memory (3 words for each
12150 - bpo-31721: Prevent Python crash from happening when Future._log_traceback
12151 is set to True manually. Now it can only be set to False, or a ValueError
12152 is raised.
12154 - bpo-32415: asyncio: Add Task.get_loop() and Future.get_loop()
12156 - bpo-26133: Don't unsubscribe signals in asyncio UNIX event loop on
12159 - bpo-32363: Make asyncio.Task.set_exception() and set_result() raise
12164 - bpo-32357: Optimize asyncio.iscoroutine() and loop.create_task() for
12165 non-native coroutines (e.g. async/await compiled with Cython).
12167 'loop.create_task(cython_coroutine)'. Now, the latter is as fast.
12169 - bpo-32356: asyncio.transport.resume_reading() and pause_reading() are now
12170 idempotent. New transport.is_reading() method is added.
12172 - bpo-32355: Optimize asyncio.gather(); now up to 15% faster.
12174 - bpo-32351: Use fastpath in asyncio.sleep if delay<0 (2x boost)
12176 - bpo-32348: Optimize asyncio.Future schedule/add/remove callback. The
12177 optimization shows 3-6% performance improvements of async/await code.
12179 - bpo-32331: Fix socket.settimeout() and socket.setblocking() to keep
12180 socket.type as is. Fix socket.socket() constructor to reset any bit flags
12184 - bpo-32248: Add :class:`importlib.abc.ResourceReader` as an ABC for loaders
12189 - bpo-32311: Implement asyncio.create_task(coro) shortcut
12191 - bpo-32327: Convert asyncio functions that were documented as coroutines to
12195 - bpo-32323: :func:`urllib.parse.urlsplit()` does not convert zone-id
12198 - bpo-32302: Fix bdist_wininst of distutils for CRT v142: it binary
12201 - bpo-29711: Fix ``stop_serving`` in asyncio proactor loop kill all
12204 - bpo-32308: :func:`re.sub()` now replaces empty matches adjacent to a
12205 previous non-empty match.
12207 - bpo-29970: Abort asyncio SSLProtocol connection if handshake not complete
12210 - bpo-32314: Implement asyncio.run().
12212 - bpo-17852: Revert incorrect fix based on misunderstanding of
12215 - bpo-32296: Implement asyncio._get_running_loop() and get_event_loop() in
12218 - bpo-32250: Implement ``asyncio.current_task()`` and
12224 - bpo-32255: A single empty field is now always quoted when written into a
12228 - bpo-32277: Raise ``NotImplementedError`` instead of ``SystemError`` on
12229 platforms where ``chmod(..., follow_symlinks=False)`` is not supported.
12232 - bpo-30050: New argument warn_on_full_buffer to signal.set_wakeup_fd lets
12236 - bpo-29137: The ``fpectl`` library has been removed. It was never enabled
12237 by default, never worked correctly on x86-64, and it changed the Python
12240 - bpo-32273: Move asyncio.test_utils to test.test_asyncio.
12242 - bpo-32272: Remove asyncio.async() function.
12244 - bpo-32269: Add asyncio.get_running_loop() function.
12246 - bpo-32265: All class and static methods of builtin types now are correctly
12251 - bpo-32253: Deprecate ``yield from lock``, ``await lock``, ``with (yield
12255 - bpo-22589: Changed MIME type of .bmp from 'image/x-ms-bmp' to 'image/bmp'
12257 - bpo-32193: Convert asyncio to use *async/await* syntax. Old styled ``yield
12258 from`` is still supported too.
12260 - bpo-32206: Add support to run modules with pdb
12262 - bpo-32227: ``functools.singledispatch`` now supports registering
12265 - bpo-15873: Added new alternate constructors
12271 - bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link
12274 - bpo-32143: os.statvfs() includes the f_fsid field from statvfs(2)
12276 - bpo-26439: Fix ctypes.util.find_library() for AIX by implementing
12279 - bpo-31993: The pickler now uses less memory when serializing large bytes
12283 - bpo-27456: Ensure TCP_NODELAY is set on Linux. Tests by Victor Stinner.
12285 - bpo-31778: ast.literal_eval() is now more strict. Addition and subtraction
12288 - bpo-31802: Importing native path module (``posixpath``, ``ntpath``) now
12289 works even if the ``os`` module still is not imported.
12291 - bpo-30241: Add contextlib.AbstractAsyncContextManager. Patch by Jelle
12294 - bpo-31699: Fix deadlocks in
12299 - bpo-15216: ``TextIOWrapper.reconfigure()`` supports changing *encoding*,
12303 -------------
12305 - bpo-32418: Add get_loop() method to Server and AbstractServer classes.
12308 -----
12310 - bpo-32252: Fix faulthandler_suppress_crash_report() used to prevent core
12313 - bpo-32002: Adjust C locale coercion testing for the empty locale and POSIX
12317 -------
12319 - bpo-19764: Implement support for `subprocess.Popen(close_fds=True)` on
12323 -----------
12325 - bpo-24960: 2to3 and lib2to3 can now read pickled grammar files using
12330 -----
12332 - bpo-32030: Py_Initialize() doesn't reset the memory allocators to default
12333 if the ``PYTHONMALLOC`` environment variable is not set.
12335 - bpo-29084: Undocumented C API for OrderedDict has been excluded from the
12339 - bpo-32264: Moved the pygetopt.h header into internal/, since it has no
12342 - bpo-32241: :c:func:`Py_SetProgramName` and :c:func:`Py_SetPythonHome` now
12349 *Release date: 2017-12-05*
12352 -----------------
12354 - bpo-32176: co_flags.CO_NOFREE is now always set correctly by the code
12360 - bpo-10544: Yield expressions are now deprecated in comprehensions and
12362 outermost iterable, as that is evaluated directly in the enclosing scope.
12364 - bpo-32137: The repr of deeply nested dict now raises a RecursionError
12367 - bpo-32096: Revert memory allocator changes in the C API: move structures
12372 - bpo-32043: Add a new "developer mode": new "-X dev" command line option to
12375 - bpo-32023: SyntaxError is now correctly raised when a generator expression
12376 without parenthesis is used instead of an inheritance list in a class
12380 - bpo-32012: SyntaxError is now correctly raised when a generator expression
12381 without parenthesis is passed as an argument, but followed by a trailing
12385 - bpo-28180: A new internal ``_Py_SetLocaleFromEnv(category)`` helper
12390 - bpo-31949: Fixed several issues in printing tracebacks
12398 - bpo-30696: Fix the interactive interpreter looping endlessly when no
12401 - bpo-20047: Bytearray methods partition() and rpartition() now accept only
12402 bytes-like objects as separator, as documented. In particular they now
12403 raise TypeError rather of returning a bogus result when an integer is
12406 - bpo-21720: BytesWarning no longer emitted when the *fromlist* argument of
12410 - bpo-31845: Environment variables are once more read correctly at
12413 - bpo-28936: Ensure that lexically first syntax error involving a parameter
12414 and ``global`` or ``nonlocal`` is detected first at a given scope. Patch
12417 - bpo-31825: Fixed OverflowError in the 'unicode-escape' codec and in
12418 codecs.escape_decode() when decode an escaped non-ascii byte.
12420 - bpo-31618: The per-frame tracing logic added in 3.7a1 has been altered so
12421 that ``frame->f_lineno`` is updated before either ``"line"`` or
12428 - bpo-28603: Print the full context/cause chain of exceptions on interpreter
12429 exit, even if an exception in the chain is unhashable or compares equal to
12432 - bpo-31786: Fix timeout rounding in the select module to round correctly
12433 negative timeouts between -1.0 and 0.0. The functions now block waiting
12434 for events as expected. Previously, the call was incorrectly non-blocking.
12437 - bpo-31781: Prevent crashes when calling methods of an uninitialized
12440 - bpo-30399: Standard repr() of BaseException with a single argument no
12443 - bpo-31626: Fixed a bug in debug memory allocator. There was a write to
12446 - bpo-30817: `PyErr_PrintEx()` clears now the ignored exception that may be
12450 -------
12452 - bpo-28556: Two minor fixes for ``typing`` module: allow shallow copying
12456 - bpo-32214: PEP 557, Data Classes. Provides a decorator which adds
12460 - bpo-27240: The header folding algorithm for the new email policies has
12461 been rewritten, which also fixes bpo-30788, bpo-31831, and bpo-32182. In
12462 particular, RFC2231 folding is now done correctly.
12464 - bpo-32186: io.FileIO.readall() and io.FileIO.read() now release the GIL
12468 - bpo-321010: Add :attr:`sys.flags.dev_mode` flag
12470 - bpo-32154: The ``asyncio.windows_utils.socketpair()`` function has been
12471 removed: use directly :func:`socket.socketpair` which is available on all
12476 - bpo-32089: warnings: In development (-X dev) and debug mode (pydebug
12480 - bpo-32107: ``uuid.getnode()`` now preferentially returns universally
12484 addresses are available, the first such one found is returned.
12486 - bpo-23033: Wildcard is now supported in hostname when it is one and only
12487 character in the left most segment of hostname in second argument of
12490 - bpo-12239: Make :meth:`msilib.SummaryInformation.GetProperty` return
12491 ``None`` when the value of property is ``VT_EMPTY``. Initial patch by
12494 - bpo-28334: Use :func:`os.path.expanduser` to find the ``~/.netrc`` file in
12495 :class:`netrc.netrc`. If it does not exist, :exc:`FileNotFoundError` is
12498 - bpo-32121: Made ``tracemalloc.Traceback`` behave more like the traceback
12505 - bpo-31325: Fix wrong usage of :func:`collections.namedtuple` in the
12509 - bpo-12382: :func:`msilib.OpenDatabase` now raises a better exception
12513 - bpo-19610: ``setup()`` now warns about invalid types for some fields. The
12518 - bpo-32071: Added the ``-k`` command-line option to ``python -m unittest``
12521 - bpo-10049: Added *nullcontext* no-op context manager to contextlib. This
12525 - bpo-28684: The new test.support.skip_unless_bind_unix_socket() decorator
12526 is used here to skip asyncio tests that fail because the platform lacks a
12527 functional bind() function for unix domain sockets (as it is the case for
12531 - bpo-32110: ``codecs.StreamReader.read(n)`` now returns not more than *n*
12532 characters/bytes for non-negative *n*. This makes it compatible with
12533 ``read()`` methods of other file-like objects.
12535 - bpo-27535: The warnings module doesn't leak memory anymore in the hidden
12540 - bpo-32088: warnings: When Python is build is debug mode (``Py_DEBUG``),
12544 - bpo-1647489: Fixed searching regular expression patterns that could match
12545 an empty string. Non-empty string can now be correctly found after
12548 - bpo-25054: Added support of splitting on a pattern that could match an
12551 - bpo-32072: Fixed issues with binary plists: Fixed saving bytearrays.
12556 - bpo-32069: Drop legacy SSL transport from asyncio, ssl.MemoryBIO is always
12559 - bpo-32066: asyncio: Support pathlib.Path in create_unix_connection; sock
12562 - bpo-32046: Updates 2to3 to convert from operator.isCallable(obj) to
12563 callable(obj). Patch by Dong-hee Na.
12565 - bpo-32018: inspect.signature should follow :pep:`8`, if the parameter has
12566 an annotation and a default value. Patch by Dong-hee Na.
12568 - bpo-32025: Add time.thread_time() and time.thread_time_ns()
12570 - bpo-32037: Integers that fit in a signed 32-bit integer will be now
12575 - bpo-32034: Make asyncio.IncompleteReadError and LimitOverrunError
12578 - bpo-32015: Fixed the looping of asyncio in the case of reconnection the
12581 - bpo-32011: Restored support of loading marshal files with the TYPE_INT64
12584 - bpo-28369: Enhance add_reader/writer check that socket is not used by some
12586 int FD were supported. Now the check is implemented correctly for all
12587 file-like objects.
12589 - bpo-31976: Fix race condition when flushing a file is slow, which can
12592 - bpo-31985: Formally deprecated aifc.openfp, sunau.openfp, and wave.openfp.
12598 - bpo-21862: cProfile command line now accepts `-m module_name` as an
12601 - bpo-31970: Reduce performance overhead of asyncio debug mode.
12603 - bpo-31843: *database* argument of sqlite3.connect() now accepts a
12604 :term:`path-like object`, instead of just a string.
12606 - bpo-31945: Add Configurable *blocksize* to ``HTTPConnection`` and
12609 - bpo-31943: Add a ``cancelled()`` method to :class:`asyncio.Handle`. Patch
12612 - bpo-9678: Fixed determining the MAC address in the uuid module: Using
12616 - bpo-30057: Fix potential missed signal in signal.signal().
12618 - bpo-31933: Fix Blake2 params leaf_size and node_offset on big endian
12621 - bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor
12623 - bpo-31927: Fixed compilation of the socket module on NetBSD 8. Fixed
12627 - bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse()
12628 when the size of types chtype or mmask_t is less than the size of C long.
12632 - bpo-31917: Add 3 new clock identifiers: :data:`time.CLOCK_BOOTTIME`,
12635 - bpo-31897: plistlib now catches more errors when read binary plists and
12638 - bpo-25720: Fix the method for checking pad state of curses WINDOW. Patch
12641 - bpo-31893: Fixed the layout of the kqueue_event structure on OpenBSD and
12644 - bpo-31891: Fixed building the curses module on NetBSD.
12646 - bpo-31884: added required constants to subprocess module for setting
12649 - bpo-28281: Remove year (1-9999) limits on the Calendar.weekday() function.
12652 - bpo-31702: crypt.mksalt() now allows to specify the number of rounds for
12653 SHA-256 and SHA-512 hashing.
12655 - bpo-30639: :func:`inspect.getfile` no longer computes the repr of unknown
12659 - bpo-30768: Fix the pthread+semaphore implementation of
12661 intr_flag=0: recompute the timeout if sem_timedwait() is interrupted by a
12664 - bpo-31854: Add ``mmap.ACCESS_DEFAULT`` constant.
12666 - bpo-31834: Use optimized code for BLAKE2 only with SSSE3+. The pure SSE2
12667 implementation is slower than the pure C reference implementation.
12669 - bpo-28292: Calendar.itermonthdates() will now consistently raise an
12670 exception when a date falls outside of the 0001-01-01 through 9999-12-31
12676 - bpo-28564: The shutil.rmtree() function has been sped up to 20--40%. This
12679 - bpo-28416: Instances of pickle.Pickler subclass with the persistent_id()
12683 - bpo-31653: Don't release the GIL if we can acquire a multiprocessing
12686 - bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed
12689 - bpo-20825: Add `subnet_of` and `superset_of` containment tests to
12693 - bpo-31827: Remove the os.stat_float_times() function. It was introduced in
12697 - bpo-31756: Add a ``subprocess.Popen(text=False)`` keyword argument to
12701 - bpo-31819: Add AbstractEventLoop.sock_recv_into().
12703 - bpo-31457: If nested log adapters are used, the inner ``process()``
12706 - bpo-31457: The ``manager`` property on LoggerAdapter objects is now
12709 - bpo-31806: Fix timeout rounding in time.sleep(), threading.Lock.acquire()
12711 between -1.0 and 0.0. The functions now block waiting for events as
12712 expected. Previously, the call was incorrectly non-blocking. Patch by
12715 - bpo-31803: time.clock() and time.get_clock_info('clock') now emit a
12718 - bpo-31800: Extended support for parsing UTC offsets. strptime '%z' can now
12722 - bpo-28603: traceback: Fix a TypeError that occurred during printing of
12724 its context/cause chain is unhashable. Patch by Zane Bitter.
12726 - bpo-30541: Add new function to seal a mock and prevent the automatically
12729 - bpo-31784: Implement the :pep:`564`, add new 6 new functions with
12735 - bpo-30143: 2to3 now generates a code that uses abstract collection classes
12738 - bpo-31770: Prevent a crash when calling the ``__init__()`` method of a
12741 - bpo-31764: Prevent a crash in ``sqlite3.Cursor.close()`` in case the
12742 ``Cursor`` object is uninitialized. Patch by Oren Milman.
12744 - bpo-31752: Fix possible crash in timedelta constructor called with custom
12747 - bpo-31620: an empty asyncio.Queue now doesn't leak memory when queue.get
12750 - bpo-31690: Allow the flags re.ASCII, re.LOCALE, and re.UNICODE to be used
12753 - bpo-30349: FutureWarning is now emitted if a regular expression contains
12757 - bpo-31664: Added support for the Blowfish hashing in the crypt module.
12759 - bpo-31632: Fix method set_protocol() of class _SSLProtocolTransport in
12763 - bpo-15037: Added a workaround for getkey() in curses for ncurses 5.7 and
12766 - bpo-31307: Allow use of bytes objects for arguments to
12769 - bpo-31334: Fix ``poll.poll([timeout])`` in the ``select`` module for
12771 non-negative integer or -1. Patch by Riccardo Coccioli.
12773 - bpo-31310: multiprocessing's semaphore tracker should be launched again if
12776 - bpo-31308: Make multiprocessing's forkserver process immune to Ctrl-C and
12779 - bpo-31245: Added support for AF_UNIX socket in asyncio
12782 - bpo-30553: Add HTTP/2 status code 421 (Misdirected Request) to
12786 -------------
12788 - bpo-32105: Added asyncio.BaseEventLoop.connect_accepted_socket
12792 -----
12794 - bpo-31380: Skip test_httpservers test_undecodable_file on macOS: fails on
12797 - bpo-31705: Skip test_socket.test_sha256() on Linux kernel older than 4.5.
12801 - bpo-32138: Skip on Android test_faulthandler tests that raise SIGSEGV and
12804 - bpo-32136: The runtime embedding tests have been split out from
12807 - bpo-28668: test.support.requires_multiprocessing_queue is removed. Skip
12809 instead when the semaphore implementation is broken or missing.
12811 - bpo-32126: Skip test_get_event_loop_new_process in
12812 test.test_asyncio.test_events when sem_open() is not functional.
12814 - bpo-31174: Fix test_tools.test_unparse: DirectoryTestCase now stores the
12819 -----
12821 - bpo-28538: Revert the previous changes, the if_nameindex structure is
12824 - bpo-28762: Revert the last commit, the F_LOCK macro is defined by Android
12827 - bpo-29040: Support building Android with Unified Headers. The first NDK
12828 release to support Unified Headers is android-ndk-r14.
12830 - bpo-32059: ``detect_modules()`` in ``setup.py`` now also searches the
12831 sysroot paths when cross-compiling.
12833 - bpo-31957: Fixes Windows SDK version detection when building for Windows.
12835 - bpo-31609: Fixes quotes in PCbuild/clean.bat
12837 - bpo-31934: Abort the build when building out of a not clean source tree.
12839 - bpo-31926: Fixed Argument Clinic sometimes causing compilation errors when
12843 - bpo-28791: Update Windows builds to use SQLite 3.21.0.
12845 - bpo-28791: Update OS X installer to use SQLite 3.21.0.
12847 - bpo-28643: Record profile-opt build progress with stamp files.
12849 - bpo-31866: Finish removing support for AtheOS.
12852 -------
12854 - bpo-1102: Return ``None`` when ``View.Fetch()`` returns
12858 - bpo-31944: Fixes Modify button in Apps and Features dialog.
12860 - bpo-20486: Implement the ``Database.Close()`` method to help closing MSI
12863 - bpo-31857: Make the behavior of USE_STACKCHECK deterministic in a
12864 multi-threaded environment.
12867 -----
12869 - bpo-31392: Update macOS installer to use OpenSSL 1.0.2m
12872 ----
12874 - bpo-32207: Improve tk event exception tracebacks in IDLE. When tk event
12875 handling is driven by IDLE's run loop, a confusing and distracting
12876 queue.EMPTY traceback context is no longer added to tk event exception
12877 tracebacks. The traceback is now the same as when event handling is
12880 - bpo-32164: Delete unused file idlelib/tabbedpages.py. Use of TabbedPageSet
12883 - bpo-32100: IDLE: Fix old and new bugs in pathbrowser; improve tests. Patch
12886 - bpo-31858: IDLE -- Restrict shell prompt manipulation to the shell. Editor
12888 the code and fixes a minor bug when newline is inserted. Sys.ps1, if
12889 present, is read on Shell start-up, but is not set or changed.
12891 - bpo-31860: The font sample in the IDLE configuration dialog is now
12894 - bpo-31836: Test_code_module now passes if run after test_idle, which sets
12898 - bpo-28603: Fix a TypeError that caused a shell restart when printing a
12899 traceback that includes an exception that is unhashable. Patch by Zane
12902 - bpo-13802: Use non-Latin characters in the IDLE's Font settings sample.
12905 character. The expanded example give users of non-Latin characters a
12907 room for the expanded sample, frames on the Font tab are re-arranged. The
12911 -----------
12913 - bpo-32159: Remove CVS and Subversion tools: remove svneol.py and
12918 - bpo-30722: Make redemo work with Python 3.6 and newer versions. Also,
12923 -----
12925 - bpo-20891: Fix PyGILState_Ensure(). When PyGILState_Ensure() is called in
12926 a non-Python thread before PyEval_InitThreads(), only call
12929 - bpo-32125: The ``Py_UseClassExceptionsFlag`` flag has been removed. It was
12932 - bpo-25612: Move the current exception state from the frame object to the
12933 co-routine. This simplifies the interpreter and fixes a couple of obscure
12937 - bpo-23699: Add Py_RETURN_RICHCOMPARE macro to reduce boilerplate code in
12940 - bpo-30697: The `PyExc_RecursionErrorInst` singleton is removed and
12941 `PyErr_NormalizeException()` does not use it anymore. This singleton is
12949 *Release date: 2017-10-16*
12952 -----------------
12954 - bpo-31558: ``gc.freeze()`` is a new API that allows for moving all objects
12958 this enables great copy-on-write stability at fork().
12960 - bpo-31642: Restored blocking "from package import module" by setting
12963 - bpo-31708: Allow use of asynchronous generator expressions in synchronous
12966 - bpo-31709: Drop support of asynchronous __aiter__.
12968 - bpo-30404: The -u option now makes the stdout and stderr streams
12969 unbuffered rather than line-buffered.
12971 - bpo-31619: Fixed a ValueError when convert a string with large number of
12974 - bpo-31602: Fix an assertion failure in `zipimporter.get_source()` in case
12977 - bpo-31592: Fixed an assertion failure in Python parser in case of a bad
12980 - bpo-31588: Raise a `TypeError` with a helpful error message when class
12984 - bpo-31574: Importlib was instrumented with two dtrace probes to profile
12987 - bpo-31566: Fix an assertion failure in `_warnings.warn()` in case of a bad
12990 - bpo-31506: Improved the error message logic for object.__new__ and
12993 - bpo-31505: Fix an assertion failure in `json`, in case
12997 - bpo-31492: Fix assertion failures in case of failing to import from a
13001 - bpo-31478: Fix an assertion failure in `_random.Random.seed()` in case the
13004 - bpo-31336: Speed up class creation by 10-20% by reducing the overhead in
13007 - bpo-31415: Add ``-X importtime`` option to show how long each import
13011 - bpo-31410: Optimized calling wrapper and classmethod descriptors.
13013 - bpo-31353: :pep:`553` - Add a new built-in called ``breakpoint()`` which
13016 call whatever debugger they want. The original value of the hook is saved
13019 - bpo-17852: Maintain a list of open buffered files, flush them before
13022 - bpo-31315: Fix an assertion failure in imp.create_dynamic(), when
13023 spec.name is not a string. Patch by Oren Milman.
13025 - bpo-31311: Fix a crash in the ``__setstate__()`` method of
13028 - bpo-31293: Fix crashes in true division and multiplication of a timedelta
13032 - bpo-31285: Fix an assertion failure in `warnings.warn_explicit`, when the
13036 - bpo-30406: Make ``async`` and ``await`` proper keywords, as specified in
13040 -------
13042 - bpo-30058: Fixed buffer overflow in select.kqueue.control().
13044 - bpo-31672: ``idpattern`` in ``string.Template`` matched some non-ASCII
13045 characters. Now it uses ``-i`` regular expression local flag to avoid
13046 non-ASCII characters.
13048 - bpo-31701: On Windows, faulthandler.enable() now ignores MSC and COM
13051 - bpo-31728: Prevent crashes in `_elementtree` due to unsafe cleanup of
13054 - bpo-31671: Now ``re.compile()`` converts passed RegexFlag to normal int
13058 - bpo-30397: The types of compiled regular objects and match objects are now
13062 - bpo-31675: Fixed memory leaks in Tkinter's methods splitlist() and split()
13065 - bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo().
13067 - bpo-31648: Improvements to path predicates in ElementTree: Allow
13072 - bpo-30806: Fix the string representation of a netrc object.
13074 - bpo-31638: Add optional argument ``compressed`` to
13075 ``zipapp.create_archive``, and add option ``--compress`` to the command
13078 - bpo-25351: Avoid venv activate failures with undefined variables
13080 - bpo-20519: Avoid ctypes use (if possible) and improve import time for
13083 - bpo-28293: The regular expression cache is no longer completely dumped
13084 when it is full.
13086 - bpo-31596: Added pthread_getcpuclockid() to the time module
13088 - bpo-27494: Make 2to3 accept a trailing comma in generator expressions. For
13089 example, ``set(x for x in [],)`` is now allowed.
13091 - bpo-30347: Stop crashes when concurrently iterate over itertools.groupby()
13094 - bpo-30346: An iterator produced by itertools.groupby() iterator now
13097 - bpo-31556: Cancel asyncio.wait_for future faster if timeout <= 0
13099 - bpo-31540: Allow passing a context object in
13104 - bpo-31516: ``threading.current_thread()`` should not return a dummy thread
13107 - bpo-31525: In the sqlite module, require the sqlite3_prepare_v2 API. Thus,
13110 - bpo-26510: argparse subparsers are now required by default. This matches
13116 - bpo-27541: Reprs of subclasses of some collection and iterator classes
13121 - bpo-31351: python -m ensurepip now exits with non-zero exit code if pip
13124 - bpo-31389: ``pdb.set_trace()`` now takes an optional keyword-only argument
13125 ``header``. If given, this is printed to the console just before debugging
13129 -------------
13131 - bpo-31537: Fix incorrect usage of ``get_history_length`` in readline
13134 - bpo-30085: The operator functions without double underscores are preferred
13136 back-compatibility.
13139 -----
13141 - bpo-31696: Improve compiler version information in :data:`sys.version`
13142 when Python is built with Clang.
13144 - bpo-31625: Stop using ranlib on static libraries. Instead, we assume ar
13147 - bpo-31624: Remove support for BSD/OS.
13149 - bpo-22140: Prevent double substitution of prefix in python-config.sh.
13151 - bpo-31569: Correct PCBuild/ case to PCbuild/ in build scripts and
13154 - bpo-31536: Avoid wholesale rebuild after `make regen-all` if nothing
13158 ----
13160 - bpo-31460: Simplify the API of IDLE's Module Browser. Passing a widget
13162 browser frame that is only part of a window. Passing a full file name
13166 - bpo-31649: IDLE - Make _htest, _utest parameters keyword only.
13168 - bpo-31559: Remove test order dependence in idle_test.test_browser.
13170 - bpo-31459: Rename IDLE's module browser from Class Browser to Module
13171 Browser. The original module-level class and method browser became a
13172 module browser, with the addition of module-level functions, years ago.
13174 back-compatibility, the virtual event <<open-class-browser>>, which
13175 appears on the Keys tab of the Settings dialog, is not changed. Patch by
13178 - bpo-31500: Default fonts now are scaled on HiDPI displays.
13180 - bpo-1612262: IDLE module browser now shows nested classes and functions.
13185 -----
13187 - bpo-28280: Make `PyMapping_Keys()`, `PyMapping_Values()` and
13191 - bpo-31532: Fix memory corruption due to allocator mix in getpath.c between
13194 - bpo-25658: Implement :pep:`539` for Thread Specific Storage (TSS) API: it
13195 is a new Thread Local Storage (TLS) API to CPython which would supersede
13204 *Release date: 2017-09-19*
13207 --------
13209 - bpo-29781: SSLObject.version() now correctly returns None when handshake
13212 - bpo-29505: Add fuzz tests for float(str), int(str), unicode(str); for
13213 oss-fuzz.
13215 - bpo-30947: Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to
13218 - bpo-30730: Prevent environment variables injection in subprocess on
13222 - bpo-30694: Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple
13223 security vulnerabilities including: CVE-2017-9233 (External entity
13224 infinite loop DoS), CVE-2016-9063 (Integer overflow, re-fix),
13225 CVE-2016-0718 (Fix regression bugs from 2.2.0's fix to CVE-2016-0718) and
13226 CVE-2012-0876 (Counter hash flooding with SipHash). Note: the
13227 CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't
13231 - bpo-30500: Fix urllib.parse.splithost() to correctly parse fragments. For
13236 - bpo-29591: Update expat copy from 2.1.1 to 2.2.0 to get fixes of
13237 CVE-2016-0718 and CVE-2016-4472. See
13241 -----------------
13243 - bpo-31490: Fix an assertion failure in `ctypes` class definition, in case
13244 the class has an attribute whose name is specified in ``_anonymous_`` but
13247 - bpo-31471: Fix an assertion failure in `subprocess.Popen()` on Windows, in
13250 - bpo-31418: Fix an assertion failure in `PyErr_WriteUnraisable()` in case
13253 - bpo-31416: Fix assertion failures in case of a bad warnings.filters or
13256 - bpo-28411: Change direct usage of PyInterpreterState.modules to
13261 - bpo-28411: Switch to the abstract API when dealing with
13266 - bpo-31411: Raise a TypeError instead of SystemError in case
13267 warnings.onceregistry is not a dictionary. Patch by Oren Milman.
13269 - bpo-31344: For finer control of tracing behaviour when testing the
13272 default) to turn off per-line trace events; and ``f_trace_opcodes``
13273 (``False`` by default) to turn on per-opcode trace events.
13275 - bpo-31373: Fix several possible instances of undefined behavior due to
13276 floating-point demotions.
13278 - bpo-30465: Location information (``lineno`` and ``col_offset``) in
13279 f-strings is now (mostly) correct. This fixes tools like flake8 from
13282 - bpo-30860: Consolidate CPython's global runtime state under a single
13285 - bpo-31347: Fix possible undefined behavior in _PyObject_FastCall_Prepend.
13287 - bpo-31343: Include sys/sysmacros.h for major(), minor(), and makedev().
13290 - bpo-31291: Fix an assertion failure in `zipimport.zipimporter.get_data` on
13294 - bpo-31271: Fix an assertion failure in the write() method of
13298 - bpo-31243: Fix a crash in some methods of `io.TextIOWrapper`, when the
13299 decoder's state is invalid. Patch by Oren Milman.
13301 - bpo-30721: ``print`` now shows correct usage hint for using Python 2
13304 - bpo-31070: Fix a race condition in importlib _get_module_lock().
13306 - bpo-30747: Add a non-dummy implementation of _Py_atomic_store and
13309 - bpo-31095: Fix potential crash during GC caused by ``tp_dealloc`` which
13312 - bpo-31071: Avoid masking original TypeError in call with * unpacking when
13315 - bpo-30978: str.format_map() now passes key lookup exceptions through.
13318 - bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state.
13320 - bpo-30876: Relative import from unloaded package now reimports the package
13321 instead of failing with SystemError. Relative import from non-package now
13324 - bpo-30703: Improve signal delivery. Avoid using Py_AddPendingCall from
13325 signal handler, to avoid calling signal-unsafe functions. The tests I'm
13329 - bpo-30765: Avoid blocking in pthread_mutex_lock() when
13330 PyThread_acquire_lock() is asked not to block.
13332 - bpo-31161: Make sure the 'Missing parentheses' syntax error message is
13335 - bpo-30814: Fixed a race condition when import a submodule from a package.
13337 - bpo-30736: The internal unicodedata database has been upgraded to Unicode
13340 - bpo-30604: Move co_extra_freefuncs from per-thread to per-interpreter to
13343 - bpo-30597: ``print`` now shows expected input in custom error message when
13346 - bpo-30682: Removed a too-strict assertion that failed for certain
13347 f-strings, such as eval("f'\\\n'") and eval("f'\\\r'").
13349 - bpo-30501: The compiler now produces more optimal code for complex
13353 - bpo-28180: Implement :pep:`538` (legacy C locale coercion). This means
13354 that when a suitable coercion target locale is available, both the core
13355 interpreter and locale-aware C extensions will assume the use of UTF-8 as
13358 - bpo-30486: Allows setting cell values for __closure__. Patch by Lisa
13361 - bpo-30537: itertools.islice now accepts integer-like objects (having an
13364 - bpo-25324: Tokens needed for parsing in Python moved to C. ``COMMENT``,
13368 - bpo-29104: Fixed parsing backslashes in f-strings.
13370 - bpo-27945: Fixed various segfaults with dict when input collections are
13374 - bpo-25794: Fixed type.__setattr__() and type.__delattr__() for
13375 non-interned attribute names. Based on patch by Eryk Sun.
13377 - bpo-30039: If a KeyboardInterrupt happens when the interpreter is in the
13381 - bpo-28974: ``object.__format__(x, '')`` is now equivalent to ``str(x)``
13384 - bpo-30024: Circular imports involving absolute imports with binding a
13387 - bpo-12414: sys.getsizeof() on a code object now returns the sizes which
13389 by Dong-hee Na.
13391 - bpo-29839: len() now raises ValueError rather than OverflowError if
13394 - bpo-11913: README.rst is now included in the list of distutils standard
13397 - bpo-29914: Fixed default implementations of __reduce__ and
13401 - bpo-29949: Fix memory usage regression of set and frozenset object.
13403 - bpo-29935: Fixed error messages in the index() method of tuple, list and
13406 - bpo-29816: Shift operation now has less opportunity to raise
13407 OverflowError. ValueError always is raised rather than OverflowError for
13408 negative counts. Shifting zero with non-negative count always returns
13411 - bpo-24821: Fixed the slowing down to 25 times in the searching of some
13414 - bpo-29102: Add a unique ID to PyInterpreterState. This makes it easier to
13417 - bpo-29894: The deprecation warning is emitted if __complex__ returns an
13421 - bpo-29859: Show correct error messages when any of the pthread_* calls in
13424 - bpo-29849: Fix a memory leak when an ImportError is raised during from
13427 - bpo-28856: Fix an oversight that %b format for bytes should support
13430 - bpo-29723: The ``sys.path[0]`` initialization change for bpo-29139 caused
13431 a regression by revealing an inconsistency in how sys.path is initialized
13438 - bpo-29568: Escaped percent "%%" in the format string for classic string
13441 - bpo-29714: Fix a regression that bytes format may fail when containing
13444 - bpo-29695: bool(), float(), list() and tuple() no longer take keyword
13448 - bpo-28893: Set correct __cause__ for errors about invalid awaitables
13451 - bpo-28876: ``bool(range)`` works even if ``len(range)`` raises
13454 - bpo-29683: Fixes to memory allocation in _PyCode_SetExtra. Patch by Brian
13457 - bpo-29684: Fix minor regression of PyEval_CallObjectWithKeywords. It
13458 should raise TypeError when kwargs is not a dict. But it might cause segv
13459 when args=NULL and kwargs is not a dict.
13461 - bpo-28598: Support __rmod__ for subclasses of str being called before
13464 - bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX. Patch by
13467 - bpo-29602: Fix incorrect handling of signed zeros in complex constructor
13471 - bpo-29347: Fixed possibly dereferencing undefined pointers when creating
13474 - bpo-29463: Add ``docstring`` field to Module, ClassDef, FunctionDef, and
13475 AsyncFunctionDef ast nodes. docstring is not first stmt in their body
13479 - bpo-29438: Fixed use-after-free problem in key sharing dict.
13481 - bpo-29546: Set the 'path' and 'name' attribute on ImportError for ``from
13484 - bpo-29546: Improve from-import error message with location
13486 - bpo-29478: If max_line_length=None is specified while using the Compat32
13487 policy, it is no longer ignored. Patch by Mircea Cosbuc.
13489 - bpo-29319: Prevent RunMainFromImporter overwriting sys.path[0].
13491 - bpo-29337: Fixed possible BytesWarning when compare the code objects.
13494 - bpo-29327: Fixed a crash when pass the iterable keyword argument to
13497 - bpo-29034: Fix memory leak and use-after-free in os module
13500 - bpo-29159: Fix regression in bytes(x) when x.__index__() raises Exception.
13502 - bpo-29049: Call _PyObject_GC_TRACK() lazily when calling Python function.
13503 Calling function is up to 5% faster.
13505 - bpo-28927: bytes.fromhex() and bytearray.fromhex() now ignore all ASCII
13508 - bpo-28932: Do not include <sys/random.h> if it does not exist.
13510 - bpo-25677: Correct the positioning of the syntax error caret for indented
13513 - bpo-29000: Fixed bytes formatting of octals with zero padding in alternate
13516 - bpo-18896: Python function can now have more than 255 parameters.
13519 - bpo-28596: The preferred encoding is UTF-8 on Android. Patch written by
13522 - bpo-22257: Clean up interpreter startup (see :pep:`432`).
13524 - bpo-26919: On Android, operating system data is now always encoded/decoded
13525 to/from UTF-8, instead of the locale encoding to avoid inconsistencies
13526 with os.fsencode() and os.fsdecode() which are already using UTF-8.
13528 - bpo-28991: functools.lru_cache() was susceptible to an obscure reentrancy
13529 bug triggerable by a monkey-patched len() function.
13531 - bpo-28147: Fix a memory leak in split-table dictionaries: setattr() must
13534 - bpo-28739: f-string expressions are no longer accepted as docstrings and
13537 - bpo-28512: Fixed setting the offset attribute of SyntaxError by
13540 - bpo-28918: Fix the cross compilation of xxlimited when Python has been
13543 - bpo-23722: Rather than silently producing a class that doesn't support
13544 zero-argument ``super()`` in methods, failing to pass the new
13546 ``DeprecationWarning`` and a class that supports zero-argument
13549 - bpo-28797: Modifying the class __dict__ inside the __set_name__ method of
13550 a descriptor that is used inside that class no longer prevents calling the
13553 - bpo-28799: Remove the ``PyEval_GetCallStats()`` function and deprecate the
13558 - bpo-12844: More than 255 arguments can now be passed to a function.
13560 - bpo-28782: Fix a bug in the implementation ``yield from`` when checking if
13561 the next instruction is YIELD_FROM. Regression introduced by WORDCODE
13564 - bpo-28774: Fix error position of the unicode error in ASCII and Latin1
13566 non-encodable characters (non-ASCII for the ASCII codec, characters out of
13567 the U+0000-U+00FF range for Latin1).
13569 - bpo-28731: Optimize _PyDict_NewPresized() to create correct size dict.
13572 - bpo-28532: Show sys.version when -V option is supplied twice.
13574 - bpo-27100: The with-statement now checks for __enter__ before it checks
13578 - bpo-28746: Fix the set_inheritable() file descriptor method on platforms
13581 - bpo-26920: Fix not getting the locale's charset upon initializing the
13584 - bpo-28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
13587 - bpo-28665: Improve speed of the STORE_DEREF opcode by 40%.
13589 - bpo-19398: Extra slash no longer added to sys.path components in case of
13590 empty compile-time PYTHONPATH components.
13592 - bpo-28621: Sped up converting int to float by reusing faster bits counting
13595 - bpo-28580: Optimize iterating split table values. Patch by Xiang Zhang.
13597 - bpo-28583: PyDict_SetDefault didn't combine split table when needed. Patch
13600 - bpo-28128: Deprecation warning for invalid str and byte escape sequences
13604 - bpo-28509: dict.update() no longer allocate unnecessary large memory.
13606 - bpo-28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug
13609 - bpo-28517: Fixed of-by-one error in the peephole optimizer that caused
13612 - bpo-28214: Improved exception reporting for problematic __set_name__
13615 - bpo-23782: Fixed possible memory leak in _PyTraceback_Add() and exception
13618 - bpo-28183: Optimize and cleanup dict iteration.
13620 - bpo-26081: Added C implementation of asyncio.Future. Original patch by
13623 - bpo-28379: Added sanity checks and tests for PyUnicode_CopyCharacters().
13626 - bpo-28376: The type of long range iterator is now registered as Iterator.
13629 - bpo-28376: Creating instances of range_iterator by calling range_iterator
13630 type now is disallowed. Calling iter() on range instance is the only way.
13633 - bpo-26906: Resolving special methods of uninitialized type now causes
13636 - bpo-18287: PyType_Ready() now checks that tp_name is not NULL. Original
13639 - bpo-24098: Fixed possible crash when AST is changed in process of
13642 - bpo-28201: Dict reduces possibility of 2nd conflict in hash table when
13645 - bpo-28350: String constants with null character no longer interned.
13647 - bpo-26617: Fix crash when GC runs during weakref callbacks.
13649 - bpo-27942: String constants now interned recursively in tuples and
13652 - bpo-28289: ImportError.__init__ now resets not specified attributes.
13654 - bpo-21578: Fixed misleading error message when ImportError called with
13657 - bpo-28203: Fix incorrect type in complex(1.0, {2:3}) error message. Patch
13660 - bpo-28086: Single var-positional argument of tuple subtype was passed
13661 unscathed to the C-defined function. Now it is converted to exact tuple.
13663 - bpo-28214: Now __set_name__ is looked up on the class instead of the
13666 - bpo-27955: Fallback on reading /dev/urandom device when the getrandom()
13669 - bpo-28192: Don't import readline in isolated mode.
13671 - bpo-27441: Remove some redundant assignments to ob_size in longobject.c.
13674 - bpo-27222: Clean up redundant code in long_rshift function. Thanks Oren
13677 - Upgrade internal unicode databases to Unicode version 9.0.0.
13679 - bpo-28131: Fix a regression in zipimport's compile_source(). zipimport
13682 - bpo-28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly
13685 - bpo-28120: Fix dict.pop() for splitted dictionary when trying to remove a
13686 "pending key" (Not yet inserted in split-table). Patch by Xiang Zhang.
13688 - bpo-26182: Raise DeprecationWarning when async and await keywords are used
13691 - bpo-26182: Fix a refleak in code that raises DeprecationWarning.
13693 - bpo-28721: Fix asynchronous generators aclose() and athrow() to handle
13696 - bpo-26110: Speed-up method calls: add LOAD_METHOD and CALL_METHOD opcodes.
13699 -------
13701 - bpo-31499: xml.etree: Fix a crash when a parser is part of a reference
13704 - bpo-31482: ``random.seed()`` now works with bytes in version=1
13706 - bpo-28556: typing.get_type_hints now finds the right globalns for classes
13709 - bpo-28556: Speed improvements to the ``typing`` module. Original PRs by
13712 - bpo-31544: The C accelerator module of ElementTree ignored exceptions
13715 - bpo-31234: socket.create_connection() now fixes manually a reference
13718 - bpo-31457: LoggerAdapter objects can now be nested.
13720 - bpo-31431: SSLContext.check_hostname now automatically sets
13724 - bpo-31233: socketserver.ThreadingMixIn now keeps a list of non-daemonic
13727 - bpo-28638: Changed the implementation strategy for
13733 depending on how it is measured), and 3) minor speed-ups for instance
13735 contributor is Jelle Zijlstra with further improvements by INADA Naoki,
13738 - bpo-31400: Improves SSL error handling to avoid losing error numbers.
13740 - bpo-27629: Make return types of SSLContext.wrap_bio() and
13743 - bpo-28958: ssl.SSLContext() now uses OpenSSL error information when a
13746 - bpo-28182: The SSL module now raises SSLCertVerificationError when OpenSSL
13750 - bpo-27340: SSLSocket.sendall() now uses memoryview to create slices of
13751 data. This fixes support for all bytes-like object. It is also more
13754 - bpo-14191: A new function
13759 - bpo-31178: Fix string concatenation bug in rare error path in the
13762 - bpo-31350: Micro-optimize :func:`asyncio._get_running_loop` to become up
13765 - bpo-31170: expat: Update libexpat from 2.2.3 to 2.2.4. Fix copying of
13766 partial characters for UTF-8 input (libexpat bug 115):
13769 - bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3.
13771 - bpo-1198569: ``string.Template`` subclasses can optionally define
13776 - bpo-31326: concurrent.futures.ProcessPoolExecutor.shutdown() now
13780 - bpo-27144: The ``map()`` and ``as_completed()`` iterators in
13783 - bpo-31281: Fix ``fileinput.FileInput(files, inplace=True)`` when ``files``
13786 - bpo-10746: Fix ctypes producing wrong :pep:`3118` type codes for integer
13789 - bpo-27584: ``AF_VSOCK`` has been added to the socket interface which
13792 - bpo-22536: The subprocess module now sets the filename when
13793 FileNotFoundError is raised on POSIX systems due to the executable or cwd
13796 - bpo-29741: Update some methods in the _pyio module to also accept integer
13799 - bpo-31249: concurrent.futures: WorkItem.run() used by ThreadPoolExecutor
13803 - bpo-31247: xmlrpc.server now explicitly breaks reference cycles when using
13806 - bpo-23835: configparser: reading defaults in the ``ConfigParser()``
13807 constructor is now using ``read_dict()``, making its behavior consistent
13808 with the rest of the parser. Non-string keys and values in the defaults
13812 - bpo-31238: pydoc: the stop() method of the private ServerThread class now
13816 - bpo-5001: Many asserts in `multiprocessing` are now more informative, and
13819 - bpo-31109: Convert zipimport to use Argument Clinic.
13821 - bpo-30102: The ssl and hashlib modules now call
13824 such as POWER8. Patch is based on research from Gustavo Serra Scalet.
13826 - bpo-18966: Non-daemonic threads created by a multiprocessing.Process are
13829 - bpo-31183: `dis` now works with asynchronous generator and coroutine
13832 - bpo-5001: There are a number of uninformative asserts in the
13834 the most potentially problematic ones, since they are in error-reporting
13837 problematic change is that the AssertionError is now a TypeError; however,
13839 *reported* by the function/its caller (such as in issue 31169). - Patch by
13842 - bpo-31185: Fixed miscellaneous errors in asyncio speedup module.
13844 - bpo-31151: socketserver.ForkingMixIn.server_close() now waits until all
13847 - bpo-31072: Add an ``include_file`` parameter to
13850 - bpo-24700: Optimize array.array comparison. It is now from 10x up to 70x
13853 - bpo-31135: ttk: fix the destroy() method of LabeledScale and OptionMenu
13859 - bpo-31107: Fix `copyreg._slotnames()` mangled attribute calculation for
13862 - bpo-31080: Allow `logging.config.fileConfig` to accept kwargs and/or args.
13864 - bpo-30897: ``pathlib.Path`` objects now include an ``is_mount()`` method
13865 (only implemented on POSIX). This is similar to ``os.path.ismount(p)``.
13868 - bpo-31061: Fixed a crash when using asyncio and threads.
13870 - bpo-30987: Added support for CAN ISO-TP protocol in the socket module.
13872 - bpo-30522: Added a ``setStream`` method to ``logging.StreamHandler`` to
13875 - bpo-30502: Fix handling of long oids in ssl. Based on patch by Christian
13878 - bpo-5288: Support tzinfo objects with sub-minute offsets.
13880 - bpo-30919: Fix shared memory performance regression in multiprocessing in
13884 - bpo-26732: Fix too many fds in processes started with the "forkserver"
13886 still-running children.
13888 - bpo-29403: Fix ``unittest.mock``'s autospec to not fail on method-bound
13891 - bpo-30961: Fix decrementing a borrowed reference in tracemalloc.
13893 - bpo-19896: Fix multiprocessing.sharedctypes to recognize typecodes ``'q'``
13896 - bpo-30946: Remove obsolete code in readline module for platforms where GNU
13897 readline is older than 2.1 or where select() is not available.
13899 - bpo-25684: Change ``ttk.OptionMenu`` radiobuttons to be unique across
13902 - bpo-30886: Fix multiprocessing.Queue.join_thread(): it now waits until the
13906 - bpo-29854: Fix segfault in readline when using readline's history-size
13909 - bpo-30794: Added multiprocessing.Process.kill method to terminate using
13912 - bpo-30319: socket.close() now ignores ECONNRESET error.
13914 - bpo-30828: Fix out of bounds write in
13917 - bpo-30302: Use keywords in the ``repr`` of ``datetime.timedelta``.
13919 - bpo-30807: signal.setitimer() may disable the timer when passed a tiny
13920 value. Tiny values (such as 1e-6) are valid non-zero values for
13921 setitimer(), which is specified as taking microsecond-resolution
13923 1e-6 into a zero interval, therefore disabling the timer instead of
13924 (re-)scheduling it.
13926 - bpo-30441: Fix bug when modifying os.environ while iterating over it
13928 - bpo-29585: Avoid importing ``sysconfig`` from ``site`` to improve startup
13929 speed. Python startup is about 5% faster on Linux and 30% faster on macOS.
13931 - bpo-29293: Add missing parameter "n" on
13937 - bpo-30532: Fix email header value parser dropping folding white space in
13940 - bpo-30596: Add a ``close()`` method to ``multiprocessing.Process``.
13942 - bpo-9146: Fix a segmentation fault in _hashopenssl when standard hash
13944 in some special FIPS-140 build environments.
13946 - bpo-29169: Update zlib to 1.2.11.
13948 - bpo-30119: ftplib.FTP.putline() now throws ValueError on commands that
13949 contains CR or LF. Patch by Dong-hee Na.
13951 - bpo-30879: os.listdir() and os.scandir() now emit bytes names when called
13952 with bytes-like argument.
13954 - bpo-30746: Prohibited the '=' character in environment variable names in
13957 - bpo-30664: The description of a unittest subtest now preserves the order
13960 - bpo-21071: struct.Struct.format type is now :class:`str` instead of
13963 - bpo-29212: Fix concurrent.futures.thread.ThreadPoolExecutor threads to
13965 is supplied. They will now identify themselves as
13966 "ThreadPoolExecutor-y_n".
13968 - bpo-29755: Fixed the lgettext() family of functions in the gettext module.
13971 - bpo-30616: Functional API of enum allows to create empty enums. Patched by
13972 Dong-hee Na
13974 - bpo-30038: Fix race condition between signal delivery and wakeup file
13977 - bpo-23894: lib2to3 now recognizes ``rb'...'`` and ``f'...'`` strings.
13979 - bpo-24744: pkgutil.walk_packages function now raises ValueError if *path*
13980 is a string. Patch by Sanyam Khurana.
13982 - bpo-24484: Avoid race condition in multiprocessing cleanup.
13984 - bpo-30589: Fix multiprocessing.Process.exitcode to return the opposite of
13985 the signal number when the process is killed by a signal (instead of 255)
13988 - bpo-28994: The traceback no longer displayed for SystemExit raised in a
13991 - bpo-30508: Don't log exceptions if Task/Future "cancel()" method was
13994 - bpo-30645: Fix path calculation in `imp.load_package()`, fixing it for
13995 cases when a package is only shipped with bytecodes. Patch by Alexandru
13998 - bpo-11822: The dis.dis() function now is able to disassemble nested code
14001 - bpo-30624: selectors does not take KeyboardInterrupt and SystemExit into
14005 - bpo-30595: multiprocessing.Queue.get() with a timeout now polls its reader
14006 in non-blocking mode if it succeeded to acquire the lock but the acquire
14009 - bpo-28556: Updates to typing module: Add generic AsyncContextManager, add
14013 - bpo-30605: re.compile() no longer raises a BytesWarning when compiling a
14016 - bpo-29870: Fix ssl sockets leaks when connection is aborted in asyncio/ssl
14019 - bpo-29743: Closing transport during handshake process leaks open socket.
14022 - bpo-27585: Fix waiter cancellation in asyncio.Lock. Patch by Mathieu
14025 - bpo-30014: modify() method of poll(), epoll() and devpoll() based classes
14026 of selectors module is around 10% faster. Patch by Giampaolo Rodola'.
14028 - bpo-30418: On Windows, subprocess.Popen.communicate() now also ignore
14029 EINVAL on stdin.write() if the child process is still running but closed
14032 - bpo-30463: Addded empty __slots__ to abc.ABC. This allows subclassers to
14035 - bpo-30520: Loggers are now pickleable.
14037 - bpo-30557: faulthandler now correctly filters and displays exception codes
14040 - bpo-30526: Add TextIOWrapper.reconfigure() and a
14043 - bpo-30245: Fix possible overflow when organize struct.pack_into error
14046 - bpo-30378: Fix the problem that logging.handlers.SysLogHandler cannot
14049 - bpo-16500: Allow registering at-fork handlers.
14051 - bpo-30470: Deprecate invalid ctypes call protection on Windows. Patch by
14054 - bpo-30414: multiprocessing.Queue._feed background running thread do not
14057 - bpo-30003: Fix handling escape characters in HZ codec. Based on patch by
14060 - bpo-30149: inspect.signature() now supports callables with
14061 variable-argument parameters wrapped with partialmethod. Patch by Dong-hee
14064 - bpo-30436: importlib.find_spec() raises ModuleNotFoundError instead of
14065 AttributeError if the specified parent module is not a package (i.e. lacks
14068 - bpo-30301: Fix AttributeError when using SimpleQueue.empty() under *spawn*
14071 - bpo-30375: Warnings emitted when compile a regular expression now always
14075 - bpo-30329: imaplib and poplib now catch the Windows socket WSAEINVAL error
14079 - bpo-29196: Removed previously deprecated in Python 2.4 classes Plist, Dict
14084 - bpo-9850: The :mod:`macpath` is now deprecated and will be removed in
14087 - bpo-30299: Compiling regular expression in debug mode on CPython now
14090 - bpo-30048: Fixed ``Task.cancel()`` can be ignored when the task is running
14093 - bpo-30266: contextlib.AbstractContextManager now supports
14094 anti-registration by setting __enter__ = None or __exit__ = None,
14095 following the pattern introduced in bpo-25958. Patch by Jelle Zijlstra.
14097 - bpo-30340: Enhanced regular expressions optimization. This increased the
14100 - bpo-30298: Weaken the condition of deprecation warnings for inline
14106 - bpo-30285: Optimized case-insensitive matching and searching of regular
14109 - bpo-29990: Fix range checking in GB18030 decoder. Original patch by Ma
14112 - bpo-29979: rewrite cgi.parse_multipart, reusing the FieldStorage class and
14114 multipart/form-data requests. Patch by Pierre Quentel.
14116 - bpo-30243: Removed the __init__ methods of _json's scanner and encoder.
14120 - bpo-30215: Compiled regular expression objects with the re.LOCALE flag no
14124 - bpo-30185: Avoid KeyboardInterrupt tracebacks in forkserver helper process
14125 when Ctrl-C is received.
14127 - bpo-30103: binascii.b2a_uu() and uu.encode() now support using ``'`'`` as
14130 - bpo-28556: Various updates to typing module: add typing.NoReturn type, use
14131 WrapperDescriptorType, minor bug-fixes. Original PRs by Jim
14132 Fasarakis-Hilliard and Ivan Levkivskyi.
14134 - bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux.
14136 - bpo-30228: The seek() and tell() methods of io.FileIO now set the internal
14140 - bpo-30190: unittest's assertAlmostEqual and assertNotAlmostEqual provide a
14144 - bpo-30101: Add support for curses.A_ITALIC.
14146 - bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch
14149 - bpo-29960: Preserve generator state when _random.Random.setstate() raises
14152 - bpo-30070: Fixed leaks and crashes in errors handling in the parser
14155 - bpo-22352: Column widths in the output of dis.dis() are now adjusted for
14158 - bpo-30061: Fixed crashes in IOBase methods __next__() and readlines() when
14159 readline() or __next__() respectively return non-sizeable object. Fixed
14163 - bpo-30218: Fix PathLike support for shutil.unpack_archive. Patch by Jelle
14166 - bpo-10076: Compiled regular expression and match objects in the re module
14169 - bpo-30068: _io._IOBase.readlines will check if it's closed first when hint
14170 is present.
14172 - bpo-29694: Fixed race condition in pathlib mkdir with flags parents=True.
14175 - bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
14178 - bpo-26187: Test that sqlite3 trace callback is not called multiple times
14179 when schema is changing. Indirectly fixed by switching to use
14180 sqlite3_prepare_v2() in bpo-9303. Patch by Aviv Palivoda.
14182 - bpo-30017: Allowed calling the close() method of the zip entry writer
14186 - bpo-29998: Pickling and copying ImportError now preserves name and path
14189 - bpo-29995: re.escape() now escapes only regex special characters.
14191 - bpo-29962: Add math.remainder operation, implementing remainder as
14194 - bpo-29649: Improve struct.pack_into() exception messages for problems with
14197 - bpo-29654: Support If-Modified-Since HTTP header (browser cache). Patch
14200 - bpo-29931: Fixed comparison check for ipaddress.ip_interface objects.
14203 - bpo-29953: Fixed memory leaks in the replace() method of datetime and time
14206 - bpo-29942: Fix a crash in itertools.chain.from_iterable when encountering
14209 - bpo-10030: Sped up reading encrypted ZIP files by 2 times.
14211 - bpo-29204: Element.getiterator() and the html parameter of XMLParser()
14215 - bpo-27863: Fixed multiple crashes in ElementTree caused by race conditions
14218 - bpo-25996: Added support of file descriptors in os.scandir() on Unix.
14219 os.fwalk() is sped up by 2 times by using os.scandir().
14221 - bpo-28699: Fixed a bug in pools in multiprocessing.pool that raising an
14225 - bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
14228 - bpo-29901: The zipapp module now supports general path-like objects, not
14231 - bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when
14234 - bpo-29861: Release references to tasks, their arguments and their results
14237 - bpo-19930: The mode argument of os.makedirs() no longer affects the file
14238 permission bits of newly-created intermediate-level directories.
14240 - bpo-29884: faulthandler: Restore the old sigaltstack during teardown.
14243 - bpo-25455: Fixed crashes in repr of recursive buffered file-like objects.
14245 - bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords
14248 - bpo-8256: Fixed possible failing or crashing input() if attributes
14252 - bpo-28692: Using non-integer value for selecting a plural form in gettext
14253 is now deprecated.
14255 - bpo-26121: Use C library implementation for math functions erf() and
14258 - bpo-29619: os.stat() and os.DirEntry.inode() now convert inode (st_ino)
14261 - bpo-28298: Fix a bug that prevented array 'Q', 'L' and 'I' from accepting
14264 - bpo-29645: Speed up importing the webbrowser module.
14265 webbrowser.register() is now thread-safe.
14267 - bpo-28231: The zipfile module now accepts path-like objects for external
14270 - bpo-26915: index() and count() methods of collections.abc.Sequence now
14273 - bpo-28682: Added support for bytes paths in os.fwalk().
14275 - bpo-29728: Add new :data:`socket.TCP_NOTSENT_LOWAT` (Linux 3.12) constant.
14278 - bpo-29623: Allow use of path-like object as a single argument in
14281 - bpo-9303: Migrate sqlite3 module to _v2 API. Patch by Aviv Palivoda.
14283 - bpo-28963: Fix out of bound iteration in
14286 - bpo-29704: asyncio.subprocess.SubprocessStreamProtocol no longer closes
14289 - bpo-29271: Fix Task.current_task and Task.all_tasks implemented in C to
14292 - bpo-29703: Fix asyncio to support instantiation of new event loops in
14295 - bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (or any other
14299 - bpo-7769: Method register_function() of
14303 - bpo-29376: Fix assertion error in threading._DummyThread.is_alive().
14305 - bpo-28624: Add a test that checks that cwd parameter of Popen() accepts
14308 - bpo-28518: Start a transaction implicitly before a DML statement. Patch by
14311 - bpo-29742: get_extra_info() raises exception if get called on closed ssl
14314 - bpo-16285: urllib.parse.quote is now based on RFC 3986 and hence includes
14315 '~' in the set of characters that is not quoted by default. Patch by
14318 - bpo-29532: Altering a kwarg dictionary passed to functools.partial() no
14321 - bpo-29110: Fix file object leak in aifc.open() when file is given as a
14322 filesystem path and is not in valid AIFF format. Patch by Anthony Zhang.
14324 - bpo-22807: Add uuid.SafeUUID and uuid.UUID.is_safe to relay information
14328 - bpo-29576: Improve some deprecations in importlib. Some deprecated methods
14331 - bpo-29534: Fixed different behaviour of Decimal.from_float() for _decimal
14334 - bpo-10379: locale.format_string now supports the 'monetary' keyword
14335 argument, and locale.format is deprecated.
14337 - bpo-29851: importlib.reload() now raises ModuleNotFoundError if the module
14340 - bpo-28556: Various updates to typing module: typing.Counter,
14344 - bpo-29100: Fix datetime.fromtimestamp() regression introduced in Python
14347 - bpo-29416: Prevent infinite loop in pathlib.Path.mkdir
14349 - bpo-29444: Fixed out-of-bounds buffer access in the group() method of the
14352 - bpo-29377: Add WrapperDescriptorType, MethodWrapperType, and
14353 MethodDescriptorType built-in types to types module. Original patch by
14356 - bpo-29218: Unused install_misc command is now removed. It has been
14359 - bpo-29368: The extend() method is now called instead of the append()
14360 method when unpickle collections.deque and other list-like objects. This
14363 - bpo-29338: The help of a builtin or extension class now includes the
14364 constructor signature if __text_signature__ is provided for the class.
14366 - bpo-29335: Fix subprocess.Popen.wait() when the child process has exited
14369 - bpo-29290: Fix a regression in argparse that help messages would wrap at
14370 non-breaking spaces.
14372 - bpo-28735: Fixed the comparison of mock.MagickMock with mock.ANY.
14374 - bpo-29197: Removed deprecated function ntpath.splitunc().
14376 - bpo-29210: Removed support of deprecated argument "exclude" in
14379 - bpo-29219: Fixed infinite recursion in the repr of uninitialized
14382 - bpo-29192: Removed deprecated features in the http.cookies module.
14384 - bpo-29193: A format string argument for string.Formatter.format() is now
14385 positional-only.
14387 - bpo-29195: Removed support of deprecated undocumented keyword arguments in
14390 - bpo-28969: Fixed race condition in C implementation of
14395 - bpo-20804: The unittest.mock.sentinel attributes now preserve their
14398 - bpo-29142: In urllib.request, suffixes in no_proxy environment variable
14402 - bpo-28961: Fix unittest.mock._Call helper: don't ignore the name parameter
14405 - bpo-15812: inspect.getframeinfo() now correctly shows the first line of a
14408 - bpo-28985: Update authorizer constants in sqlite3 module. Patch by
14411 - bpo-29079: Prevent infinite loop in pathlib.resolve() on Windows
14413 - bpo-13051: Fixed recursion errors in large or resized
14416 - bpo-9770: curses.ascii predicates now work correctly with negative
14419 - bpo-28427: old keys should not remove new values from WeakValueDictionary
14422 - bpo-28923: Remove editor artifacts from Tix.py.
14424 - bpo-28871: Fixed a crash when deallocate deep ElementTree.
14426 - bpo-19542: Fix bugs in WeakValueDictionary.setdefault() and
14429 - bpo-20191: Fixed a crash in resource.prlimit() when passing a sequence
14432 - bpo-16255: subprocess.Popen uses /system/bin/sh on Android as the shell,
14435 - bpo-28779: multiprocessing.set_forkserver_preload() would crash the
14439 - bpo-26937: The chown() method of the tarfile.TarFile class does not fail
14443 - bpo-28847: dbm.dumb now supports reading read-only files and no longer
14444 writes the index file when it is not changed. A deprecation warning is
14445 now emitted if the index file is missed and recreated in the 'r' and 'w'
14448 - bpo-27030: Unknown escapes consisting of ``'\'`` and an ASCII letter in
14451 - bpo-28835: Fix a regression introduced in warnings.catch_warnings(): call
14454 - bpo-27172: To assist with upgrades from 2.7, the previously documented
14456 decision may be revisited again after the Python 2.7 branch is no longer
14459 - bpo-28740: Add sys.getandroidapilevel(): return the build time API version
14462 - bpo-26273: Add new :data:`socket.TCP_CONGESTION` (Linux 2.6.13) and
14466 - bpo-28752: Restored the __reduce__() methods of datetime objects.
14468 - bpo-28727: Regular expression patterns, _sre.SRE_Pattern objects created
14471 the warnings module is reloaded (thing usually only done in unit tests).
14473 - bpo-20572: Remove the subprocess.Popen.wait endtime parameter. It was
14476 - bpo-25659: In ctypes, prevent a crash calling the from_buffer() and
14479 - bpo-28548: In the "http.server" module, parse the protocol version if
14482 - bpo-19717: Makes Path.resolve() succeed on paths that do not exist. Patch
14485 - bpo-28563: Fixed possible DoS and arbitrary code execution when handle
14489 - bpo-28387: Fixed possible crash in _io.TextIOWrapper deallocator when the
14490 garbage collector is invoked in other thread. Based on patch by Sebastian
14493 - bpo-27517: LZMA compressor and decompressor no longer raise exceptions if
14496 - bpo-28549: Fixed segfault in curses's addch() with ncurses6.
14498 - bpo-28449: tarfile.open() with mode "r" or "r:" now tries to open a tar
14502 - bpo-23262: The webbrowser module now supports Firefox 36+ and derived
14505 - bpo-24241: The webbrowser in an X environment now prefers using the
14510 - bpo-27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
14512 now works if float value is set to underlying Tk variable.
14514 - bpo-28255: calendar.TextCalendar.prweek() no longer prints a space after a
14518 - bpo-28255: calendar.TextCalendar.prmonth() no longer prints a space at the
14522 - bpo-20491: The textwrap.TextWrapper class now honors non-breaking spaces.
14525 - bpo-28353: os.fwalk() no longer fails on broken links.
14527 - bpo-28430: Fix iterator of C implemented asyncio.Future doesn't accept
14528 non-None value is passed to it.send(val).
14530 - bpo-27025: Generated names for Tkinter widgets now start by the "!" prefix
14533 - bpo-25464: Fixed HList.header_exists() in tkinter.tix module by addin a
14536 - bpo-28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.
14538 - bpo-25953: re.sub() now raises an error for invalid numerical group
14539 reference in replacement template even if the pattern is not found in the
14543 - bpo-28469: timeit now uses the sequence 1, 2, 5, 10, 20, 50,... instead of
14546 - bpo-28115: Command-line interface of the zipfile module now uses argparse.
14549 - bpo-18219: Optimize csv.DictWriter for large number of columns. Patch by
14552 - bpo-28448: Fix C implemented asyncio.Future didn't work on Windows.
14554 - bpo-23214: In the "io" module, the argument to BufferedReader and
14555 BytesIO's read1() methods is now optional and can be -1, matching the
14558 - bpo-28480: Fix error building socket module when multithreading is
14561 - bpo-28240: timeit: remove ``-c/--clock`` and ``-t/--time`` command line
14564 - bpo-28240: timeit now repeats the benchmarks 5 times instead of only 3 to
14567 - bpo-28240: timeit autorange now uses a single loop iteration if the
14569 -m timeit -s 'import time' 'time.sleep(1)'" now takes 4 seconds instead of
14572 - Distutils.sdist now looks for README and setup.py files with case
14577 - bpo-24452: Make webbrowser support Chrome on Mac OS X. Patch by Ned
14580 - bpo-20766: Fix references leaked by pdb in the handling of SIGINT
14583 - bpo-27998: Fixed bytes path support in os.scandir() on Windows. Patch by
14586 - bpo-28317: The disassembler now decodes FORMAT_VALUE argument.
14588 - bpo-28380: unittest.mock Mock autospec functions now properly support
14591 - bpo-28229: lzma module now supports pathlib.
14593 - bpo-28321: Fixed writing non-BMP characters with binary format in
14596 - bpo-28225: bz2 module now supports pathlib. Initial patch by Ethan
14599 - bpo-28227: gzip now supports pathlib. Patch by Ethan Furman.
14601 - bpo-28332: Deprecated silent truncations in socket.htons and socket.ntohs.
14604 - bpo-27358: Optimized merging var-keyword arguments and improved error
14605 message when passing a non-mapping as a var-keyword argument.
14607 - bpo-28257: Improved error message when passing a non-iterable as a
14608 var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
14610 - bpo-28322: Fixed possible crashes when unpickle itertools objects from
14613 - bpo-28228: imghdr now supports pathlib.
14615 - bpo-28226: compileall now supports pathlib.
14617 - bpo-28314: Fix function declaration (C flags) for the getiterator() method
14620 - bpo-28148: Stop using localtime() and gmtime() in the time module.
14621 Introduced platform independent _PyTime_localtime API that is similar to
14624 - bpo-28253: Fixed calendar functions for extreme months: 0001-01 and
14625 9999-12. Methods itermonthdays() and itermonthdays2() are reimplemented so
14629 - bpo-28275: Fixed possible use after free in the decompress() methods of
14633 - bpo-27897: Fixed possible crash in sqlite3.Connection.create_collation()
14634 if pass invalid string-like object as a name. Patch by Xiang Zhang.
14636 - bpo-18844: random.choices() now has k as a keyword-only argument to
14640 - bpo-18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py.
14643 - bpo-27611: Fixed support of default root window in the tkinter.tix module.
14646 - bpo-27348: In the traceback module, restore the formatting of exception
14650 - bpo-25651: Allow falsy values to be used for msg parameter of subTest().
14652 - bpo-27778: Fix a memory leak in os.getrandom() when the getrandom() is
14655 - bpo-28200: Fix memory leak on Windows in the os module (fix
14658 - bpo-25400: RobotFileParser now correctly returns default values for
14661 - bpo-27932: Prevent memory leak in win32_ver().
14663 - Fix UnboundLocalError in socket._sendfile_use_sendfile.
14665 - bpo-28075: Check for ERROR_ACCESS_DENIED in Windows implementation of
14668 - bpo-22493: Warning message emitted by using inline flags in the middle of
14672 - bpo-25270: Prevent codecs.escape_encode() from raising SystemError when an
14673 empty bytestring is passed.
14675 - bpo-28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
14677 - bpo-25895: Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by
14680 - bpo-28114: Fix a crash in parse_envlist() when env contains byte strings.
14683 - bpo-27599: Fixed buffer overrun in binascii.b2a_qp() and
14686 - bpo-27906: Fix socket accept exhaustion during high TCP traffic. Patch by
14689 - bpo-28174: Handle when SO_REUSEPORT isn't properly supported. Patch by
14692 - bpo-26654: Inspect functools.partial in asyncio.Handle.__repr__. Patch by
14695 - bpo-26909: Fix slow pipes IO in asyncio. Patch by INADA Naoki.
14697 - bpo-28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.
14699 - bpo-27759: Fix selectors incorrectly retain invalid file descriptors.
14702 - bpo-28325: Remove vestigial MacOS 9 macurl2path module and its tests.
14704 - bpo-28368: Refuse monitoring processes if the child watcher has no loop
14707 - bpo-28369: Raise RuntimeError when transport's FD is used with add_reader,
14710 - bpo-28370: Speedup asyncio.StreamReader.readexactly. Patch by Коренберг
14713 - bpo-28371: Deprecate passing asyncio.Handles to run_in_executor.
14715 - bpo-28372: Fix asyncio to support formatting of non-python coroutines.
14717 - bpo-28399: Remove UNIX socket from FS before binding. Patch by Коренберг
14720 - bpo-27972: Prohibit Tasks to await on themselves.
14722 - bpo-24142: Reading a corrupt config file left configparser in an invalid
14725 - bpo-29581: ABCMeta.__new__ now accepts ``**kwargs``, allowing abstract
14729 - bpo-25532: inspect.unwrap() will now only try to unwrap an object
14733 - bpo-30177: path.resolve(strict=False) no longer cuts the path after the
14737 -------------
14739 - bpo-31294: Fix incomplete code snippet in the ZeroMQSocketListener and
14742 - bpo-21649: Add RFC 7525 and Mozilla server side TLS links to SSL
14745 - bpo-31128: Allow the pydoc server to bind to arbitrary hostnames.
14747 - bpo-30803: Clarify doc on truth value testing. Original patch by Peter
14750 - bpo-30176: Add missing attribute related constants in curses
14753 - bpo-30052: the link targets for :func:`bytes` and :func:`bytearray` are
14755 builtin function entries. Use :ref:`bytes <func-bytes>` and
14756 :ref:`bytearray <func-bytearray>` to reference the latter. In order to
14757 ensure this and future cross-reference updates are applied automatically,
14761 - bpo-26985: Add missing info of code object in inspect documentation.
14763 - bpo-19824: Improve the documentation for, and links to, template strings
14765 some usage constraints. (See also: bpo-20314, bpo-12518)
14767 - bpo-28929: Link the documentation to its source file on GitHub.
14769 - bpo-25008: Document smtpd.py as effectively deprecated and add a pointer
14770 to aiosmtpd, a third-party asyncio-based replacement.
14772 - bpo-26355: Add canonical header link on each page to corresponding major
14775 - bpo-29349: Fix Python 2 syntax in code for building the documentation.
14777 - bpo-23722: The data model reference and the porting section in the 3.6
14780 zero-argument ``super()``.
14782 - bpo-28513: Documented command-line interface of zipfile.
14785 -----
14787 - bpo-29639: test.support.HOST is now "localhost", a new HOSTv4 constant has
14791 - bpo-31320: Silence traceback in test_ssl
14793 - bpo-31346: Prefer PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER protocols
14796 - bpo-25674: Remove sha256.tbs-internet.com ssl test
14798 - bpo-30715: Address ALPN callback changes for OpenSSL 1.1.0f. The latest
14801 - bpo-30822: regrtest: Exclude tzdata from regrtest --all. When running the
14802 test suite using --use=all / -u all, exclude tzdata since it makes
14803 test_datetime too slow (15-20 min on some buildbots) which then times out
14805 -u extralargefile to run test_zipfile64.
14807 - bpo-30695: Add the `set_nomemory(start, stop)` and `remove_mem_hooks()`
14810 - bpo-30357: test_thread: setUp() now uses support.threading_setup() and
14815 - bpo-30197: Enhanced functions swap_attr() and swap_item() in the
14819 clause, if there is one.
14821 - bpo-24932: Use proper command line parsing in _testembed
14823 - bpo-28950: Disallow -j0 to be combined with -T/-l in regrtest command line
14826 - bpo-28683: Fix the tests that bind() a unix socket and raise
14827 PermissionError on Android for a non-root user.
14829 - bpo-26936: Fix the test_socket failures on Android - getservbyname(),
14832 - bpo-28666: Now test.support.rmtree is able to remove unwritable or
14835 - bpo-23839: Various caches now are cleared before running every test file.
14837 - bpo-26944: Fix test_posix for Android where 'id -G' is entirely wrong or
14840 - bpo-28409: regrtest: fix the parser of command line arguments.
14842 - bpo-28217: Adds _testconsole module to test console input.
14844 - bpo-26939: Add the support.setswitchinterval() function to fix
14848 -----
14850 - bpo-31354: Allow --with-lto to be used on all builds, not just `make
14851 profile-opt`.
14853 - bpo-31370: Remove support for building --without-threads. This option is
14856 difficult to maintain low-level internal code.
14858 - bpo-31341: Per :pep:`11`, support for the IRIX operating system was
14861 - bpo-30854: Fix compile error when compiling --without-threads. Patch by
14864 - bpo-30687: Locate msbuild.exe on Windows when building rather than
14867 - bpo-20210: Support the *disabled* marker in Setup files. Extension modules
14871 - bpo-29941: Add ``--with-assertions`` configure flag to explicitly enable C
14872 ``assert()`` checks. Defaults to off. ``--with-pydebug`` implies
14873 ``--with-assertions``.
14875 - bpo-28787: Fix out-of-tree builds of Python when configured with
14876 ``--with--dtrace``.
14878 - bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
14880 ``--enable-optimizations``.
14882 - bpo-23404: Don't regenerate generated files based on file modification
14883 time anymore: the action is now explicit. Replace ``make touch`` with
14884 ``make regen-all``.
14886 - bpo-29643: Fix ``--enable-optimization`` didn't work.
14888 - bpo-27593: sys.version and the platform module python_build(),
14892 - bpo-29572: Update Windows build and OS X installers to use OpenSSL 1.0.2k.
14894 - bpo-27659: Prohibit implicit C function declarations: use
14895 ``-Werror=implicit-function-declaration`` when possible (GCC and Clang,
14898 - bpo-29384: Remove old Be OS helper scripts.
14900 - bpo-26851: Set Android compilation and link flags.
14902 - bpo-28768: Fix implicit declaration of function _setmode. Patch by
14905 - bpo-29080: Removes hard dependency on hg.exe from PCBuild/build.bat
14907 - bpo-23903: Added missed names to PC/python3.def.
14909 - bpo-28762: lockf() is available on Android API level 24, but the F_LOCK
14910 macro is not defined in android-ndk-r13.
14912 - bpo-28538: Fix the compilation error that occurs because if_nameindex() is
14913 available on Android API level 24, but the if_nameindex structure is not
14916 - bpo-20211: Do not add the directory for installing C header files and the
14920 - bpo-28849: Do not define sys.implementation._multiarch on Android.
14922 - bpo-10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
14925 - bpo-26359: Rename --with-optimiations to --enable-optimizations.
14927 - bpo-28444: Fix missing extensions modules when cross compiling.
14929 - bpo-28208: Update Windows build and OS X installers to use SQLite 3.14.2.
14931 - bpo-28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j.
14933 - bpo-21124: Fix building the _struct module on Cygwin by passing ``NULL``
14937 - bpo-13756: Fix building extensions modules on Cygwin. Patch by Roumen
14940 - bpo-21085: Add configure check for siginfo_t.si_band, which Cygwin does
14944 - bpo-28258: Fixed build with Estonian locale (python-config and distclean
14947 - bpo-26661: setup.py now detects system libffi with multiarch wrapper.
14949 - bpo-27979: A full copy of libffi is no longer bundled for use when
14950 building _ctypes on non-OSX UNIX platforms. An installed copy of libffi
14951 is now required when building _ctypes on such platforms.
14953 - bpo-15819: Remove redundant include search directory option for building
14956 - bpo-28676: Prevent missing 'getentropy' declaration warning on macOS.
14960 -------
14962 - bpo-31392: Update Windows build to use OpenSSL 1.1.0f
14964 - bpo-30389: Adds detection of Visual Studio 2017 to distutils on Windows.
14966 - bpo-31358: zlib is no longer bundled in the CPython source, instead it is
14969 - bpo-31340: Change to building with MSVC v141 (included with Visual Studio
14972 - bpo-30581: os.cpu_count() now returns the correct number of processors on
14973 Windows when the number of logical processors is greater than 64.
14975 - bpo-30916: Pre-build OpenSSL, Tcl and Tk and include the binaries in the
14978 - bpo-30731: Add a missing xmlns to python.manifest so that it matches the
14981 - bpo-30291: Allow requiring 64-bit interpreters from py.exe using -64
14984 - bpo-30362: Adds list options (-0, -0p) to py.exe launcher. Contributed by
14987 - bpo-23451: Fix socket deprecation warnings in socketmodule.c. Patch by
14990 - bpo-30450: The build process on Windows no longer depends on Subversion,
14992 3.6 is not found on the system (via ``py -3.6``), NuGet is used to
14993 download a copy of 32-bit Python.
14995 - bpo-29579: Removes readme.txt from the installer.
14997 - bpo-25778: winreg does not truncate string correctly (Patch by Eryk Sun)
14999 - bpo-28896: Deprecate WindowsRegistryFinder and disable it by default
15001 - bpo-28522: Fixes mishandled buffer reallocation in getpathp.c
15003 - bpo-28402: Adds signed catalog files for stdlib on Windows.
15005 - bpo-28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk
15008 - bpo-28251: Improvements to help manuals on Windows.
15010 - bpo-28110: launcher.msi has different product codes between 32-bit and
15011 64-bit
15013 - bpo-28161: Opening CON for write access fails
15015 - bpo-28162: WindowsConsoleIO readall() fails if first line starts with
15018 - bpo-28163: WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle
15020 - bpo-28164: _PyIO_get_console_type fails for various paths
15022 - bpo-28137: Renames Windows path file to ._pth
15024 - bpo-28138: Windows ._pth file should allow import site
15027 ----
15029 - bpo-31493: IDLE code context -- fix code update and font update timers.
15032 - bpo-31488: IDLE - Update non-key options in former extension classes. When
15037 - bpo-31477: IDLE - Improve rstrip entry in doc. Strip trailing whitespace
15040 - bpo-31480: IDLE - make tests pass with zzdummy extension disabled by
15043 - bpo-31421: Document how IDLE runs tkinter programs. IDLE calls tcl/tk
15047 - bpo-31414: IDLE -- fix tk entry box tests by deleting first. Adding to an
15048 int entry is not the same as deleting and inserting because int('') will
15051 - bpo-31051: Rearrange IDLE configdialog GenPage into Window, Editor, and
15054 - bpo-30617: IDLE - Add docstrings and tests for outwin subclass of editor.
15058 - bpo-31287: IDLE - Do not modify tkinter.message in test_configdialog.
15060 - bpo-27099: Convert IDLE's built-in 'extensions' to regular features. About
15063 maintenance. Hence the conversion. The main difference for users is that
15066 the keyset. All bindings are defined together in the system-specific
15067 default keysets in config-extensions.def. All custom keysets are saved as
15068 a whole in config-extension.cfg. All take effect as soon as one clicks
15069 Apply or Ok. The affected events are '<<force-open-completions>>',
15070 '<<expand-word>>', '<<force-open-calltip>>', '<<flash-paren>>',
15071 '<<format-paragraph>>', '<<run-module>>', '<<check-module>>', and
15072 '<<zoom-height>>'. Any (global) customizations made before 3.6.3 will not
15073 affect their keyset-specific customization after 3.6.3. and vice versa.
15076 - bpo-31206: IDLE: Factor HighPage(Frame) class from ConfigDialog. Patch by
15079 - bpo-31001: Add tests for configdialog highlight tab. Patch by Cheryl
15082 - bpo-31205: IDLE: Factor KeysPage(Frame) class from ConfigDialog. The
15085 - bpo-31130: IDLE -- stop leaks in test_configdialog. Initial patch by
15088 - bpo-31002: Add tests for configdialog keys tab. Patch by Cheryl Sabella.
15090 - bpo-19903: IDLE: Calltips use `inspect.signature` instead of
15094 - bpo-31083: IDLE - Add an outline of a TabPage class in configdialog.
15097 - bpo-31050: Factor GenPage(Frame) class from ConfigDialog. The slightly
15100 - bpo-31004: IDLE - Factor FontPage(Frame) class from ConfigDialog. Slightly
15104 - bpo-30781: IDLE - Use ttk widgets in ConfigDialog. Patches by Terry Jan
15107 - bpo-31060: IDLE - Finish rearranging methods of ConfigDialog Grouping
15111 - bpo-30853: IDLE -- Factor a VarTrace class out of ConfigDialog. Instance
15113 When tracing is turned on, setting the variable calls the function. Test
15114 coverage for the new class is 100%.
15116 - bpo-31003: IDLE: Add more tests for General tab.
15118 - bpo-30993: IDLE - Improve configdialog font page and tests. In
15129 - bpo-30981: IDLE -- Add more configdialog font page tests.
15131 - bpo-28523: IDLE: replace 'colour' with 'color' in configdialog.
15133 - bpo-30917: Add tests for idlelib.config.IdleConf. Increase coverage from
15136 - bpo-30934: Document coverage details for idlelib tests. Add section to
15137 idlelib/idle-test/README.txt. Include check that branches are taken both
15138 ways. Exclude IDLE-specific code that does not run during unit tests.
15140 - bpo-30913: IDLE: Document ConfigDialog tk Vars, methods, and widgets in
15144 - bpo-30899: IDLE: Add tests for ConfigParser subclasses in config. Patch by
15147 - bpo-30881: IDLE: Add docstrings to browser.py. Patch by Cheryl Sabella.
15149 - bpo-30851: IDLE: Remove unused variables in configdialog. One is a
15150 duplicate, one is set but cannot be altered by users. Patch by Cheryl
15153 - bpo-30870: IDLE: In Settings dialog, select font with Up, Down keys as
15156 - bpo-8231: IDLE: call config.IdleConf.GetUserCfgDir only once.
15158 - bpo-30779: IDLE: Factor ConfigChanges class from configdialog, put in
15168 - bpo-30777: IDLE: configdialog - Add docstrings and fix comments. Patch by
15171 - bpo-30495: IDLE: Improve textview with docstrings, PEP8 names, and more
15174 - bpo-30723: IDLE: Make several improvements to parenmatch. Add 'parens'
15175 style to highlight both opener and closer. Make 'default' style, which is
15176 not default, a synonym for 'opener'. Make time-delay work the same with
15180 - bpo-30674: IDLE: add docstrings to grep module. Patch by Cheryl Sabella
15182 - bpo-21519: IDLE's basic custom key entry dialog now detects duplicates
15185 - bpo-29910: IDLE no longer deletes a character after commenting out a
15189 - bpo-30728: Review and change idlelib.configdialog names. Lowercase method
15194 - bpo-6739: IDLE: Verify user-entered key sequences by trying to bind them
15198 - bpo-15786: Fix several problems with IDLE's autocompletion box. The
15203 - bpo-25514: Add doc subsubsection about IDLE failure to start. Popup
15204 no-connection message directs users to this section.
15206 - bpo-30642: Fix reference leaks in IDLE tests. Patches by Louie Lu and
15209 - bpo-30495: Add docstrings for textview.py and use PEP8 names. Patches by
15212 - bpo-30290: Help-about: use pep8 names and add tests. Increase coverage to
15215 - bpo-30303: Add _utest option to textview; add new tests. Increase coverage
15218 - bpo-29071: IDLE colors f-string prefixes (but not invalid ur prefixes).
15220 - bpo-28572: Add 10% to coverage of IDLE's test_configdialog. Update and
15224 -----------
15226 - bpo-30983: gdb integration commands (py-bt, etc.) work on optimized shared
15228 inlines PyEval_EvalFrameEx on non-debug shared builds. This broke the
15229 ability to use py-bt, py-up, and a few other Python-specific gdb
15230 integrations. The problem is fixed by only looking for
15231 _PyEval_EvalFrameDefault frames in python-gdb.py. Original patch by Bruno
15234 - bpo-29748: Added the slice index converter in Argument Clinic.
15236 - bpo-24037: Argument Clinic now uses the converter `bool(accept={int})`
15241 - bpo-29367: python-gdb.py now supports also ``method-wrapper``
15244 - bpo-28023: Fix python-gdb.py didn't support new dict implementation.
15246 - bpo-15369: The pybench and pystone microbenchmark have been removed from
15248 https://github.com/python/performance which is more reliable and includes
15251 - bpo-28102: The zipfile module CLI now prints usage to stderr. Patch by
15255 -----
15257 - bpo-31338: Added the ``Py_UNREACHABLE()`` macro for code paths which are
15261 - bpo-30832: Remove own implementation for thread-local storage. CPython has
15262 provided the own implementation for thread-local storage (TLS) on
15268 - bpo-30708: PyUnicode_AsWideCharString() now raises a ValueError if the
15269 second argument is NULL and the wchar_t\* string contains null characters.
15271 - bpo-16500: Deprecate PyOS_AfterFork() and add PyOS_BeforeFork(),
15274 - bpo-6532: The type of results of PyThread_start_new_thread() and
15278 - bpo-27867: Function PySlice_GetIndicesEx() is deprecated and replaced with
15279 a macro if Py_LIMITED_API is not set or set to the value between
15283 - bpo-29083: Fixed the declaration of some public API functions.
15287 PY_SSIZE_T_CLEAN is defined.
15289 - bpo-28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()
15290 is now of type ``const char *`` rather of ``char *``.
15292 - bpo-29058: All stable API extensions added after Python 3.2 are now
15293 available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
15296 - bpo-28822: The index parameters *start* and *end* of PyUnicode_FindChar()
15299 - bpo-28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
15301 - bpo-28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,
15305 - bpo-28748: Private variable _Py_PackageContext is now of type ``const char
15308 - bpo-19569: Compiler warnings are now emitted if use most of deprecated
15311 - bpo-28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(),
15319 *Release date: 2018-06-27*
15328 *Release date: 2018-06-11*
15331 -----------------
15333 - bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow()
15336 - bpo-30654: Fixed reset of the SIGINT handler to SIG_DFL on interpreter
15340 - bpo-33622: Fixed a leak when the garbage collector fails to add an object
15343 exception is set and preserves it.
15345 - bpo-31849: Fix signed/unsigned comparison warning in pyhash.c.
15347 - bpo-33391: Fix a leak in set_symmetric_difference().
15349 - bpo-28055: Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
15351 - bpo-33231: Fix potential memory leak in ``normalizestring()``.
15353 - bpo-29922: Improved error messages in 'async with' when ``__aenter__()``
15354 or ``__aexit__()`` return non-awaitable object.
15356 - bpo-33199: Fix ``ma_version_tag`` in dict implementation is uninitialized
15357 when copying from key-sharing dict.
15359 - bpo-33041: Fixed jumping when the function contains an ``async for`` loop.
15361 - bpo-32282: Fix an unnecessary ifdef in the include of VersionHelpers.h in
15364 - bpo-21983: Fix a crash in `ctypes.cast()` in case the type argument is a
15368 -------
15370 - bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. Patch by
15373 - bpo-33812: Datetime instance d with non-None tzinfo, but with
15374 d.tzinfo.utcoffset(d) returning None is now treated as naive by the
15377 - bpo-30805: Avoid race condition with debug logging
15379 - bpo-33767: The concatenation (``+``) and repetition (``*``) sequence
15383 - bpo-32684: Fix gather to propagate cancellation of itself even with
15386 - bpo-33674: Fix a race condition in SSLProtocol.connection_made() of
15391 - bpo-31647: Fixed bug where calling write_eof() on a
15394 - bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines
15396 - bpo-33469: Fix RuntimeError after closing loop that used run_in_executor
15398 - bpo-11874: Use a better regex when breaking usage into wrappable parts.
15401 - bpo-30877: Fixed a bug in the Python implementation of the JSON decoder
15403 the decoding. Based on patch by c-fos.
15405 - bpo-33548: tempfile._candidate_tempdir_list should consider common TEMP
15408 - bpo-33542: Prevent ``uuid.get_node`` from using a DUID instead of a MAC on
15411 - bpo-26819: Fix race condition with `ReadTransport.resume_reading` in
15414 - bpo-28556: Minor fixes in typing module: add annotations to
15418 - bpo-20087: Updated alias mapping with glibc 2.27 supported locales.
15420 - bpo-33422: Fix trailing quotation marks getting deleted when looking up
15423 - bpo-33197: Update error message when constructing invalid
15424 inspect.Parameters Patch by Dong-hee Na.
15426 - bpo-33383: Fixed crash in the get() method of the :mod:`dbm.ndbm` database
15427 object when it is called with a single argument.
15429 - bpo-33329: Fix multiprocessing regression on newer glibcs
15431 - bpo-991266: Fix quoting of the ``Comment`` attribute of
15434 - bpo-33131: Upgrade bundled version of pip to 10.0.1.
15436 - bpo-33308: Fixed a crash in the :mod:`parser` module when converting an ST
15440 - bpo-33263: Fix FD leak in `_SelectorSocketTransport` Patch by Vlad
15443 - bpo-33256: Fix display of ``<module>`` call in the html produced by
15446 - bpo-33203: ``random.Random.choice()`` now raises ``IndexError`` for empty
15450 - bpo-33224: Update difflib.mdiff() for :pep:`479`. Convert an uncaught
15451 StopIteration in a generator into a return-statement.
15453 - bpo-33209: End framing at the end of C implementation of
15456 - bpo-32861: The urllib.robotparser's ``__str__`` representation now
15457 includes wildcard entries and the "Crawl-delay" and "Request-rate" fields.
15460 - bpo-33096: Allow ttk.Treeview.insert to insert iid that has a false
15464 - bpo-33127: The ssl module now compiles with LibreSSL 2.7.1.
15466 - bpo-33021: Release the GIL during fstat() calls, avoiding hang of all
15470 - bpo-27683: Fix a regression in :mod:`ipaddress` that result of
15471 :meth:`hosts` is empty when the network is constructed by a tuple
15474 - bpo-32844: Fix wrong redirection of a low descriptor (0 or 1) to stderr in
15475 subprocess if another low descriptor is closed.
15477 - bpo-31908: Fix output of cover files for ``trace`` module command-line
15478 tool. Previously emitted cover files only when ``--missing`` option was
15481 - bpo-31457: If nested log adapters are used, the inner ``process()``
15484 - bpo-16865: Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer.
15486 - bpo-31238: pydoc: the stop() method of the private ServerThread class now
15491 -------------
15493 - bpo-33503: Fix broken pypi link
15495 - bpo-33421: Add missing documentation for ``typing.AsyncContextManager``.
15497 - bpo-33378: Add Korean language switcher for https://docs.python.org/3/
15499 - bpo-33276: Clarify that the ``__path__`` attribute on modules cannot be
15502 - bpo-33201: Modernize documentation for writing C extension types.
15504 - bpo-33195: Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document.
15505 ``Py_UNICODE`` related APIs are deprecated since Python 3.3, but it is
15508 - bpo-33126: Document PyBuffer_ToContiguous().
15510 - bpo-27212: Modify documentation for the :func:`islice` recipe to consume
15513 - bpo-28247: Update :mod:`zipapp` documentation to describe how to make
15516 - bpo-18802: Documentation changes for ipaddress. Patch by Jon Foster and
15519 - bpo-27428: Update documentation to clarify that ``WindowsRegistryFinder``
15522 - bpo-8243: Add a note about curses.addch and curses.addstr exception
15525 - bpo-31432: Clarify meaning of CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED
15529 -----
15531 - bpo-33655: Ignore test_posix_fallocate failures on BSD platforms that
15534 - bpo-19417: Add test_bdb.py.
15537 -----
15539 - bpo-5755: Move ``-Wstrict-prototypes`` option to ``CFLAGS_NODIST`` from
15543 - bpo-33614: Ensures module definition files for the stable ABI on Windows
15546 - bpo-33522: Enable CI builds on Visual Studio Team Services at
15549 - bpo-33012: Add ``-Wno-cast-function-type`` for gcc 8 for silencing
15553 - bpo-33394: Enable the verbose build for extension modules, when GNU make
15554 is passed macros on the command line.
15557 -------
15559 - bpo-33184: Update Windows installer to OpenSSL 1.0.2o.
15562 -----
15564 - bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o.
15567 ----
15569 - bpo-33656: On Windows, add API call saying that tk scales for DPI. On
15574 - bpo-33768: Clicking on a context line moves that line to the top of the
15577 - bpo-33763: IDLE: Use read-only text widget for code context instead of
15580 - bpo-33664: Scroll IDLE editor text by lines. Previously, the mouse wheel
15583 the shell and grep output windows, but not to read-only text views.
15585 - bpo-33679: Enable theme-specific color configuration for Code Context. Use
15586 the Highlights tab to see the setting for built-in themes or add settings
15589 - bpo-33642: Display up to maxlines non-blank lines for Code Context. If
15590 there is no current context, show a single blank line.
15592 - bpo-33628: IDLE: Cleanup codecontext.py and its test.
15594 - bpo-33564: IDLE's code context now recognizes async as a block opener.
15596 - bpo-29706: IDLE now colors async and await as keywords in 3.6. They become
15599 - bpo-21474: Update word/identifier definition from ascii to unicode. In
15600 text and entry boxes, this affects selection by double-click, movement
15601 left/right by control-left/right, and deletion left/right by
15602 control-BACKSPACE/DEL.
15604 - bpo-33204: IDLE: consistently color invalid string prefixes. A 'u' string
15606 of the prefix, starting at the right, as is valid. Revise and extend
15609 - bpo-32831: Add docstrings and tests for codecontext.
15612 -----------
15614 - bpo-33189: :program:`pygettext.py` now recognizes only literal strings as
15616 f-string expressions.
15618 - bpo-31920: Fixed handling directories as arguments in the ``pygettext``
15621 - bpo-29673: Fix pystackv and pystack gdbinit macros.
15623 - bpo-32885: Add an ``-n`` flag for ``Tools/scripts/pathfix.py`` to disable
15626 - bpo-31583: Fix 2to3 for using with --add-suffix option but without
15627 --output-dir option for relative path to files in current directory.
15630 -----
15632 - bpo-32374: Document that m_traverse for multi-phase initialized modules
15639 *Release date: 2018-03-28*
15642 -----
15644 - bpo-32872: Avoid regrtest compatibility issue with namespace packages.
15647 -----
15649 - bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1.
15655 *Release date: 2018-03-13*
15658 --------
15660 - bpo-33001: Minimal fix to prevent buffer overrun in os.symlink on Windows
15662 - bpo-32981: Regexes in difflib and poplib were vulnerable to catastrophic
15664 have been refactored. This resolves CVE-2018-1060 and CVE-2018-1061. Patch
15668 -----------------
15670 - bpo-33026: Fixed jumping out of "with" block by setting f_lineno.
15672 - bpo-17288: Prevent jumps from 'return' and 'exception' trace events.
15674 - bpo-32889: Update Valgrind suppression list to account for the rename of
15677 - bpo-32650: Pdb and other debuggers dependent on bdb.py will correctly step
15680 - bpo-32685: Improve suggestion when the Python 2 form of print statement is
15682 else terminated by a semi-colon instead of a newline. Patch by Nitish
15685 - bpo-32583: Fix possible crashing in builtin Unicode decoders caused by
15686 write out-of-bound errors when using customized decode error handlers.
15688 - bpo-26163: Improved frozenset() hash to create more distinct hash values
15691 - bpo-27169: The ``__debug__`` constant is now optimized out at compile
15692 time. This fixes also bpo-22091.
15694 - bpo-32329: ``sys.flags.hash_randomization`` is now properly set to 0 when
15695 hash randomization is turned off by ``PYTHONHASHSEED=0``.
15697 - bpo-30416: The optimizer is now protected from spending much time doing
15701 - bpo-18533: ``repr()`` on a dict containing its own ``values()`` or
15706 - bpo-32028: Leading whitespace is now correctly ignored when generating
15710 - bpo-32137: The repr of deeply nested dict now raises a RecursionError
15714 -------
15716 - bpo-33064: lib2to3 now properly supports trailing commas after ``*args``
15719 - bpo-31804: Avoid failing in multiprocessing.Process if the standard
15722 - bpo-33037: Skip sending/receiving data after SSL transport closing.
15724 - bpo-30353: Fix ctypes pass-by-value for structs on 64-bit Cygwin/MinGW.
15726 - bpo-33009: Fix inspect.signature() for single-parameter partialmethods.
15728 - bpo-32969: Expose several missing constants in zlib and fix corresponding
15731 - bpo-32713: Fixed tarfile.itn handling of out-of-bounds float values. Patch
15734 - bpo-30622: The ssl module now detects missing NPN support in LibreSSL.
15736 - bpo-32922: dbm.open() now encodes filename with the filesystem encoding
15739 - bpo-32859: In ``os.dup2``, don't check every call whether the ``dup3``
15742 - bpo-21060: Rewrite confusing message from setup.py upload from "No dist
15746 - bpo-32857: In :mod:`tkinter`, ``after_cancel(None)`` now raises a
15750 - bpo-32852: Make sure sys.argv remains as a list when running trace.
15752 - bpo-32841: Fixed `asyncio.Condition` issue which silently ignored
15756 - bpo-31787: Fixed refleaks of ``__init__()`` methods in various modules.
15759 - bpo-30157: Fixed guessing quote and delimiter in csv.Sniffer.sniff() when
15760 only the last field is quoted. Patch by Jake Davis.
15762 - bpo-32394: socket: Remove TCP_FASTOPEN, TCP_KEEPCNT flags on older version
15763 Windows during run-time.
15765 - bpo-32777: Fix a rare but potential pre-exec child process deadlock in
15770 - bpo-32647: The ctypes module used to depend on indirect linking for
15771 dlopen. The shared extension is now explicitly linked against libdl on
15774 - bpo-32734: Fixed ``asyncio.Lock()`` safety issue which allowed acquiring
15778 - bpo-32727: Do not include name field in SMTP envelope from address. Patch
15781 - bpo-27931: Fix email address header parsing error when the username is an
15784 - bpo-32304: distutils' upload command no longer corrupts tar files ending
15788 - bpo-32502: uuid.uuid1 no longer raises an exception if a 64-bit hardware
15789 address is encountered.
15791 - bpo-31848: Fix the error handling in Aifc_read.initfp() when the SSND
15792 chunk is not found. Patch by Zackery Spytz.
15794 - bpo-32555: On FreeBSD and Solaris, os.strerror() now always decode the
15798 - bpo-32521: The nis module is now compatible with new libnsl and headers
15801 - bpo-32473: Improve ABCMeta._dump_registry() output readability
15803 - bpo-32521: glibc has removed Sun RPC. Use replacement libtirpc headers and
15806 - bpo-32228: Ensure that ``truncate()`` preserves the file position (as
15809 - bpo-26133: Don't unsubscribe signals in asyncio UNIX event loop on
15812 - bpo-32185: The SSL module no longer sends IP addresses in SNI TLS
15815 - bpo-32323: :func:`urllib.parse.urlsplit()` does not convert zone-id
15818 - bpo-32302: Fix bdist_wininst of distutils for CRT v142: it binary
15821 - bpo-32255: A single empty field is now always quoted when written into a
15825 - bpo-32277: Raise ``NotImplementedError`` instead of ``SystemError`` on
15826 platforms where ``chmod(..., follow_symlinks=False)`` is not supported.
15829 - bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link
15832 - bpo-27456: Ensure TCP_NODELAY is set on Linux. Tests by Victor Stinner.
15834 - bpo-31900: The :func:`locale.localeconv` function now sets temporarily the
15836 ``decimal_point`` and ``thousands_sep`` byte strings if they are non-ASCII
15837 or longer than 1 byte, and the ``LC_NUMERIC`` locale is different than the
15843 - bpo-31802: Importing native path module (``posixpath``, ``ntpath``) now
15844 works even if the ``os`` module still is not imported.
15847 -------------
15849 - bpo-17232: Clarify docs for -O and -OO. Patch by Terry Reedy.
15851 - bpo-32800: Update link to w3c doc for xml default namespaces.
15853 - bpo-8722: Document :meth:`__getattr__` behavior when property :meth:`get`
15856 - bpo-32614: Modify RE examples in documentation to use raw strings to
15860 - bpo-31972: Improve docstrings for `pathlib.PurePath` subclasses.
15862 - bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile and
15863 their C-API counterparts regarding which type of events are received in
15867 -----
15869 - bpo-32517: Fix failing ``test_asyncio`` on macOS 10.12.2+ due to transport
15872 - bpo-32721: Fix test_hashlib to not fail if the _md5 module is not built.
15874 - bpo-32252: Fix faulthandler_suppress_crash_report() used to prevent core
15877 - bpo-31518: Debian Unstable has disabled TLS 1.0 and 1.1 for
15882 -----
15884 - bpo-32635: Fix segfault of the crypt module when libxcrypt is provided
15888 -------
15890 - bpo-33016: Fix potential use of uninitialized memory in
15893 - bpo-32903: Fix a memory leak in os.chdir() on Windows if the current
15894 directory is set to a UNC path.
15896 - bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data.
15898 - bpo-32409: Ensures activate.bat can handle Unicode contents.
15900 - bpo-32457: Improves handling of denormalized executable path when
15903 - bpo-32370: Use the correct encoding for ipconfig output in the uuid
15906 - bpo-29248: Fix :func:`os.readlink` on Windows, which was mistakenly
15910 - bpo-32588: Create standalone _distutils_findvs module.
15913 -----
15915 - bpo-32726: Provide an additional, more modern macOS installer variant that
15916 supports macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied
15917 third-party libraries to OpenSSL 1.0.2n, XZ 5.2.3, and SQLite 3.22.0. The
15921 ----
15923 - bpo-32984: Set ``__file__`` while running a startup file. Like Python,
15925 presenting the first interactive input prompt. For IDLE, ``-s`` runs a
15927 :envvar:`PYTHONSTARTUP`; ``-r file`` runs ``file``. Python sets
15930 without the ``-n`` option.
15932 - bpo-32940: Simplify and rename StringTranslatePseudoMapping in pyparse.
15934 - bpo-32916: Change ``str`` to ``code`` in pyparse.
15936 - bpo-32905: Remove unused code in pyparse module.
15938 - bpo-32874: Add tests for pyparse.
15940 - bpo-32837: Using the system and place-dependent default encoding for
15941 open() is a bad idea for IDLE's system and location-independent files.
15943 - bpo-32826: Add "encoding=utf-8" to open() in IDLE's test_help_about. GUI
15944 test test_file_buttons() only looks at initial ascii-only lines, but
15946 internally reads and decodes far enough ahead to encounter a non-ascii
15949 - bpo-32765: Update configdialog General tab docstring to add new widgets to
15953 -----------
15955 - bpo-24960: 2to3 and lib2to3 can now read pickled grammar files using
15959 - bpo-32222: Fix pygettext not extracting docstrings for functions with type
15963 -----
15965 - bpo-29084: Undocumented C API for OrderedDict has been excluded from the
15973 *Release date: 2017-12-18*
15982 *Release date: 2017-12-05*
15985 -----------------
15987 - bpo-32176: co_flags.CO_NOFREE is now always set correctly by the code
15993 - bpo-31949: Fixed several issues in printing tracebacks
16001 - bpo-30696: Fix the interactive interpreter looping endlessly when no
16004 - bpo-20047: Bytearray methods partition() and rpartition() now accept only
16005 bytes-like objects as separator, as documented. In particular they now
16006 raise TypeError rather of returning a bogus result when an integer is
16009 - bpo-31852: Fix a segmentation fault caused by a combination of the async
16012 - bpo-21720: BytesWarning no longer emitted when the *fromlist* argument of
16016 - bpo-31825: Fixed OverflowError in the 'unicode-escape' codec and in
16017 codecs.escape_decode() when decode an escaped non-ascii byte.
16019 - bpo-28603: Print the full context/cause chain of exceptions on interpreter
16020 exit, even if an exception in the chain is unhashable or compares equal to
16023 - bpo-31786: Fix timeout rounding in the select module to round correctly
16024 negative timeouts between -1.0 and 0.0. The functions now block waiting
16025 for events as expected. Previously, the call was incorrectly non-blocking.
16028 - bpo-31642: Restored blocking "from package import module" by setting
16031 - bpo-31626: Fixed a bug in debug memory allocator. There was a write to
16034 - bpo-31619: Fixed a ValueError when convert a string with large number of
16037 - bpo-31592: Fixed an assertion failure in Python parser in case of a bad
16040 - bpo-31588: Raise a `TypeError` with a helpful error message when class
16044 - bpo-31566: Fix an assertion failure in `_warnings.warn()` in case of a bad
16047 - bpo-31505: Fix an assertion failure in `json`, in case
16051 - bpo-31492: Fix assertion failures in case of failing to import from a
16055 - bpo-31490: Fix an assertion failure in `ctypes` class definition, in case
16056 the class has an attribute whose name is specified in ``_anonymous_`` but
16059 - bpo-31478: Fix an assertion failure in `_random.Random.seed()` in case the
16062 - bpo-31315: Fix an assertion failure in imp.create_dynamic(), when
16063 spec.name is not a string. Patch by Oren Milman.
16065 - bpo-31311: Fix a crash in the ``__setstate__()`` method of
16068 - bpo-31293: Fix crashes in true division and multiplication of a timedelta
16072 - bpo-31285: Fix an assertion failure in `warnings.warn_explicit`, when the
16076 - bpo-30817: `PyErr_PrintEx()` clears now the ignored exception that may be
16080 -------
16082 - bpo-28556: Two minor fixes for ``typing`` module: allow shallow copying
16086 - bpo-27240: The header folding algorithm for the new email policies has
16087 been rewritten, which also fixes bpo-30788, bpo-31831, and bpo-32182. In
16088 particular, RFC2231 folding is now done correctly.
16090 - bpo-32186: io.FileIO.readall() and io.FileIO.read() now release the GIL
16094 - bpo-12239: Make :meth:`msilib.SummaryInformation.GetProperty` return
16095 ``None`` when the value of property is ``VT_EMPTY``. Initial patch by
16098 - bpo-31325: Fix wrong usage of :func:`collections.namedtuple` in the
16102 - bpo-12382: :func:`msilib.OpenDatabase` now raises a better exception
16106 - bpo-32110: ``codecs.StreamReader.read(n)`` now returns not more than *n*
16107 characters/bytes for non-negative *n*. This makes it compatible with
16108 ``read()`` methods of other file-like objects.
16110 - bpo-32072: Fixed issues with binary plists: Fixed saving bytearrays.
16115 - bpo-32034: Make asyncio.IncompleteReadError and LimitOverrunError
16118 - bpo-32015: Fixed the looping of asyncio in the case of reconnection the
16121 - bpo-32011: Restored support of loading marshal files with the TYPE_INT64
16124 - bpo-31970: Reduce performance overhead of asyncio debug mode.
16126 - bpo-9678: Fixed determining the MAC address in the uuid module: Using
16130 - bpo-30057: Fix potential missed signal in signal.signal().
16132 - bpo-31933: Fix Blake2 params leaf_size and node_offset on big endian
16135 - bpo-31927: Fixed compilation of the socket module on NetBSD 8. Fixed
16139 - bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse()
16140 when the size of types chtype or mmask_t is less than the size of C long.
16144 - bpo-31897: plistlib now catches more errors when read binary plists and
16147 - bpo-25720: Fix the method for checking pad state of curses WINDOW. Patch
16150 - bpo-31893: Fixed the layout of the kqueue_event structure on OpenBSD and
16153 - bpo-31891: Fixed building the curses module on NetBSD.
16155 - bpo-28416: Instances of pickle.Pickler subclass with the persistent_id()
16159 - bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed
16162 - bpo-31457: If nested log adapters are used, the inner ``process()``
16165 - bpo-31457: The ``manager`` property on LoggerAdapter objects is now
16168 - bpo-31806: Fix timeout rounding in time.sleep(), threading.Lock.acquire()
16170 between -1.0 and 0.0. The functions now block waiting for events as
16171 expected. Previously, the call was incorrectly non-blocking. Patch by
16174 - bpo-28603: traceback: Fix a TypeError that occurred during printing of
16176 its context/cause chain is unhashable. Patch by Zane Bitter.
16178 - bpo-30058: Fixed buffer overflow in select.kqueue.control().
16180 - bpo-31770: Prevent a crash when calling the ``__init__()`` method of a
16183 - bpo-31672: ``idpattern`` in ``string.Template`` matched some non-ASCII
16184 characters. Now it uses ``-i`` regular expression local flag to avoid
16185 non-ASCII characters.
16187 - bpo-31764: Prevent a crash in ``sqlite3.Cursor.close()`` in case the
16188 ``Cursor`` object is uninitialized. Patch by Oren Milman.
16190 - bpo-31752: Fix possible crash in timedelta constructor called with custom
16193 - bpo-31701: On Windows, faulthandler.enable() now ignores MSC and COM
16196 - bpo-31728: Prevent crashes in `_elementtree` due to unsafe cleanup of
16199 - bpo-31620: an empty asyncio.Queue now doesn't leak memory when queue.get
16202 - bpo-31632: Fix method set_protocol() of class _SSLProtocolTransport in
16206 - bpo-31675: Fixed memory leaks in Tkinter's methods splitlist() and split()
16209 - bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo().
16211 - bpo-30806: Fix the string representation of a netrc object.
16213 - bpo-15037: Added a workaround for getkey() in curses for ncurses 5.7 and
16216 - bpo-25351: Avoid venv activate failures with undefined variables
16218 - bpo-25532: inspect.unwrap() will now only try to unwrap an object
16222 - bpo-30347: Stop crashes when concurrently iterate over itertools.groupby()
16225 - bpo-31516: ``threading.current_thread()`` should not return a dummy thread
16228 - bpo-31351: python -m ensurepip now exits with non-zero exit code if pip
16231 - bpo-31482: ``random.seed()`` now works with bytes in version=1
16233 - bpo-31334: Fix ``poll.poll([timeout])`` in the ``select`` module for
16235 non-negative integer or -1. Patch by Riccardo Coccioli.
16237 - bpo-31310: multiprocessing's semaphore tracker should be launched again if
16240 - bpo-31308: Make multiprocessing's forkserver process immune to Ctrl-C and
16244 -------------
16246 - bpo-32105: Added asyncio.BaseEventLoop.connect_accepted_socket
16249 - bpo-31537: Fix incorrect usage of ``get_history_length`` in readline
16252 - bpo-30085: The operator functions without double underscores are preferred
16254 back-compatibility.
16257 -----
16259 - bpo-31380: Skip test_httpservers test_undecodable_file on macOS: fails on
16262 - bpo-31705: Skip test_socket.test_sha256() on Linux kernel older than 4.5.
16266 - bpo-31174: Fix test_tools.test_unparse: DirectoryTestCase now stores the
16270 - bpo-30695: Add the `set_nomemory(start, stop)` and `remove_mem_hooks()`
16274 -----
16276 - bpo-32059: ``detect_modules()`` in ``setup.py`` now also searches the
16277 sysroot paths when cross-compiling.
16279 - bpo-31957: Fixes Windows SDK version detection when building for Windows.
16281 - bpo-31609: Fixes quotes in PCbuild/clean.bat
16283 - bpo-31934: Abort the build when building out of a not clean source tree.
16285 - bpo-31926: Fixed Argument Clinic sometimes causing compilation errors when
16289 - bpo-28791: Update Windows builds to use SQLite 3.21.0.
16291 - bpo-28791: Update OS X installer to use SQLite 3.21.0.
16293 - bpo-22140: Prevent double substitution of prefix in python-config.sh.
16295 - bpo-31536: Avoid wholesale rebuild after `make regen-all` if nothing
16299 -------
16301 - bpo-1102: Return ``None`` when ``View.Fetch()`` returns
16305 - bpo-31944: Fixes Modify button in Apps and Features dialog.
16308 -----
16310 - bpo-31392: Update macOS installer to use OpenSSL 1.0.2m
16313 ----
16315 - bpo-32207: Improve tk event exception tracebacks in IDLE. When tk event
16316 handling is driven by IDLE's run loop, a confusing and distracting
16317 queue.EMPTY traceback context is no longer added to tk event exception
16318 tracebacks. The traceback is now the same as when event handling is
16321 - bpo-32164: Delete unused file idlelib/tabbedpages.py. Use of TabbedPageSet
16324 - bpo-32100: IDLE: Fix old and new bugs in pathbrowser; improve tests. Patch
16327 - bpo-31858: IDLE -- Restrict shell prompt manipulation to the shell. Editor
16329 the code and fixes a minor bug when newline is inserted. Sys.ps1, if
16330 present, is read on Shell start-up, but is not set or changed.
16332 - bpo-31860: The font sample in the IDLE configuration dialog is now
16335 - bpo-31836: Test_code_module now passes if run after test_idle, which sets
16339 - bpo-28603: Fix a TypeError that caused a shell restart when printing a
16340 traceback that includes an exception that is unhashable. Patch by Zane
16343 - bpo-13802: Use non-Latin characters in the IDLE's Font settings sample.
16346 character. The expanded example give users of non-Latin characters a
16348 room for the expanded sample, frames on the Font tab are re-arranged. The
16351 - bpo-31460: Simplify the API of IDLE's Module Browser. Passing a widget
16353 browser frame that is only part of a window. Passing a full file name
16357 - bpo-31649: IDLE - Make _htest, _utest parameters keyword only.
16359 - bpo-31559: Remove test order dependence in idle_test.test_browser.
16361 - bpo-31459: Rename IDLE's module browser from Class Browser to Module
16362 Browser. The original module-level class and method browser became a
16363 module browser, with the addition of module-level functions, years ago.
16365 back-compatibility, the virtual event <<open-class-browser>>, which
16366 appears on the Keys tab of the Settings dialog, is not changed. Patch by
16369 - bpo-31500: Default fonts now are scaled on HiDPI displays.
16371 - bpo-1612262: IDLE module browser now shows nested classes and functions.
16376 -----------
16378 - bpo-30722: Make redemo work with Python 3.6 and newer versions. Also,
16383 -----
16385 - bpo-20891: Fix PyGILState_Ensure(). When PyGILState_Ensure() is called in
16386 a non-Python thread before PyEval_InitThreads(), only call
16389 - bpo-31532: Fix memory corruption due to allocator mix in getpath.c between
16392 - bpo-30697: The `PyExc_RecursionErrorInst` singleton is removed and
16393 `PyErr_NormalizeException()` does not use it anymore. This singleton is
16401 *Release date: 2017-10-03*
16404 -------
16406 - bpo-31641: Re-allow arbitrary iterables in
16410 -----
16412 - bpo-31662: Fix typos in Windows ``uploadrelease.bat`` script. Fix Windows
16415 - bpo-31423: Fix building the PDF documentation with newer versions of
16422 *Release date: 2017-09-18*
16425 --------
16427 - bpo-29781: SSLObject.version() now correctly returns None when handshake
16430 - bpo-30947: Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to
16434 -----------------
16436 - bpo-31471: Fix an assertion failure in `subprocess.Popen()` on Windows, in
16439 - bpo-31418: Fix an assertion failure in `PyErr_WriteUnraisable()` in case
16442 - bpo-31416: Fix assertion failures in case of a bad warnings.filters or
16445 - bpo-31411: Raise a TypeError instead of SystemError in case
16446 warnings.onceregistry is not a dictionary. Patch by Oren Milman.
16448 - bpo-31373: Fix several possible instances of undefined behavior due to
16449 floating-point demotions.
16451 - bpo-30465: Location information (``lineno`` and ``col_offset``) in
16452 f-strings is now (mostly) correct. This fixes tools like flake8 from
16455 - bpo-31343: Include sys/sysmacros.h for major(), minor(), and makedev().
16458 - bpo-31291: Fix an assertion failure in `zipimport.zipimporter.get_data` on
16462 - bpo-31271: Fix an assertion failure in the write() method of
16466 - bpo-31243: Fix a crash in some methods of `io.TextIOWrapper`, when the
16467 decoder's state is invalid. Patch by Oren Milman.
16469 - bpo-30721: ``print`` now shows correct usage hint for using Python 2
16472 - bpo-31070: Fix a race condition in importlib _get_module_lock().
16474 - bpo-31095: Fix potential crash during GC caused by ``tp_dealloc`` which
16477 - bpo-31071: Avoid masking original TypeError in call with * unpacking when
16480 - bpo-30978: str.format_map() now passes key lookup exceptions through.
16483 - bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state.
16485 - bpo-30876: Relative import from unloaded package now reimports the package
16486 instead of failing with SystemError. Relative import from non-package now
16489 - bpo-30703: Improve signal delivery. Avoid using Py_AddPendingCall from
16490 signal handler, to avoid calling signal-unsafe functions. The tests I'm
16494 - bpo-30765: Avoid blocking in pthread_mutex_lock() when
16495 PyThread_acquire_lock() is asked not to block.
16497 - bpo-31161: Make sure the 'Missing parentheses' syntax error message is
16500 - bpo-30814: Fixed a race condition when import a submodule from a package.
16502 - bpo-30597: ``print`` now shows expected input in custom error message when
16506 -------
16508 - bpo-31499: xml.etree: Fix a crash when a parser is part of a reference
16511 - bpo-28556: typing.get_type_hints now finds the right globalns for classes
16514 - bpo-28556: Speed improvements to the ``typing`` module. Original PRs by
16517 - bpo-31544: The C accelerator module of ElementTree ignored exceptions
16520 - bpo-31234: socket.create_connection() now fixes manually a reference
16523 - bpo-31457: LoggerAdapter objects can now be nested.
16525 - bpo-31400: Improves SSL error handling to avoid losing error numbers.
16527 - bpo-28958: ssl.SSLContext() now uses OpenSSL error information when a
16530 - bpo-27340: SSLSocket.sendall() now uses memoryview to create slices of
16531 data. This fixes support for all bytes-like object. It is also more
16534 - bpo-31178: Fix string concatenation bug in rare error path in the
16537 - bpo-31350: Micro-optimize :func:`asyncio._get_running_loop` to become up
16540 - bpo-31170: expat: Update libexpat from 2.2.3 to 2.2.4. Fix copying of
16541 partial characters for UTF-8 input (libexpat bug 115):
16544 - bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3.
16546 - bpo-29212: Fix concurrent.futures.thread.ThreadPoolExecutor threads to
16548 is supplied. They will now identify themselves as
16549 "ThreadPoolExecutor-y_n".
16551 - bpo-9146: Fix a segmentation fault in _hashopenssl when standard hash
16553 in some special FIPS-140 build environments.
16555 - bpo-27144: The ``map()`` and ``as_completed()`` iterators in
16558 - bpo-10746: Fix ctypes producing wrong :pep:`3118` type codes for integer
16561 - bpo-22536: The subprocess module now sets the filename when
16562 FileNotFoundError is raised on POSIX systems due to the executable or cwd
16565 - bpo-31249: concurrent.futures: WorkItem.run() used by ThreadPoolExecutor
16569 - bpo-31247: xmlrpc.server now explicitly breaks reference cycles when using
16572 - bpo-30102: The ssl and hashlib modules now call
16575 such as POWER8. Patch is based on research from Gustavo Serra Scalet.
16577 - bpo-31185: Fixed miscellaneous errors in asyncio speedup module.
16579 - bpo-31135: ttk: fix the destroy() method of LabeledScale and OptionMenu
16585 - bpo-31107: Fix `copyreg._slotnames()` mangled attribute calculation for
16588 - bpo-31061: Fixed a crash when using asyncio and threads.
16590 - bpo-30502: Fix handling of long oids in ssl. Based on patch by Christian
16593 - bpo-30119: ftplib.FTP.putline() now throws ValueError on commands that
16594 contains CR or LF. Patch by Dong-hee Na.
16596 - bpo-30595: multiprocessing.Queue.get() with a timeout now polls its reader
16597 in non-blocking mode if it succeeded to acquire the lock but the acquire
16600 - bpo-29403: Fix ``unittest.mock``'s autospec to not fail on method-bound
16603 - bpo-30961: Fix decrementing a borrowed reference in tracemalloc.
16605 - bpo-25684: Change ``ttk.OptionMenu`` radiobuttons to be unique across
16608 - bpo-30886: Fix multiprocessing.Queue.join_thread(): it now waits until the
16612 - bpo-29854: Fix segfault in readline when using readline's history-size
16615 - bpo-30319: socket.close() now ignores ECONNRESET error.
16617 - bpo-30828: Fix out of bounds write in
16620 - bpo-30807: signal.setitimer() may disable the timer when passed a tiny
16621 value. Tiny values (such as 1e-6) are valid non-zero values for
16622 setitimer(), which is specified as taking microsecond-resolution
16624 1e-6 into a zero interval, therefore disabling the timer instead of
16625 (re-)scheduling it.
16627 - bpo-30441: Fix bug when modifying os.environ while iterating over it
16629 - bpo-30532: Fix email header value parser dropping folding white space in
16632 - bpo-30879: os.listdir() and os.scandir() now emit bytes names when called
16633 with bytes-like argument.
16635 - bpo-30746: Prohibited the '=' character in environment variable names in
16638 - bpo-29755: Fixed the lgettext() family of functions in the gettext module.
16642 -------------
16644 - bpo-31294: Fix incomplete code snippet in the ZeroMQSocketListener and
16647 - bpo-21649: Add RFC 7525 and Mozilla server side TLS links to SSL
16650 - bpo-30803: Clarify doc on truth value testing. Original patch by Peter
16654 -----
16656 - bpo-31320: Silence traceback in test_ssl
16658 - bpo-25674: Remove sha256.tbs-internet.com ssl test
16660 - bpo-30715: Address ALPN callback changes for OpenSSL 1.1.0f. The latest
16663 - bpo-30822: regrtest: Exclude tzdata from regrtest --all. When running the
16664 test suite using --use=all / -u all, exclude tzdata since it makes
16665 test_datetime too slow (15-20 min on some buildbots) which then times out
16667 -u extralargefile to run test_zipfile64.
16670 -----
16672 - bpo-30854: Fix compile error when compiling --without-threads. Patch by
16676 -------
16678 - bpo-30389: Adds detection of Visual Studio 2017 to distutils on Windows.
16680 - bpo-31340: Change to building with MSVC v141 (included with Visual Studio
16683 - bpo-30581: os.cpu_count() now returns the correct number of processors on
16684 Windows when the number of logical processors is greater than 64.
16686 - bpo-30731: Add a missing xmlns to python.manifest so that it matches the
16690 ----
16692 - bpo-31493: IDLE code context -- fix code update and font update timers.
16695 - bpo-31488: IDLE - Update non-key options in former extension classes. When
16700 - bpo-31477: IDLE - Improve rstrip entry in doc. Strip trailing whitespace
16703 - bpo-31480: IDLE - make tests pass with zzdummy extension disabled by
16706 - bpo-31421: Document how IDLE runs tkinter programs. IDLE calls tcl/tk
16710 - bpo-31414: IDLE -- fix tk entry box tests by deleting first. Adding to an
16711 int entry is not the same as deleting and inserting because int('') will
16714 - bpo-31051: Rearrange IDLE configdialog GenPage into Window, Editor, and
16717 - bpo-30617: IDLE - Add docstrings and tests for outwin subclass of editor.
16721 - bpo-31287: IDLE - Do not modify tkinter.message in test_configdialog.
16723 - bpo-27099: Convert IDLE's built-in 'extensions' to regular features. About
16726 maintenance. Hence the conversion. The main difference for users is that
16729 the keyset. All bindings are defined together in the system-specific
16730 default keysets in config-extensions.def. All custom keysets are saved as
16731 a whole in config-extension.cfg. All take effect as soon as one clicks
16732 Apply or Ok. The affected events are '<<force-open-completions>>',
16733 '<<expand-word>>', '<<force-open-calltip>>', '<<flash-paren>>',
16734 '<<format-paragraph>>', '<<run-module>>', '<<check-module>>', and
16735 '<<zoom-height>>'. Any (global) customizations made before 3.6.3 will not
16736 affect their keyset-specific customization after 3.6.3. and vice versa.
16739 - bpo-31206: IDLE: Factor HighPage(Frame) class from ConfigDialog. Patch by
16742 - bpo-31001: Add tests for configdialog highlight tab. Patch by Cheryl
16745 - bpo-31205: IDLE: Factor KeysPage(Frame) class from ConfigDialog. The
16748 - bpo-31130: IDLE -- stop leaks in test_configdialog. Initial patch by
16751 - bpo-31002: Add tests for configdialog keys tab. Patch by Cheryl Sabella.
16753 - bpo-19903: IDLE: Calltips use `inspect.signature` instead of
16757 - bpo-31083: IDLE - Add an outline of a TabPage class in configdialog.
16760 - bpo-31050: Factor GenPage(Frame) class from ConfigDialog. The slightly
16763 - bpo-31004: IDLE - Factor FontPage(Frame) class from ConfigDialog. Slightly
16767 - bpo-30781: IDLE - Use ttk widgets in ConfigDialog. Patches by Terry Jan
16770 - bpo-31060: IDLE - Finish rearranging methods of ConfigDialog Grouping
16774 - bpo-30853: IDLE -- Factor a VarTrace class out of ConfigDialog. Instance
16776 When tracing is turned on, setting the variable calls the function. Test
16777 coverage for the new class is 100%.
16779 - bpo-31003: IDLE: Add more tests for General tab.
16781 - bpo-30993: IDLE - Improve configdialog font page and tests. In
16792 - bpo-30981: IDLE -- Add more configdialog font page tests.
16794 - bpo-28523: IDLE: replace 'colour' with 'color' in configdialog.
16796 - bpo-30917: Add tests for idlelib.config.IdleConf. Increase coverage from
16799 - bpo-30934: Document coverage details for idlelib tests. Add section to
16800 idlelib/idle-test/README.txt. Include check that branches are taken both
16801 ways. Exclude IDLE-specific code that does not run during unit tests.
16803 - bpo-30913: IDLE: Document ConfigDialog tk Vars, methods, and widgets in
16807 - bpo-30899: IDLE: Add tests for ConfigParser subclasses in config. Patch by
16810 - bpo-30881: IDLE: Add docstrings to browser.py. Patch by Cheryl Sabella.
16812 - bpo-30851: IDLE: Remove unused variables in configdialog. One is a
16813 duplicate, one is set but cannot be altered by users. Patch by Cheryl
16816 - bpo-30870: IDLE: In Settings dialog, select font with Up, Down keys as
16819 - bpo-8231: IDLE: call config.IdleConf.GetUserCfgDir only once.
16821 - bpo-30779: IDLE: Factor ConfigChanges class from configdialog, put in
16831 - bpo-30777: IDLE: configdialog - Add docstrings and fix comments. Patch by
16834 - bpo-30495: IDLE: Improve textview with docstrings, PEP8 names, and more
16837 - bpo-30723: IDLE: Make several improvements to parenmatch. Add 'parens'
16838 style to highlight both opener and closer. Make 'default' style, which is
16839 not default, a synonym for 'opener'. Make time-delay work the same with
16843 - bpo-30674: IDLE: add docstrings to grep module. Patch by Cheryl Sabella
16845 - bpo-21519: IDLE's basic custom key entry dialog now detects duplicates
16848 - bpo-29910: IDLE no longer deletes a character after commenting out a
16852 - bpo-30728: Review and change idlelib.configdialog names. Lowercase method
16857 - bpo-6739: IDLE: Verify user-entered key sequences by trying to bind them
16862 -----------
16864 - bpo-30983: gdb integration commands (py-bt, etc.) work on optimized shared
16866 inlines PyEval_EvalFrameEx on non-debug shared builds. This broke the
16867 ability to use py-bt, py-up, and a few other Python-specific gdb
16868 integrations. The problem is fixed by only looking for
16869 _PyEval_EvalFrameDefault frames in python-gdb.py. Original patch by Bruno
16876 *Release date: 2017-07-17*
16885 *Release date: 2017-07-07*
16888 --------
16890 - bpo-30730: Prevent environment variables injection in subprocess on
16894 - bpo-30694: Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple
16895 security vulnerabilities including: CVE-2017-9233 (External entity
16896 infinite loop DoS), CVE-2016-9063 (Integer overflow, re-fix),
16897 CVE-2016-0718 (Fix regression bugs from 2.2.0's fix to CVE-2016-0718) and
16898 CVE-2012-0876 (Counter hash flooding with SipHash). Note: the
16899 CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't
16903 - bpo-30500: Fix urllib.parse.splithost() to correctly parse fragments. For
16912 *Release date: 2017-06-17*
16915 -----------------
16917 - bpo-30682: Removed a too-strict assertion that failed for certain
16918 f-strings, such as eval("f'\\\n'") and eval("f'\\\r'").
16920 - bpo-30604: Move co_extra_freefuncs to not be per-thread to avoid crashes
16922 - bpo-29104: Fixed parsing backslashes in f-strings.
16924 - bpo-27945: Fixed various segfaults with dict when input collections are
16928 - bpo-25794: Fixed type.__setattr__() and type.__delattr__() for
16929 non-interned attribute names. Based on patch by Eryk Sun.
16931 - bpo-30039: If a KeyboardInterrupt happens when the interpreter is in the
16935 - bpo-12414: sys.getsizeof() on a code object now returns the sizes which
16937 by Dong-hee Na.
16939 - bpo-29949: Fix memory usage regression of set and frozenset object.
16941 - bpo-29935: Fixed error messages in the index() method of tuple, list and
16944 - bpo-29859: Show correct error messages when any of the pthread_* calls in
16947 - bpo-28876: ``bool(range)`` works even if ``len(range)`` raises
16950 - bpo-29600: Fix wrapping coroutine return values in StopIteration.
16952 - bpo-28856: Fix an oversight that %b format for bytes should support
16955 - bpo-29714: Fix a regression that bytes format may fail when containing
16958 - bpo-29478: If max_line_length=None is specified while using the Compat32
16959 policy, it is no longer ignored. Patch by Mircea Cosbuc.
16962 -------
16964 - bpo-30616: Functional API of enum allows to create empty enums. Patched by
16965 Dong-hee Na
16967 - bpo-30038: Fix race condition between signal delivery and wakeup file
16970 - bpo-23894: lib2to3 now recognizes ``rb'...'`` and ``f'...'`` strings.
16972 - bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
16975 - bpo-30149: inspect.signature() now supports callables with
16976 variable-argument parameters wrapped with partialmethod. Patch by Dong-hee
16979 - bpo-30645: Fix path calculation in imp.load_package(), fixing it for cases
16980 when a package is only shipped with bytecodes. Patch by Alexandru
16983 - bpo-29931: Fixed comparison check for ipaddress.ip_interface objects.
16986 - bpo-30605: re.compile() no longer raises a BytesWarning when compiling a
16990 --------
16992 - bpo-29591: Update expat copy from 2.1.1 to 2.2.0 to get fixes of
16993 CVE-2016-0718 and CVE-2016-4472. See
16997 -------
16999 - bpo-24484: Avoid race condition in multiprocessing cleanup (#2159)
17001 - bpo-28994: The traceback no longer displayed for SystemExit raised in a
17004 - bpo-30508: Don't log exceptions if Task/Future "cancel()" method was
17007 - bpo-28556: Updates to typing module: Add generic AsyncContextManager, add
17011 - bpo-29870: Fix ssl sockets leaks when connection is aborted in asyncio/ssl
17014 - bpo-29743: Closing transport during handshake process leaks open socket.
17017 - bpo-27585: Fix waiter cancellation in asyncio.Lock. Patch by Mathieu
17020 - bpo-30418: On Windows, subprocess.Popen.communicate() now also ignore
17021 EINVAL on stdin.write() if the child process is still running but closed
17024 - bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch
17027 - bpo-29581: ABCMeta.__new__ now accepts ``**kwargs``, allowing abstract
17031 - bpo-30557: faulthandler now correctly filters and displays exception codes
17034 - bpo-30378: Fix the problem that logging.handlers.SysLogHandler cannot
17037 - bpo-29960: Preserve generator state when _random.Random.setstate() raises
17040 - bpo-30414: multiprocessing.Queue._feed background running thread do not
17043 - bpo-30003: Fix handling escape characters in HZ codec. Based on patch by
17046 - bpo-30301: Fix AttributeError when using SimpleQueue.empty() under *spawn*
17049 - bpo-30329: imaplib and poplib now catch the Windows socket WSAEINVAL error
17053 - bpo-30375: Warnings emitted when compile a regular expression now always
17057 - bpo-30048: Fixed ``Task.cancel()`` can be ignored when the task is running
17060 - bpo-30266: contextlib.AbstractContextManager now supports
17061 anti-registration by setting __enter__ = None or __exit__ = None,
17062 following the pattern introduced in bpo-25958. Patch by Jelle Zijlstra.
17064 - bpo-30298: Weaken the condition of deprecation warnings for inline
17070 - bpo-29990: Fix range checking in GB18030 decoder. Original patch by Ma
17073 - bpo-26293: Change resulted because of zipfile breakage. (See also:
17074 bpo-29094)
17076 - bpo-30243: Removed the __init__ methods of _json's scanner and encoder.
17080 - bpo-30185: Avoid KeyboardInterrupt tracebacks in forkserver helper process
17081 when Ctrl-C is received.
17083 - bpo-28556: Various updates to typing module: add typing.NoReturn type, use
17084 WrapperDescriptorType, minor bug-fixes. Original PRs by Jim
17085 Fasarakis-Hilliard and Ivan Levkivskyi.
17087 - bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux.
17089 - bpo-30070: Fixed leaks and crashes in errors handling in the parser
17092 - bpo-30061: Fixed crashes in IOBase methods __next__() and readlines() when
17093 readline() or __next__() respectively return non-sizeable object. Fixed
17097 - bpo-30017: Allowed calling the close() method of the zip entry writer
17101 - bpo-30068: _io._IOBase.readlines will check if it's closed first when hint
17102 is present.
17104 - bpo-29694: Fixed race condition in pathlib mkdir with flags parents=True.
17107 - bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
17110 - bpo-29998: Pickling and copying ImportError now preserves name and path
17113 - bpo-29953: Fixed memory leaks in the replace() method of datetime and time
17116 - bpo-29942: Fix a crash in itertools.chain.from_iterable when encountering
17119 - bpo-27863: Fixed multiple crashes in ElementTree caused by race conditions
17122 - bpo-28699: Fixed a bug in pools in multiprocessing.pool that raising an
17126 - bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when
17129 - bpo-29861: Release references to tasks, their arguments and their results
17132 - bpo-29884: faulthandler: Restore the old sigaltstack during teardown.
17135 - bpo-25455: Fixed crashes in repr of recursive buffered file-like objects.
17137 - bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords
17140 - bpo-29742: get_extra_info() raises exception if get called on closed ssl
17143 - bpo-8256: Fixed possible failing or crashing input() if attributes
17147 - bpo-28298: Fix a bug that prevented array 'Q', 'L' and 'I' from accepting
17151 - bpo-28231: The zipfile module now accepts path-like objects for external
17154 - bpo-26915: index() and count() methods of collections.abc.Sequence now
17157 - bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (or any other
17161 - bpo-30177: path.resolve(strict=False) no longer cuts the path after the
17165 ----
17167 - bpo-15786: Fix several problems with IDLE's autocompletion box. The
17172 - bpo-25514: Add doc subsubsection about IDLE failure to start. Popup
17173 no-connection message directs users to this section.
17175 - bpo-30642: Fix reference leaks in IDLE tests. Patches by Louie Lu and
17178 - bpo-30495: Add docstrings for textview.py and use PEP8 names. Patches by
17181 - bpo-30290: Help-about: use pep8 names and add tests. Increase coverage to
17184 - bpo-30303: Add _utest option to textview; add new tests. Increase coverage
17188 -----
17190 - bpo-27867: Function PySlice_GetIndicesEx() no longer replaced with a macro
17191 if Py_LIMITED_API is not set.
17194 -----
17196 - bpo-29941: Add ``--with-assertions`` configure flag to explicitly enable C
17197 ``assert()`` checks. Defaults to off. ``--with-pydebug`` implies
17198 ``--with-assertions``.
17200 - bpo-28787: Fix out-of-tree builds of Python when configured with
17201 ``--with--dtrace``.
17203 - bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
17205 ``--enable-optimizations``.
17207 - bpo-23404: Don't regenerate generated files based on file modification
17208 time anymore: the action is now explicit. Replace ``make touch`` with
17209 ``make regen-all``.
17211 - bpo-29643: Fix ``--enable-optimization`` didn't work.
17214 -------------
17216 - bpo-30176: Add missing attribute related constants in curses
17219 - bpo-30052: the link targets for :func:`bytes` and :func:`bytearray` are
17221 builtin function entries. Use :ref:`bytes <func-bytes>` and
17222 :ref:`bytearray <func-bytearray>` to reference the latter. In order to
17223 ensure this and future cross-reference updates are applied automatically,
17227 - bpo-26985: Add missing info of code object in inspect documentation.
17230 -----------
17232 - bpo-29367: python-gdb.py now supports also ``method-wrapper``
17236 -----
17238 - bpo-30357: test_thread: setUp() now uses support.threading_setup() and
17243 - bpo-30197: Enhanced functions swap_attr() and swap_item() in the
17247 clause, if there is one.
17250 -------
17252 - bpo-30687: Locate msbuild.exe on Windows when building rather than
17255 - bpo-30450: The build process on Windows no longer depends on Subversion,
17257 3.6 is not found on the system (via ``py -3.6``), NuGet is used to
17258 download a copy of 32-bit Python.
17264 *Release date: 2017-03-21*
17267 -----------------
17269 - bpo-29723: The ``sys.path[0]`` initialization change for bpo-29139 caused
17270 a regression by revealing an inconsistency in how sys.path is initialized
17278 -----
17280 - bpo-27593: fix format of git information used in sys.version
17282 - Fix incompatible comment in python.h
17288 *Release date: 2017-03-04*
17291 -----------------
17293 - bpo-28893: Set correct __cause__ for errors about invalid awaitables
17296 - bpo-29683: Fixes to memory allocation in _PyCode_SetExtra. Patch by Brian
17299 - bpo-29684: Fix minor regression of PyEval_CallObjectWithKeywords. It
17300 should raise TypeError when kwargs is not a dict. But it might cause segv
17301 when args=NULL and kwargs is not a dict.
17303 - bpo-28598: Support __rmod__ for subclasses of str being called before
17306 - bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX. Patch by
17309 - bpo-29602: Fix incorrect handling of signed zeros in complex constructor
17313 - bpo-29347: Fixed possibly dereferencing undefined pointers when creating
17316 - bpo-29438: Fixed use-after-free problem in key sharing dict.
17318 - bpo-29319: Prevent RunMainFromImporter overwriting sys.path[0].
17320 - bpo-29337: Fixed possible BytesWarning when compare the code objects.
17323 - bpo-29327: Fixed a crash when pass the iterable keyword argument to
17326 - bpo-29034: Fix memory leak and use-after-free in os module
17329 - bpo-29159: Fix regression in bytes(x) when x.__index__() raises Exception.
17331 - bpo-28932: Do not include <sys/random.h> if it does not exist.
17333 - bpo-25677: Correct the positioning of the syntax error caret for indented
17336 - bpo-29000: Fixed bytes formatting of octals with zero padding in alternate
17339 - bpo-26919: On Android, operating system data is now always encoded/decoded
17340 to/from UTF-8, instead of the locale encoding to avoid inconsistencies
17341 with os.fsencode() and os.fsdecode() which are already using UTF-8.
17343 - bpo-28991: functools.lru_cache() was susceptible to an obscure reentrancy
17344 bug triggerable by a monkey-patched len() function.
17346 - bpo-28739: f-string expressions are no longer accepted as docstrings and
17349 - bpo-28512: Fixed setting the offset attribute of SyntaxError by
17352 - bpo-28918: Fix the cross compilation of xxlimited when Python has been
17355 - bpo-28731: Optimize _PyDict_NewPresized() to create correct size dict.
17359 -------
17361 - bpo-29169: Update zlib to 1.2.11.
17363 - bpo-29623: Allow use of path-like object as a single argument in
17366 - bpo-28963: Fix out of bound iteration in
17369 - bpo-29704: asyncio.subprocess.SubprocessStreamProtocol no longer closes
17372 - bpo-29271: Fix Task.current_task and Task.all_tasks implemented in C to
17375 - bpo-29703: Fix asyncio to support instantiation of new event loops in
17378 - bpo-29376: Fix assertion error in threading._DummyThread.is_alive().
17380 - bpo-28624: Add a test that checks that cwd parameter of Popen() accepts
17383 - bpo-28518: Start a transaction implicitly before a DML statement. Patch by
17386 - bpo-29532: Altering a kwarg dictionary passed to functools.partial() no
17389 - bpo-29110: Fix file object leak in aifc.open() when file is given as a
17390 filesystem path and is not in valid AIFF format. Patch by Anthony Zhang.
17392 - bpo-28556: Various updates to typing module: typing.Counter,
17396 - bpo-29100: Fix datetime.fromtimestamp() regression introduced in Python
17399 - bpo-29519: Fix weakref spewing exceptions during interpreter shutdown when
17402 - bpo-29416: Prevent infinite loop in pathlib.Path.mkdir
17404 - bpo-29444: Fixed out-of-bounds buffer access in the group() method of the
17407 - bpo-29335: Fix subprocess.Popen.wait() when the child process has exited
17410 - bpo-29290: Fix a regression in argparse that help messages would wrap at
17411 non-breaking spaces.
17413 - bpo-28735: Fixed the comparison of mock.MagickMock with mock.ANY.
17415 - bpo-29316: Restore the provisional status of typing module, add
17418 - bpo-29219: Fixed infinite recursion in the repr of uninitialized
17421 - bpo-29011: Fix an important omission by adding Deque to the typing module.
17423 - bpo-28969: Fixed race condition in C implementation of
17428 - bpo-29142: In urllib.request, suffixes in no_proxy environment variable
17432 - bpo-28961: Fix unittest.mock._Call helper: don't ignore the name parameter
17435 - bpo-29203: functools.lru_cache() now respects :pep:`468` and preserves the
17436 order of keyword arguments. f(a=1, b=2) is now cached separately from
17439 - bpo-15812: inspect.getframeinfo() now correctly shows the first line of a
17442 - bpo-29094: Offsets in a ZIP file created with extern file object and modes
17445 - bpo-29085: Allow random.Random.seed() to use high quality OS randomness
17448 - bpo-29061: Fixed bug in secrets.randbelow() which would hang when given a
17451 - bpo-29079: Prevent infinite loop in pathlib.resolve() on Windows
17453 - bpo-13051: Fixed recursion errors in large or resized
17456 - bpo-29119: Fix weakrefs in the pure python version of
17460 - bpo-9770: curses.ascii predicates now work correctly with negative
17463 - bpo-28427: old keys should not remove new values from WeakValueDictionary
17466 - bpo-28923: Remove editor artifacts from Tix.py.
17468 - bpo-29055: Neaten-up empty population error on random.choice() by
17471 - bpo-28871: Fixed a crash when deallocate deep ElementTree.
17473 - bpo-19542: Fix bugs in WeakValueDictionary.setdefault() and
17476 - bpo-20191: Fixed a crash in resource.prlimit() when passing a sequence
17479 - bpo-28779: multiprocessing.set_forkserver_preload() would crash the
17483 - bpo-28847: dbm.dumb now supports reading read-only files and no longer
17484 writes the index file when it is not changed.
17486 - bpo-26937: The chown() method of the tarfile.TarFile class does not fail
17491 ----
17493 - bpo-29071: IDLE colors f-string prefixes (but not invalid ur prefixes).
17495 - bpo-28572: Add 10% to coverage of IDLE's test_configdialog. Update and
17499 -------
17501 - bpo-29579: Removes readme.txt from the installer
17503 - bpo-29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
17505 - bpo-28164: Correctly handle special console filenames (patch by Eryk Sun)
17507 - bpo-29409: Implement :pep:`529` for io.FileIO (Patch by Eryk Sun)
17509 - bpo-29392: Prevent crash when passing invalid arguments into msvcrt
17512 - bpo-25778: winreg does not truncate string correctly (Patch by Eryk Sun)
17514 - bpo-28896: Deprecate WindowsRegistryFinder and disable it by default.
17517 -----
17519 - bpo-27867: Function PySlice_GetIndicesEx() is replaced with a macro if
17520 Py_LIMITED_API is not set or set to the value between 0x03050400 and
17523 - bpo-29083: Fixed the declaration of some public API functions.
17527 PY_SSIZE_T_CLEAN is defined.
17529 - bpo-29058: All stable API extensions added after Python 3.2 are now
17530 available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
17534 -------------
17536 - bpo-28929: Link the documentation to its source file on GitHub.
17538 - bpo-25008: Document smtpd.py as effectively deprecated and add a pointer
17539 to aiosmtpd, a third-party asyncio-based replacement.
17541 - bpo-26355: Add canonical header link on each page to corresponding major
17544 - bpo-29349: Fix Python 2 syntax in code for building the documentation.
17547 -----
17549 - bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. Skip
17553 - bpo-29571: to match the behaviour of the ``re.LOCALE`` flag,
17556 correctly skip the test when the default locale encoding is a multi-byte
17559 - bpo-28950: Disallow -j0 to be combined with -T/-l in regrtest command line
17562 - bpo-28683: Fix the tests that bind() a unix socket and raise
17563 PermissionError on Android for a non-root user.
17565 - bpo-26939: Add the support.setswitchinterval() function to fix
17569 -----
17571 - bpo-27593: sys.version and the platform module python_build(),
17575 - bpo-29572: Update Windows build and OS X installers to use OpenSSL 1.0.2k.
17577 - bpo-26851: Set Android compilation and link flags.
17579 - bpo-28768: Fix implicit declaration of function _setmode. Patch by
17582 - bpo-29080: Removes hard dependency on hg.exe from PCBuild/build.bat
17584 - bpo-23903: Added missed names to PC/python3.def.
17586 - bpo-28762: lockf() is available on Android API level 24, but the F_LOCK
17587 macro is not defined in android-ndk-r13.
17589 - bpo-28538: Fix the compilation error that occurs because if_nameindex() is
17590 available on Android API level 24, but the if_nameindex structure is not
17593 - bpo-20211: Do not add the directory for installing C header files and the
17597 - bpo-28849: Do not define sys.implementation._multiarch on Android.
17603 *Release date: 2016-12-23*
17612 *Release date: 2016-12-16*
17615 -----------------
17617 - bpo-28147: Fix a memory leak in split-table dictionaries: setattr() must
17620 - bpo-28990: Fix asyncio SSL hanging if connection is closed before
17621 handshake is completed. (Patch by HoHo-Ho)
17624 -----------
17626 - bpo-28770: Fix python-gdb.py for fastcalls.
17629 -------
17631 - bpo-28896: Deprecate WindowsRegistryFinder.
17634 -----
17636 - bpo-28898: Prevent gdb build errors due to HAVE_LONG_LONG redefinition.
17642 *Release date: 2016-12-06*
17645 -----------------
17647 - bpo-23722: Rather than silently producing a class that doesn't support
17648 zero-argument ``super()`` in methods, failing to pass the new
17650 ``DeprecationWarning`` and a class that supports zero-argument
17653 - bpo-28797: Modifying the class __dict__ inside the __set_name__ method of
17654 a descriptor that is used inside that class no longer prevents calling the
17657 - bpo-28782: Fix a bug in the implementation ``yield from`` when checking if
17658 the next instruction is YIELD_FROM. Regression introduced by WORDCODE
17662 -------
17664 - bpo-27030: Unknown escapes in re.sub() replacement template are allowed
17667 - bpo-28835: Fix a regression introduced in warnings.catch_warnings(): call
17670 - bpo-27172: To assist with upgrades from 2.7, the previously documented
17672 decision may be revisited again after the Python 2.7 branch is no longer
17675 - bpo-26273: Add new :data:`socket.TCP_CONGESTION` (Linux 2.6.13) and
17679 - bpo-24142: Reading a corrupt config file left configparser in an invalid
17682 - bpo-28843: Fix asyncio C Task to handle exceptions __traceback__.
17685 -----
17687 - bpo-28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
17690 -------------
17692 - bpo-23722: The data model reference and the porting section in the What's
17694 custom metaclasses to fully support :pep:`487` and zero-argument
17698 -----------
17700 - bpo-28023: Fix python-gdb.py didn't support new dict implementation.
17706 *Release date: 2016-11-21*
17709 -----------------
17711 - bpo-28532: Show sys.version when -V option is supplied twice.
17713 - bpo-27100: The with-statement now checks for __enter__ before it checks
17717 - bpo-28746: Fix the set_inheritable() file descriptor method on platforms
17720 - bpo-26920: Fix not getting the locale's charset upon initializing the
17723 - bpo-28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
17726 - bpo-19398: Extra slash no longer added to sys.path components in case of
17727 empty compile-time PYTHONPATH components.
17729 - bpo-28665: Improve speed of the STORE_DEREF opcode by 40%.
17731 - bpo-28583: PyDict_SetDefault didn't combine split table when needed. Patch
17734 - bpo-27243: Change PendingDeprecationWarning -> DeprecationWarning. As it
17738 - bpo-26182: Fix a refleak in code that raises DeprecationWarning.
17740 - bpo-28721: Fix asynchronous generators aclose() and athrow() to handle
17744 -------
17746 - bpo-28752: Restored the __reduce__() methods of datetime objects.
17748 - bpo-28727: Regular expression patterns, _sre.SRE_Pattern objects created
17751 the warnings module is reloaded (thing usually only done in unit tests).
17753 - bpo-20572: The subprocess.Popen.wait method's undocumented endtime
17756 - bpo-25659: In ctypes, prevent a crash calling the from_buffer() and
17759 - bpo-19717: Makes Path.resolve() succeed on paths that do not exist. Patch
17762 - bpo-28563: Fixed possible DoS and arbitrary code execution when handle
17766 - bpo-28387: Fixed possible crash in _io.TextIOWrapper deallocator when the
17767 garbage collector is invoked in other thread. Based on patch by Sebastian
17770 - bpo-28600: Optimize loop.call_soon.
17772 - bpo-28613: Fix get_event_loop() return the current loop if called from
17775 - bpo-28634: Fix asyncio.isfuture() to support unittest.Mock.
17777 - bpo-26081: Fix refleak in _asyncio.Future.__iter__().throw.
17779 - bpo-28639: Fix inspect.isawaitable to always return bool Patch by Justin
17782 - bpo-28652: Make loop methods reject socket kinds they do not support.
17784 - bpo-28653: Fix a refleak in functools.lru_cache.
17786 - bpo-28703: Fix asyncio.iscoroutinefunction to handle Mock objects.
17788 - bpo-28704: Fix create_unix_server to support Path-like objects (PEP 519).
17790 - bpo-28720: Add collections.abc.AsyncGenerator.
17793 -------------
17795 - bpo-28513: Documented command-line interface of zipfile.
17798 -----
17800 - bpo-28666: Now test.support.rmtree is able to remove unwritable or
17803 - bpo-23839: Various caches now are cleared before running every test file.
17806 -----
17808 - bpo-10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
17811 - bpo-26359: Rename --with-optimiations to --enable-optimizations.
17813 - bpo-28676: Prevent missing 'getentropy' declaration warning on macOS.
17820 *Release date: 2016-10-31*
17823 -----------------
17825 - bpo-28128: Deprecation warning for invalid str and byte escape sequences
17829 - bpo-28509: dict.update() no longer allocate unnecessary large memory.
17831 - bpo-28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug
17834 - bpo-28517: Fixed of-by-one error in the peephole optimizer that caused
17837 - bpo-28214: Improved exception reporting for problematic __set_name__
17840 - bpo-23782: Fixed possible memory leak in _PyTraceback_Add() and exception
17843 - bpo-28471: Fix "Python memory allocator called without holding the GIL"
17847 -------
17849 - bpo-27517: LZMA compressor and decompressor no longer raise exceptions if
17852 - bpo-28549: Fixed segfault in curses's addch() with ncurses6.
17854 - bpo-28449: tarfile.open() with mode "r" or "r:" now tries to open a tar
17858 - bpo-23262: The webbrowser module now supports Firefox 36+ and derived
17861 - bpo-27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
17863 now works if float value is set to underlying Tk variable.
17865 - bpo-18844: The various ways of specifying weights for random.choices() now
17868 - bpo-28255: calendar.TextCalendar().prmonth() no longer prints a space at
17872 - bpo-20491: The textwrap.TextWrapper class now honors non-breaking spaces.
17875 - bpo-28353: os.fwalk() no longer fails on broken links.
17877 - bpo-28430: Fix iterator of C implemented asyncio.Future doesn't accept
17878 non-None value is passed to it.send(val).
17880 - bpo-27025: Generated names for Tkinter widgets now start by the "!" prefix
17883 - bpo-25464: Fixed HList.header_exists() in tkinter.tix module by addin a
17886 - bpo-28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.
17888 - bpo-25953: re.sub() now raises an error for invalid numerical group
17889 reference in replacement template even if the pattern is not found in the
17893 - bpo-18219: Optimize csv.DictWriter for large number of columns. Patch by
17896 - bpo-28448: Fix C implemented asyncio.Future didn't work on Windows.
17898 - bpo-28480: Fix error building socket module when multithreading is
17901 - bpo-24452: Make webbrowser support Chrome on Mac OS X.
17903 - bpo-20766: Fix references leaked by pdb in the handling of SIGINT
17906 - bpo-28492: Fix how StopIteration exception is raised in _asyncio.Future.
17908 - bpo-28500: Fix asyncio to handle async gens GC from another thread.
17910 - bpo-26923: Fix asyncio.Gather to refuse being cancelled once all children
17913 - bpo-26796: Don't configure the number of workers for default threadpool
17916 - bpo-28544: Implement asyncio.Task in C.
17919 -------
17921 - bpo-28522: Fixes mishandled buffer reallocation in getpathp.c
17924 -----
17926 - bpo-28444: Fix missing extensions modules when cross compiling.
17928 - bpo-28208: Update Windows build and OS X installers to use SQLite 3.14.2.
17930 - bpo-28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j.
17933 -----
17935 - bpo-26944: Fix test_posix for Android where 'id -G' is entirely wrong or
17938 - bpo-28409: regrtest: fix the parser of command line arguments.
17944 *Release date: 2016-10-10*
17947 -----------------
17949 - bpo-28183: Optimize and cleanup dict iteration.
17951 - bpo-26081: Added C implementation of asyncio.Future. Original patch by
17954 - bpo-28379: Added sanity checks and tests for PyUnicode_CopyCharacters().
17957 - bpo-28376: The type of long range iterator is now registered as Iterator.
17960 - bpo-28376: Creating instances of range_iterator by calling range_iterator
17961 type now is deprecated. Patch by Oren Milman.
17963 - bpo-28376: The constructor of range_iterator now checks that step is not
17966 - bpo-26906: Resolving special methods of uninitialized type now causes
17969 - bpo-18287: PyType_Ready() now checks that tp_name is not NULL. Original
17972 - bpo-24098: Fixed possible crash when AST is changed in process of
17975 - bpo-28201: Dict reduces possibility of 2nd conflict in hash table when
17978 - bpo-28350: String constants with null character no longer interned.
17980 - bpo-26617: Fix crash when GC runs during weakref callbacks.
17982 - bpo-27942: String constants now interned recursively in tuples and
17985 - bpo-21578: Fixed misleading error message when ImportError called with
17988 - bpo-28203: Fix incorrect type in complex(1.0, {2:3}) error message. Patch
17991 - bpo-28086: Single var-positional argument of tuple subtype was passed
17992 unscathed to the C-defined function. Now it is converted to exact tuple.
17994 - bpo-28214: Now __set_name__ is looked up on the class instead of the
17997 - bpo-27955: Fallback on reading /dev/urandom device when the getrandom()
18000 - bpo-28192: Don't import readline in isolated mode.
18002 - Upgrade internal unicode databases to Unicode version 9.0.0.
18004 - bpo-28131: Fix a regression in zipimport's compile_source(). zipimport
18007 - bpo-28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly
18010 - bpo-28120: Fix dict.pop() for splitted dictionary when trying to remove a
18011 "pending key" (Not yet inserted in split-table). Patch by Xiang Zhang.
18013 - bpo-26182: Raise DeprecationWarning when async and await keywords are used
18017 -------
18019 - bpo-27998: Fixed bytes path support in os.scandir() on Windows. Patch by
18022 - bpo-28317: The disassembler now decodes FORMAT_VALUE argument.
18024 - bpo-26293: Fixed writing ZIP files that starts not from the start of the
18028 - bpo-28380: unittest.mock Mock autospec functions now properly support
18031 - bpo-27181: remove statistics.geometric_mean and defer until 3.7.
18033 - bpo-28229: lzma module now supports pathlib.
18035 - bpo-28321: Fixed writing non-BMP characters with binary format in
18038 - bpo-28225: bz2 module now supports pathlib. Initial patch by Ethan
18041 - bpo-28227: gzip now supports pathlib. Patch by Ethan Furman.
18043 - bpo-27358: Optimized merging var-keyword arguments and improved error
18044 message when passing a non-mapping as a var-keyword argument.
18046 - bpo-28257: Improved error message when passing a non-iterable as a
18047 var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
18049 - bpo-28322: Fixed possible crashes when unpickle itertools objects from
18052 - bpo-28228: imghdr now supports pathlib.
18054 - bpo-28226: compileall now supports pathlib.
18056 - bpo-28314: Fix function declaration (C flags) for the getiterator() method
18059 - bpo-28148: Stop using localtime() and gmtime() in the time module.
18060 Introduced platform independent _PyTime_localtime API that is similar to
18063 - bpo-28253: Fixed calendar functions for extreme months: 0001-01 and
18064 9999-12. Methods itermonthdays() and itermonthdays2() are reimplemented so
18068 - bpo-28275: Fixed possible use after free in the decompress() methods of
18072 - bpo-27897: Fixed possible crash in sqlite3.Connection.create_collation()
18073 if pass invalid string-like object as a name. Patch by Xiang Zhang.
18075 - bpo-18844: random.choices() now has k as a keyword-only argument to
18079 - bpo-18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py.
18082 - bpo-27611: Fixed support of default root window in the tkinter.tix module.
18085 - bpo-27348: In the traceback module, restore the formatting of exception
18089 - bpo-25651: Allow falsy values to be used for msg parameter of subTest().
18091 - bpo-27778: Fix a memory leak in os.getrandom() when the getrandom() is
18094 - bpo-28200: Fix memory leak on Windows in the os module (fix
18097 - bpo-25400: RobotFileParser now correctly returns default values for
18100 - bpo-27932: Prevent memory leak in win32_ver().
18102 - Fix UnboundLocalError in socket._sendfile_use_sendfile.
18104 - bpo-28075: Check for ERROR_ACCESS_DENIED in Windows implementation of
18107 - bpo-22493: Warning message emitted by using inline flags in the middle of
18111 - bpo-25270: Prevent codecs.escape_encode() from raising SystemError when an
18112 empty bytestring is passed.
18114 - bpo-28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
18116 - bpo-25895: Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by
18119 - bpo-28114: Fix a crash in parse_envlist() when env contains byte strings.
18122 - bpo-27599: Fixed buffer overrun in binascii.b2a_qp() and
18125 - bpo-27906: Fix socket accept exhaustion during high TCP traffic. Patch by
18128 - bpo-28174: Handle when SO_REUSEPORT isn't properly supported. Patch by
18131 - bpo-26654: Inspect functools.partial in asyncio.Handle.__repr__. Patch by
18134 - bpo-26909: Fix slow pipes IO in asyncio. Patch by INADA Naoki.
18136 - bpo-28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.
18138 - bpo-27759: Fix selectors incorrectly retain invalid file descriptors.
18141 - bpo-28368: Refuse monitoring processes if the child watcher has no loop
18144 - bpo-28369: Raise RuntimeError when transport's FD is used with add_reader,
18147 - bpo-28370: Speedup asyncio.StreamReader.readexactly. Patch by Коренберг
18150 - bpo-28371: Deprecate passing asyncio.Handles to run_in_executor.
18152 - bpo-28372: Fix asyncio to support formatting of non-python coroutines.
18154 - bpo-28399: Remove UNIX socket from FS before binding. Patch by Коренберг
18157 - bpo-27972: Prohibit Tasks to await on themselves.
18160 -------
18162 - bpo-28402: Adds signed catalog files for stdlib on Windows.
18164 - bpo-28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk
18167 - bpo-28251: Improvements to help manuals on Windows.
18169 - bpo-28110: launcher.msi has different product codes between 32-bit and
18170 64-bit
18172 - bpo-28161: Opening CON for write access fails
18174 - bpo-28162: WindowsConsoleIO readall() fails if first line starts with
18177 - bpo-28163: WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle
18179 - bpo-28164: _PyIO_get_console_type fails for various paths
18181 - bpo-28137: Renames Windows path file to ._pth
18183 - bpo-28138: Windows ._pth file should allow import site
18186 -----
18188 - bpo-28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(),
18193 -----
18195 - bpo-28258: Fixed build with Estonian locale (python-config and distclean
18198 - bpo-26661: setup.py now detects system libffi with multiarch wrapper.
18200 - bpo-15819: Remove redundant include search directory option for building
18204 -----
18206 - bpo-28217: Adds _testconsole module to test console input.
18212 *Release date: 2016-09-12*
18215 -----------------
18217 - bpo-23722: The __class__ cell used by zero-argument super() is now
18222 - bpo-25221: Fix corrupted result from PyLong_FromLong(0) when Python is
18225 - bpo-27080: Implement formatting support for :pep:`515`. Initial patch by
18228 - bpo-27199: In tarfile, expose copyfileobj bufsize to improve throughput.
18231 - bpo-27948: In f-strings, only allow backslashes inside the braces (where
18232 the expressions are). This is a breaking change from the 3.6 alpha
18233 releases, where backslashes are allowed anywhere in an f-string. Also,
18234 require that expressions inside f-strings be enclosed within literal
18237 - bpo-28046: Remove platform-specific directories from sys.path.
18239 - bpo-28071: Add early-out for differencing from an empty set.
18241 - bpo-25758: Prevents zipimport from unnecessarily encoding a filename
18244 - bpo-25856: The __module__ attribute of extension classes and functions now
18245 is interned. This leads to more compact pickle data with protocol 4.
18247 - bpo-27213: Rework CALL_FUNCTION* opcodes to produce shorter and more
18251 - bpo-26331: Implement tokenizing support for :pep:`515`. Patch by Georg
18254 - bpo-27999: Make "global after use" a SyntaxError, and ditto for nonlocal.
18257 - bpo-28003: Implement :pep:`525` -- Asynchronous Generators.
18259 - bpo-27985: Implement :pep:`526` -- Syntax for Variable Annotations. Patch
18262 - bpo-26058: Add a new private version to the builtin dict type, incremented
18266 - bpo-27364: A backslash-character pair that is not a valid escape sequence
18269 - bpo-27350: `dict` implementation is changed like PyPy. It is more compact
18273 - bpo-27911: Remove unnecessary error checks in
18276 - bpo-27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.
18278 - bpo-17884: Python now requires systems with inttypes.h and stdint.h
18280 - bpo-27961: Require platforms to support ``long long``. Python hasn't
18281 compiled without ``long long`` for years, so this is basically a
18284 - bpo-27355: Removed support for Windows CE. It was never finished, and
18285 Windows CE is no longer a relevant platform for Python.
18287 - Implement :pep:`523`.
18289 - bpo-27870: A left shift of zero by a large integer no longer attempts to
18292 - bpo-25402: In int-to-decimal-string conversion, improve the estimate of
18296 - bpo-27214: In long_invert, be more careful about modifying object returned
18300 - bpo-27506: Support passing the bytes/bytearray.translate() "delete"
18303 - bpo-27812: Properly clear out a generator's frame's backreference to the
18306 - bpo-27811: Fix a crash when a coroutine that has not been awaited is
18307 finalized with warnings-as-errors enabled.
18309 - bpo-27587: Fix another issue found by PVS-Studio: Null pointer check after
18312 - bpo-27792: The modulo operation applied to ``bool`` and other ``int``
18316 - bpo-26984: int() now always returns an instance of exact int.
18318 - bpo-25604: Fix a minor bug in integer true division; this bug could
18319 potentially have caused off-by-one-ulp results on platforms with
18322 - bpo-24254: Make class definition namespace ordered by default.
18324 - bpo-27662: Fix an overflow check in ``List_New``: the original code was
18328 - bpo-27782: Multi-phase extension module import now correctly allows the
18330 of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.
18332 - bpo-27936: The round() function accepted a second None argument for some
18336 - bpo-27487: Warn if a submodule argument to "python -m" or
18337 runpy.run_module() is found in sys.modules after parent packages are
18338 imported, but before the submodule is executed.
18340 - bpo-27157: Make only type() itself accept the one-argument form. Patch by
18343 - bpo-27558: Fix a SystemError in the implementation of "raise" statement.
18344 In a brand new thread, raise a RuntimeError since there is no active
18347 - bpo-28008: Implement :pep:`530` -- asynchronous comprehensions.
18349 - bpo-27942: Fix memory leak in codeobject.c
18352 -------
18354 - bpo-28732: Fix crash in os.spawnv() with no elements in args
18356 - bpo-28485: Always raise ValueError for negative
18357 compileall.compile_dir(workers=...) parameter, even when multithreading is
18360 - bpo-28037: Use sqlite3_get_autocommit() instead of setting
18361 Connection->inTransaction manually.
18363 - bpo-25283: Attributes tm_gmtoff and tm_zone are now available on all
18366 - bpo-24454: Regular expression match object groups are now accessible using
18367 __getitem__. "mo[x]" is equivalent to "mo.group(x)".
18369 - bpo-10740: sqlite3 no longer implicitly commit an open transaction before
18372 - bpo-17941: Add a *module* parameter to collections.namedtuple().
18374 - bpo-22493: Inline flags now should be used only at the start of the
18375 regular expression. Deprecation warning is emitted if uses them in the
18378 - bpo-26885: xmlrpc now supports unmarshalling additional data types used by
18379 Apache XML-RPC implementation for numerics and None.
18381 - bpo-28070: Fixed parsing inline verbose flag in regular expressions.
18383 - bpo-19500: Add client-side SSL session resumption to the ssl module.
18385 - bpo-28022: Deprecate ssl-related arguments in favor of SSLContext. The
18389 - bpo-28043: SSLContext has improved default settings: OP_NO_SSLv2,
18393 - bpo-24693: Changed some RuntimeError's in the zipfile module to more
18396 - bpo-17909: ``json.load`` and ``json.loads`` now support binary input
18397 encoded as UTF-8, UTF-16 or UTF-32. Patch by Serhiy Storchaka.
18399 - bpo-27137: the pure Python fallback implementation of
18404 - Fix possible integer overflows and crashes in the mmap module with unusual
18407 - bpo-1703178: Fix the ability to pass the --link-objects option to the
18410 - bpo-28019: itertools.count() no longer rounds non-integer step in range
18413 - bpo-18401: Pdb now supports the 'readrc' keyword argument to control
18417 - bpo-25969: Update the lib2to3 grammar to handle the unpacking
18420 - bpo-14977: mailcap now respects the order of the lines in the mailcap
18423 - bpo-28082: Convert re flag constants to IntFlag.
18425 - bpo-28025: Convert all ssl module constants to IntEnum and IntFlags.
18428 - bpo-23591: Add Flag, IntFlag, and auto() to enum module.
18430 - bpo-433028: Added support of modifier spans in regular expressions.
18432 - bpo-24594: Validates persist parameter when opening MSI database
18434 - bpo-17582: xml.etree.ElementTree nows preserves whitespaces in attributes
18437 - bpo-28047: Fixed calculation of line length used for the base64 CTE in the
18440 - bpo-27576: Fix call order in OrderedDict.__init__().
18442 - email.generator.DecodedGenerator now supports the policy keyword.
18444 - bpo-28027: Remove undocumented modules from ``Lib/plat-*``: IN, CDROM,
18447 - bpo-27445: Don't pass str(_charset) to MIMEText.set_payload(). Patch by
18450 - bpo-24277: The new email API is no longer provisional, and the docs have
18453 - bpo-22450: urllib now includes an ``Accept: */*`` header among the default
18457 - lib2to3.pgen3.driver.load_grammar() now creates a stable cache file
18461 - bpo-28005: Allow ImportErrors in encoding implementation to propagate.
18463 - bpo-26667: Support path-like objects in importlib.util.
18465 - bpo-27570: Avoid zero-length memcpy() etc calls with null source pointers
18468 - bpo-22233: Break email header lines *only* on the RFC specified CR and LF
18472 - bpo-27331: The email.mime classes now all accept an optional policy
18475 - bpo-27988: Fix email iter_attachments incorrect mutation of payload list.
18477 - bpo-16113: Add SHA-3 and SHAKE support to hashlib module.
18479 - Eliminate a tautological-pointer-compare warning in _scproxy.c.
18481 - bpo-27776: The :func:`os.urandom` function does now block on Linux 3.17
18482 and newer until the system urandom entropy pool is initialized to increase
18483 the security. This change is part of the :pep:`524`.
18485 - bpo-27778: Expose the Linux ``getrandom()`` syscall as a new
18486 :func:`os.getrandom` function. This change is part of the :pep:`524`.
18488 - bpo-27691: Fix ssl module's parsing of GEN_RID subject alternative name
18491 - bpo-18844: Add random.choices().
18493 - bpo-25761: Improved error reporting about truncated pickle data in C
18494 implementation of unpickler. UnpicklingError is now raised instead of
18497 - bpo-26798: Add BLAKE2 (blake2b and blake2s) to hashlib.
18499 - bpo-26032: Optimized globbing in pathlib by using os.scandir(); it is now
18500 about 1.5--4 times faster.
18502 - bpo-25596: Optimized glob() and iglob() functions in the glob module; they
18503 are now about 3--6 times faster.
18505 - bpo-27928: Add scrypt (password-based key derivation function) to hashlib
18508 - bpo-27850: Remove 3DES from ssl module's default cipher list to counter
18509 measure sweet32 attack (CVE-2016-2183).
18511 - bpo-27766: Add ChaCha20 Poly1305 to ssl module's default cipher list.
18514 - bpo-25387: Check return value of winsound.MessageBeep.
18516 - bpo-27866: Add SSLContext.get_ciphers() method to get a list of all
18519 - bpo-27744: Add AF_ALG (Linux Kernel crypto) to socket module.
18521 - bpo-26470: Port ssl and hashlib module to OpenSSL 1.1.0.
18523 - bpo-11620: Fix support for SND_MEMORY in winsound.PlaySound. Based on a
18526 - bpo-11734: Add support for IEEE 754 half-precision floats to the struct
18529 - bpo-27919: Deprecated ``extra_path`` distribution option in distutils
18532 - bpo-23229: Add new ``cmath`` constants: ``cmath.inf`` and ``cmath.nan`` to
18536 - bpo-27842: The csv.DictReader now returns rows of type OrderedDict.
18539 - Remove support for passing a file descriptor to os.access. It never worked
18542 - bpo-12885: Fix error when distutils encounters symlink.
18544 - bpo-27881: Fixed possible bugs when setting
18547 - bpo-27861: Fixed a crash in sqlite3.Connection.cursor() when a factory
18550 - bpo-19884: Avoid spurious output on OS X with Gnu Readline.
18552 - bpo-27706: Restore deterministic behavior of random.Random().seed() for
18557 - bpo-10513: Fix a regression in Connection.commit(). Statements should not
18560 - bpo-12319: Chunked transfer encoding support added to
18562 urllib.request.AbstractHTTPHandler class does not enforce a Content-Length
18564 Content-Length header, the library now falls back to use chunked
18565 transfer-encoding.
18567 - A new version of typing.py from https://github.com/python/typing: -
18568 Collection (only for 3.6) (Issue #27598) - Add FrozenSet to __all__
18569 (upstream #261) - fix crash in _get_type_vars() (upstream #259) - Remove
18572 - bpo-27832: Make ``_normalize`` parameter to ``Fraction`` constructor
18573 keyword-only, so that ``Fraction(2, 3, 4)`` now raises ``TypeError``.
18575 - bpo-27539: Fix unnormalised ``Fraction.__pow__`` result in the case of
18578 - bpo-21718: cursor.description is now available for queries using CTEs.
18580 - bpo-27819: In distutils sdists, simply produce the "gztar" (gzipped tar
18581 format) distributions on all platforms unless "formats" is supplied.
18583 - bpo-2466: posixpath.ismount now correctly recognizes mount points which
18586 - bpo-9998: On Linux, ctypes.util.find_library now looks in LD_LIBRARY_PATH
18589 - bpo-27573: exit message for code.interact is now configurable.
18591 - bpo-27930: Improved behaviour of logging.handlers.QueueListener. Thanks to
18594 - bpo-6766: Distributed reference counting added to multiprocessing to
18597 - bpo-21201: Improves readability of multiprocessing error message. Thanks
18600 - asyncio: Add set_protocol / get_protocol to Transports.
18602 - bpo-27456: asyncio: Set TCP_NODELAY by default.
18605 ----
18607 - bpo-15308: Add 'interrupt execution' (^C) to Shell menu. Patch by Roger
18610 - bpo-27922: Stop IDLE tests from 'flashing' gui widgets on the screen.
18612 - bpo-27891: Consistently group and sort imports within idlelib modules.
18614 - bpo-17642: add larger font sizes for classroom projection.
18616 - Add version to title of IDLE help window.
18618 - bpo-25564: In section on IDLE -- console differences, mention that using
18619 exec means that __builtins__ is defined for each statement.
18621 - bpo-27821: Fix 3.6.0a3 regression that prevented custom key sets from
18625 -----
18627 - bpo-26900: Excluded underscored names and other private API from limited
18630 - bpo-26027: Add support for path-like objects in PyUnicode_FSConverter() &
18634 -----
18636 - bpo-27427: Additional tests for the math module. Patch by Francisco Couzo.
18638 - bpo-27953: Skip math and cmath tests that fail on OS X 10.4 due to a poor
18641 - bpo-26040: Improve test_math and test_cmath coverage and rigour. Patch by
18644 - bpo-27787: Call gc.collect() before checking each test for "dangling
18648 -----
18650 - bpo-27566: Fix clean target in freeze makefile (patch by Lisa Roach)
18652 - bpo-27705: Update message in validate_ucrtbase.py
18654 - bpo-27976: Deprecate building _ctypes with the bundled copy of libffi on
18655 non-OSX UNIX platforms.
18657 - bpo-27983: Cause lack of llvm-profdata tool when using clang as required
18659 ``--with-optimizations`` is enabled. Also improve our ability to find the
18660 llvm-profdata tool on MacOS and some Linuxes.
18662 - bpo-21590: Support for DTrace and SystemTap probes.
18664 - bpo-26307: The profile-opt build now applies PGO to the built-in modules.
18666 - bpo-26359: Add the --with-optimizations flag to turn on LTO and PGO build
18669 - bpo-27917: Set platform triplets for Android builds.
18671 - bpo-25825: Update references to the $(LIBPL) installation path on AIX.
18674 - Update OS X installer to use SQLite 3.14.1 and XZ 5.2.2.
18676 - bpo-21122: Fix LTO builds on OS X.
18678 - bpo-17128: Build OS X installer with a private copy of OpenSSL. Also
18680 root certificates from the third-party certifi module.
18683 -----------
18685 - bpo-27952: Get Tools/scripts/fixcid.py working with Python 3 and the
18690 -------
18692 - bpo-28065: Update xz dependency to 5.2.2 and build it from source.
18694 - bpo-25144: Ensures TargetDir is set before continuing with custom install.
18696 - bpo-1602: Windows console doesn't input or print Unicode (PEP 528)
18698 - bpo-27781: Change file system encoding on Windows to UTF-8 (PEP 529)
18700 - bpo-27731: Opt-out of MAX_PATH on Windows 10
18702 - bpo-6135: Adds encoding and errors parameters to subprocess.
18704 - bpo-27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec
18707 - bpo-27982: The functions of the winsound module now accept keyword
18710 - bpo-20366: Build full text search support into SQLite on Windows.
18712 - bpo-27756: Adds new icons for Python files and processes on Windows.
18715 - bpo-27883: Update sqlite to 3.14.1.0 on Windows.
18721 *Release date: 2016-08-15*
18724 -----------------
18726 - bpo-27704: Optimized creating bytes and bytearray from byte-like objects
18730 - bpo-26823: Large sections of repeated lines in tracebacks are now
18734 - bpo-27574: Decreased an overhead of parsing keyword arguments in functions
18737 - bpo-22557: Now importing already imported modules is up to 2.5 times
18740 - bpo-17596: Include <wincrypt.h> to help with Min GW building.
18742 - bpo-17599: On Windows, rename the privately defined REPARSE_DATA_BUFFER
18745 - bpo-27507: Add integer overflow check in bytearray.extend(). Patch by
18748 - bpo-27581: Don't rely on wrapping for overflow check in
18751 - bpo-1621: Avoid signed integer overflow in list and tuple operations.
18754 - bpo-27419: Standard __import__() no longer look up "__import__" in globals
18759 - bpo-27083: Respect the PYTHONCASEOK environment variable under Windows.
18761 - bpo-27514: Make having too many statically nested blocks a SyntaxError
18764 - bpo-27366: Implemented :pep:`487` (Simpler customization of class
18765 creation). Upon subclassing, the __init_subclass__ classmethod is called
18770 -------
18772 - bpo-26027: Add :pep:`519`/__fspath__() support to the os and os.path
18773 modules. Includes code from Jelle Zijlstra. (See also: bpo-27524)
18775 - bpo-27598: Add Collections to collections.abc. Patch by Ivan Levkivskyi,
18778 - bpo-25958: Support "anti-registration" of special methods from various
18781 if the method is not defined at all. (Previously, this mechanism existed
18785 - bpo-16764: Support keyword arguments to zlib.decompress(). Patch by Xiang
18788 - bpo-27736: Prevent segfault after interpreter re-initialization due to ref
18792 - bpo-25628: The *verbose* and *rename* parameters for
18793 collections.namedtuple are now keyword-only.
18795 - bpo-12345: Add mathematical constant tau to math and cmath. See also
18798 - bpo-26823: traceback.StackSummary.format now abbreviates large sections of
18803 - bpo-27664: Add to concurrent.futures.thread.ThreadPoolExecutor() the
18806 - bpo-27181: Add geometric_mean and harmonic_mean to statistics module.
18808 - bpo-27573: code.interact now prints an message when exiting.
18810 - bpo-6422: Add autorange method to timeit.Timer objects.
18812 - bpo-27773: Correct some memory management errors server_hostname in
18815 - bpo-26750: unittest.mock.create_autospec() now works properly for
18819 - bpo-26754: Undocumented support of general bytes-like objects as path in
18820 compile() and similar functions is now deprecated.
18822 - bpo-26800: Undocumented support of general bytes-like objects as paths in
18823 os functions is now deprecated.
18825 - bpo-26981: Add _order_ compatibility shim to enum.Enum for Python 2/3 code
18828 - bpo-27661: Added tzinfo keyword argument to datetime.combine.
18830 - In the curses module, raise an error if window.getstr() or window.instr()
18831 is passed a negative value.
18833 - bpo-27783: Fix possible usage of uninitialized memory in
18836 - bpo-27774: Fix possible Py_DECREF on unowned object in _sre.
18838 - bpo-27760: Fix possible integer overflow in binascii.b2a_qp.
18840 - bpo-27758: Fix possible integer overflow in the _csv module for large
18843 - bpo-27568: Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the
18844 HTTP_PROXY variable when REQUEST_METHOD environment is set, which
18845 indicates that the script is in CGI mode.
18847 - bpo-7063: Remove dead code from the "array" module's slice handling. Patch
18850 - bpo-27656: Do not assume sched.h defines any SCHED_* constants.
18852 - bpo-27130: In the "zlib" module, fix handling of large buffers (typically
18857 - bpo-24773: Implemented :pep:`495` (Local Time Disambiguation).
18859 - Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select
18862 - bpo-27567: Expose the EPOLLRDHUP and POLLRDHUP constants in the select
18865 - bpo-1621: Avoid signed int negation overflow in the "audioop" module.
18867 - bpo-27533: Release GIL in nt._isdir
18869 - bpo-17711: Fixed unpickling by the persistent ID with protocol 0. Original
18872 - bpo-27522: Avoid an unintentional reference cycle in email.feedparser.
18874 - bpo-27512: Fix a segfault when os.fspath() called an __fspath__() method
18878 ----
18880 - bpo-27714: text_textview and test_autocomplete now pass when re-run in the
18881 same process. This occurs when test_idle fails when run with the -w
18882 option but without -jn. Fix warning from test_config.
18884 - bpo-27621: Put query response validation error messages in the query box
18888 - bpo-27620: Escape key now closes Query box as cancelled.
18890 - bpo-27609: IDLE: tab after initial whitespace should tab, not
18894 - bpo-27609: Explicitly return None when there are also non-None returns. In
18897 - bpo-25507: IDLE no longer runs buggy code because of its tkinter imports.
18900 - bpo-27173: Add 'IDLE Modern Unix' to the built-in key sets. Make the
18904 - bpo-27452: add line counter and crc to IDLE configHandler test dump.
18907 -----
18909 - bpo-25805: Skip a test in test_pkgutil as needed that doesn't work when
18912 - bpo-27472: Add test.support.unix_shell as the path to the default shell.
18914 - bpo-27369: In test_pyexpat, avoid testing an error message detail that
18917 - bpo-27594: Prevent assertion error when running test_ast with coverage
18922 -------
18924 - bpo-27647: Update bundled Tcl/Tk to 8.6.6.
18926 - bpo-27610: Adds :pep:`514` metadata to Windows installer
18928 - bpo-27469: Adds a shell extension to the launcher so that drag and drop
18931 - bpo-27309: Enables proper Windows styles in python[w].exe manifest.
18934 -----
18936 - bpo-27713: Suppress spurious build warnings when updating importlib's
18939 - bpo-25825: Correct the references to Modules/python.exp, which is required
18942 - bpo-27453: CPP invocation in configure must use CPPFLAGS. Patch by Chi
18945 - bpo-27641: The configure script now inserts comments into the makefile to
18947 cross-compiled.
18949 - bpo-26662: Set PYTHON_FOR_GEN in configure as the Python program to be
18952 - bpo-10910: Avoid C++ compilation errors on FreeBSD and OS X. Also update
18953 FreedBSD version checks for the original ctype UTF-8 workaround.
18959 *Release date: 2016-07-11*
18962 -----------------
18964 - bpo-27473: Fixed possible integer overflow in bytes and bytearray
18967 - bpo-23034: The output of a special Python build with defined COUNT_ALLOCS,
18968 SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by default. It
18969 can be re-enabled using the "-X showalloccount" option. It now outputs to
18972 - bpo-27443: __length_hint__() of bytearray iterators no longer return a
18975 - bpo-27007: The fromhex() class methods of bytes and bytearray subclasses
18979 -------
18981 - bpo-26844: Fix error message for imp.find_module() to refer to 'path'
18984 - bpo-23804: Fix SSL zero-length recv() calls to not block and not raise an
18987 - bpo-27466: Change time format returned by http.cookie.time2netscape,
18991 - bpo-21708: Deprecated dbm.dumb behavior that differs from common dbm
18995 - bpo-26721: Change the socketserver.StreamRequestHandler.wfile attribute to
18999 - bpo-22115: Added methods trace_add, trace_remove and trace_info in the
19007 - bpo-26243: Only the level argument to zlib.compress() is keyword argument
19008 now. The first argument is positional-only.
19010 - bpo-27038: Expose the DirEntry type as os.DirEntry. Code patch by Jelle
19013 - bpo-27186: Update os.fspath()/PyOS_FSPath() to check the return value of
19016 - bpo-18726: All optional parameters of the dump(), dumps(), load() and
19018 the json module are now keyword-only.
19020 - bpo-27319: Methods selection_set(), selection_add(), selection_remove()
19025 - bpo-27079: Fixed curses.ascii functions isblank(), iscntrl() and
19028 - bpo-27294: Numerical state in the repr for Tkinter event objects is now
19031 - bpo-27177: Match objects in the re module now support index-like objects
19034 - bpo-26754: Some functions (compile() etc) accepted a filename argument
19035 encoded as an iterable of integers. Now only strings and byte-like objects
19038 - bpo-26536: socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by
19041 - bpo-27048: Prevents distutils failing on Windows when environment
19042 variables contain non-ASCII characters
19044 - bpo-27330: Fixed possible leaks in the ctypes module.
19046 - bpo-27238: Got rid of bare excepts in the turtle module. Original patch
19049 - bpo-27122: When an exception is raised within the context being managed by
19051 raises it in a chain, do not re-raise the original exception when exiting,
19056 --------
19058 - bpo-27278: Fix os.urandom() implementation using getrandom() on Linux.
19063 -------
19065 - bpo-16864: sqlite3.Cursor.lastrowid now supports REPLACE statement.
19068 - bpo-26386: Fixed ttk.TreeView selection operations with item id's
19071 - bpo-8637: Honor a pager set by the env var MANPAGER (in preference to one
19075 --------
19077 - bpo-22636: Avoid shell injection problems with ctypes.util.find_library().
19080 -------
19082 - bpo-16182: Fix various functions in the "readline" module to use the
19086 - bpo-27392: Add loop.connect_accepted_socket(). Patch by Jim Fulton.
19089 ----
19091 - bpo-27477: IDLE search dialogs now use ttk widgets.
19093 - bpo-27173: Add 'IDLE Modern Unix' to the built-in key sets. Make the
19097 - bpo-27452: make command line "idle-test> python test_help.py" work.
19098 __file__ is relative when python is started in the file's directory.
19100 - bpo-27452: add line counter and crc to IDLE configHandler test dump.
19102 - bpo-27380: IDLE: add query.py with base Query dialog and ttk widgets.
19109 - bpo-27372: Test_idle no longer changes the locale.
19111 - bpo-27365: Allow non-ascii chars in IDLE NEWS.txt, for contributor names.
19113 - bpo-27245: IDLE: Cleanly delete custom themes and key bindings.
19117 - bpo-24137: Run IDLE, test_idle, and htest with tkinter default root
19119 to not create a second and redundant root and mainloop.
19121 - bpo-27310: Fix IDLE.app failure to launch on OS X due to vestigial import.
19124 -----
19126 - bpo-26754: PyUnicode_FSDecoder() accepted a filename argument encoded as
19127 an iterable of integers. Now only strings and byte-like objects are
19131 -----
19133 - bpo-28066: Fix the logic that searches build directories for generated
19136 - bpo-27442: Expose the Android API level that python was built against, in
19139 - bpo-27434: The interpreter that runs the cross-build, found in PATH, must
19142 - bpo-26930: Update Windows builds to use OpenSSL 1.0.2h.
19144 - bpo-23968: Rename the platform directory from plat-$(MACHDEP) to
19145 plat-$(PLATFORM_TRIPLET). Rename the config directory (LIBPL) from
19146 config-$(LDVERSION) to config-$(LDVERSION)-$(PLATFORM_TRIPLET). Install
19150 - Don't use largefile support for GNU/Hurd.
19153 -----------
19155 - bpo-27332: Fixed the type of the first argument of module-level functions
19158 - bpo-27418: Fixed Tools/importbench/importbench.py.
19161 -------------
19163 - bpo-19489: Moved the search box from the sidebar to the header and footer
19166 - bpo-27285: Update documentation to reflect the deprecation of ``pyvenv``
19170 -----
19172 - bpo-27027: Added test.support.is_android that is True when this is an
19179 *Release date: 2016-06-13*
19182 -----------------
19184 - bpo-27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.
19187 - bpo-27190: Raise NotSupportedError if sqlite3 is older than 3.3.1. Patch
19190 - bpo-27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling
19194 - bpo-27140: Added BUILD_CONST_KEY_MAP opcode.
19196 - bpo-27186: Add support for os.PathLike objects to open() (part of
19199 - bpo-27066: Fixed SystemError if a custom opener (for open()) returns a
19202 - bpo-26983: float() now always return an instance of exact float. The
19203 deprecation warning is emitted if __float__ returns an instance of a
19207 - bpo-27097: Python interpreter is now about 7% faster due to optimized
19210 - bpo-26647: Python interpreter now uses 16-bit wordcode instead of
19213 - bpo-23275: Allow assigning to an empty target list in round brackets: () =
19216 - bpo-27243: Update the __aiter__ protocol: instead of returning an
19222 -------
19224 - Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
19228 - bpo-27025: Generated names for Tkinter widgets are now more meaningful and
19231 - bpo-25455: Fixed crashes in repr of recursive ElementTree.Element and
19234 - bpo-27294: Improved repr for Tkinter event objects.
19236 - bpo-20508: Improve exception message of IPv{4,6}Network.__getitem__. Patch
19240 --------
19242 - bpo-26556: Update expat to 2.1.1, fixes CVE-2015-1283.
19244 - Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by
19248 -------
19250 - bpo-21386: Implement missing IPv4Address.is_global property. It was
19253 - bpo-27029: Removed deprecated support of universal newlines mode from
19256 - bpo-27030: Unknown escapes consisting of ``'\'`` and an ASCII letter in
19260 - bpo-27186: Add os.PathLike support to DirEntry (part of :pep:`519`).
19263 - bpo-20900: distutils register command now decodes HTTP responses
19266 - bpo-27186: Add os.PathLike support to pathlib, removing its provisional
19269 - bpo-27186: Add support for os.PathLike objects to os.fsencode() and
19272 - bpo-27186: Introduce os.PathLike and os.fspath() (part of :pep:`519`).
19274 - A new version of typing.py provides several new classes and features:
19282 - bpo-25738: Stop http.server.BaseHTTPRequestHandler.send_error() from
19287 - bpo-21313: Fix the "platform" module to tolerate when sys.version contains
19291 --------
19293 - bpo-26839: On Linux, :func:`os.urandom` now calls ``getrandom()`` with
19295 entropy pool is not initialized yet. Patch written by Colm Buckley.
19298 -------
19300 - bpo-23883: Added missing APIs to __all__ to match the documented APIs for
19304 - bpo-27164: In the zlib module, allow decompressing raw Deflate streams
19307 - bpo-24291: Fix wsgiref.simple_server.WSGIRequestHandler to completely
19310 doing partial writes, but this is deprecated.
19312 - bpo-21272: Use _sysconfigdata.py to initialize distutils.sysconfig.
19314 - bpo-19611: :mod:`inspect` now reports the implicit ``.0`` parameters
19316 scopes as if they were positional-only parameters called ``implicit0``.
19319 - bpo-26809: Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry.
19321 - bpo-26373: subprocess.Popen.communicate now correctly ignores
19322 BrokenPipeError when the child process dies before .communicate() is
19325 - signal, socket, and ssl module IntEnum constant name lookups now return a
19330 - bpo-27167: Clarify the subprocess.CalledProcessError error message text
19333 - bpo-25931: Don't define socketserver.Forking* names on platforms such as
19336 - bpo-21776: distutils.upload now correctly handles HTTPError. Initial patch
19339 - bpo-26526: Replace custom parse tree validation in the parser module with
19342 - bpo-27114: Fix SSLContext._load_windows_store_certs fails with
19345 - bpo-18383: Avoid creating duplicate filters when using filterwarnings and
19348 - bpo-23026: winreg.QueryValueEx() now return an integer for REG_QWORD type.
19350 - bpo-26741: subprocess.Popen destructor now emits a ResourceWarning warning
19351 if the child process is still running.
19353 - bpo-27056: Optimize pickle.load() and pickle.loads(), up to 10% faster to
19356 - bpo-21271: New keyword only parameters in reset_mock call.
19359 ----
19361 - bpo-5124: Paste with text selected now replaces the selection on X11. This
19365 - bpo-24750: Switch all scrollbars in IDLE to ttk versions. Where needed,
19368 - bpo-24759: IDLE requires tk 8.5 and availability ttk widgets. Delete now
19372 - bpo-27239: idlelib.macosx.isXyzTk functions initialize as needed.
19374 - bpo-27262: move Aqua unbinding code, which enable context menus, to
19377 - bpo-24759: Make clear in idlelib.idle_test.__init__ that the directory is
19380 - bpo-27196: Stop 'ThemeChanged' warnings when running IDLE tests. These
19385 - bpo-20567: Revise idle_test/README.txt with advice about avoiding tk
19388 - bpo-24225: Update idlelib/README.txt with new file names and event
19391 - bpo-27156: Remove obsolete code not used by IDLE.
19393 - bpo-27117: Make colorizer htest and turtledemo work with dark themes. Move
19396 - bpo-24225: Rename many `idlelib/*.py` and `idle_test/test_*.py` files.
19401 - bpo-26673: When tk reports font size as 0, change to size 10. Such fonts
19404 - bpo-21939: Add test for IDLE's percolator. Original patch by Saimadhav
19407 - bpo-21676: Add test for IDLE's replace dialog. Original patch by Saimadhav
19410 - bpo-18410: Add test for IDLE's search dialog. Original patch by Westley
19413 - bpo-21703: Add test for undo delegator. Patch mostly by Saimadhav
19416 - bpo-27044: Add ConfigDialog.remove_var_callbacks to stop memory leaks.
19418 - bpo-23977: Add more asserts to test_delegator.
19421 -------------
19423 - bpo-16484: Change the default PYTHONDOCS URL to "https:", and fix the
19427 - bpo-24136: Document the new :pep:`448` unpacking syntax of 3.5.
19429 - bpo-22558: Add remaining doc links to source code for Python-coded
19433 -----
19435 - bpo-25285: regrtest now uses subprocesses when the -j1 command line option
19436 is used: each test file runs in a fresh child process. Before, the -j1
19439 - bpo-25285: Tools/buildbot/test.bat script now uses -j1 by default to run
19443 -------
19445 - bpo-27064: The py.exe launcher now defaults to Python 3. The Windows
19450 -----
19452 - bpo-27229: Fix the cross-compiling pgen rule for in-tree builds. Patch by
19455 - bpo-26930: Update OS X 10.5+ 32-bit-only installer to build and link with
19459 -------
19461 - bpo-17500: Remove unused and outdated icons. (See also:
19465 -----
19467 - bpo-27186: Add the PyOS_FSPath() function (part of :pep:`519`).
19469 - bpo-26282: PyArg_ParseTupleAndKeywords() now supports positional-only
19473 -----------
19475 - bpo-26282: Argument Clinic now supports positional-only and keyword
19482 *Release date: 2016-05-16*
19485 -----------------
19487 - bpo-20041: Fixed TypeError when frame.f_trace is set to None. Patch by
19490 - bpo-26168: Fixed possible refleaks in failing Py_BuildValue() with the "N"
19493 - bpo-26991: Fix possible refleak when creating a function with annotations.
19495 - bpo-27039: Fixed bytearray.remove() for values greater than 127. Based on
19498 - bpo-23640: int.from_bytes() no longer bypasses constructors for
19501 - bpo-27005: Optimized the float.fromhex() class method for exact float. It
19502 is now 2 times faster.
19504 - bpo-18531: Single var-keyword argument of dict subtype was passed
19505 unscathed to the C-defined function. Now it is converted to exact dict.
19507 - bpo-26811: gc.get_objects() no longer contains a broken tuple with NULL
19510 - bpo-20120: Use RawConfigParser for .pypirc parsing, removing support for
19515 - bpo-26249: Memory functions of the :c:func:`PyMem_Malloc` domain
19522 - bpo-26802: Optimize function calls only using unpacking like
19526 - bpo-26659: Make the builtin slice type support cycle collection.
19528 - bpo-26718: super.__init__ no longer leaks memory if called multiple times.
19529 NOTE: A direct call of super.__init__ is not endorsed!
19531 - bpo-27138: Fix the doc comment for FileFinder.find_spec().
19533 - bpo-27147: Mention :pep:`420` in the importlib docs.
19535 - bpo-25339: PYTHONIOENCODING now has priority over locale in setting the
19538 - bpo-26494: Fixed crash on iterating exhausting iterators. Affected classes
19543 - bpo-26574: Optimize ``bytes.replace(b'', b'.')`` and
19546 - bpo-26581: If coding cookie is specified multiple times on a line in
19547 Python source code file, only the first one is taken to account.
19549 - bpo-19711: Add tests for reloading namespace packages.
19551 - bpo-21099: Switch applicable importlib tests to use :pep:`451` API.
19553 - bpo-26563: Debug hooks on Python memory allocators now raise a fatal error
19557 - bpo-26564: On error, the debug hooks on Python memory allocators now use
19561 - bpo-26558: The debug hooks on Python memory allocator
19565 - bpo-26516: Add :envvar:`PYTHONMALLOC` environment variable to set the
19568 - bpo-26516: The :c:func:`PyMem_SetupDebugHooks` function can now also be
19571 - bpo-26516: The :envvar:`PYTHONMALLOCSTATS` environment variable can now
19575 - bpo-26516: In debug mode, debug hooks are now also installed on Python
19576 memory allocators when Python is configured without pymalloc.
19578 - bpo-26464: Fix str.translate() when string is ASCII and first replacements
19579 removes character, but next replacement uses a non-ASCII character or a
19582 - bpo-22836: Ensure exception reports from PyErr_Display() and
19587 - bpo-26302: Correct behavior to reject comma as a legal character for
19590 - bpo-26136: Upgrade the warning when a generator raises StopIteration from
19593 - bpo-26204: The compiler now ignores all constant statements: bytes, str,
19595 ast.Constant; not only str and int. For example, ``1.0`` is now ignored in
19598 - bpo-4806: Avoid masking the original TypeError exception when using star
19602 - bpo-26146: Add a new kind of AST node: ``ast.Constant``. It can be used by
19606 - bpo-23601: Sped-up allocation of dict key objects by using Python's small
19609 - bpo-18018: Import raises ImportError instead of SystemError if a relative
19610 import is attempted without a known parent package.
19612 - bpo-25843: When compiling code, don't merge constants if they are equal
19614 1.0`` is now correctly compiled to two different functions: ``f1()``
19618 - bpo-26107: The format of the ``co_lnotab`` attribute of code objects
19621 - bpo-26154: Add a new private _PyThreadState_UncheckedGet() function to get
19622 the current Python thread state, but don't issue a fatal error if it is
19624 _PyThreadState_Current variable. The variable is no more exposed since
19628 - bpo-25791: If __package__ != __spec__.parent or if neither __package__ or
19629 __spec__ are defined then ImportWarning is raised.
19631 - bpo-22995: [UPDATE] Comment out the one of the pickleability tests in
19632 _PyObject_GetState() due to regressions observed in Cython-based projects.
19634 - bpo-25961: Disallowed null characters in the type name.
19636 - bpo-25973: Fix segfault when an invalid nonlocal statement binds a name
19639 - bpo-22995: Instances of extension types with a state that aren't
19640 subclasses of list or dict and haven't implemented any pickle-related
19644 - bpo-20440: Massive replacing unsafe attribute setting code with special
19647 - bpo-25766: Special method __bytes__() now works in str subclasses.
19649 - bpo-25421: __sizeof__ methods of builtin types now use dynamic basic size.
19653 - bpo-25709: Fixed problem with in-place string concatenation and utf-8
19656 - bpo-5319: New Py_FinalizeEx() API allowing Python to set an exit status of
19659 - bpo-25485: telnetlib.Telnet is now a context manager.
19661 - bpo-24097: Fixed crash in object.__reduce__() if slot name is freed inside
19664 - bpo-24731: Fixed crash on converting objects with special methods
19669 - bpo-25630: Fix a possible segfault during argument parsing in functions
19672 - bpo-23564: Fixed a partially broken sanity check in the _posixsubprocess
19676 - bpo-25388: Fixed tokenizer crash when processing undecodable source code
19679 - bpo-25462: The hash of the key now is calculated only once in most
19682 - bpo-22995: Default implementation of __reduce__ and __reduce_ex__ now
19685 - bpo-24802: Avoid buffer overreads when int(), float(), compile(), exec()
19686 and eval() are passed bytes-like objects. These objects are not
19690 - bpo-25555: Fix parser and AST: fill lineno and col_offset of "arg" node
19693 - bpo-24726: Fixed a crash and leaking NULL in repr() of OrderedDict that
19696 - bpo-25449: Iterating OrderedDict with keys with unstable hash now raises
19699 - bpo-25395: Fixed crash when highly nested OrderedDict structures were
19702 - bpo-25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now
19705 - bpo-25399: Optimize bytearray % args using the new private _PyBytesWriter
19706 API. Formatting is now between 2.5 and 5 times faster.
19708 - bpo-25274: sys.setrecursionlimit() now raises a RecursionError if the new
19709 recursion limit is too low depending at the current recursion depth.
19710 Modify also the "lower-water mark" formula to make it monotonic. This mark
19711 is used to decide when the overflowed flag of the thread state is reset.
19713 - bpo-24402: Fix input() to prompt to the redirected stdout when
19716 - bpo-25349: Optimize bytes % args using the new private _PyBytesWriter API.
19717 Formatting is now up to 2 times faster.
19719 - bpo-24806: Prevent builtin types that are not allowed to be subclassed
19722 - bpo-25301: The UTF-8 decoder is now up to 15 times as fast for error
19725 - bpo-24848: Fixed a number of bugs in UTF-7 decoding of misformed data.
19727 - bpo-25267: The UTF-8 encoder is now up to 75 times as fast for error
19729 Patch co-written with Serhiy Storchaka.
19731 - bpo-25280: Import trace messages emitted in verbose (-v) mode are no
19734 - bpo-25227: Optimize ASCII and latin1 encoders with the ``surrogateescape``
19738 - bpo-25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
19740 is blocking to generate very good quality entropy, os.urandom() doesn't
19741 need such high-quality entropy.
19743 - bpo-9232: Modify Python's grammar to allow trailing commas in the argument
19744 list of a function declaration. For example, "def f(\*, a = 3,): pass" is
19747 - bpo-24965: Implement :pep:`498` "Literal String Interpolation". This
19748 allows you to embed expressions inside f-strings, which are converted to
19752 - bpo-26478: Fix semantic bugs when using binary operators with dictionary
19755 - bpo-26171: Fix possible integer overflow and heap corruption in
19758 - bpo-25660: Fix TAB key behaviour in REPL with readline.
19760 - bpo-26288: Optimize PyLong_AsDouble.
19762 - bpo-26289: Optimize floor and modulo division for single-digit longs.
19763 Microbenchmarks show 2-2.5x improvement. Built-in 'divmod' function is
19764 now also ~10% faster. (See also: bpo-26315)
19766 - bpo-25887: Raise a RuntimeError when a coroutine object is awaited more
19770 -------
19772 - bpo-27057: Fix os.set_inheritable() on Android, ioctl() is blocked by
19776 - bpo-27014: Fix infinite recursion using typing.py. Thanks to Kalle Tuure!
19778 - bpo-27031: Removed dummy methods in Tkinter widget classes: tk_menuBar()
19781 - bpo-14132: Fix urllib.request redirect handling when the target only has a
19784 - bpo-17214: The "urllib.request" module now percent-encodes non-ASCII bytes
19786 with non-ASCII bytes, but "http.client" requires the request target to be
19787 ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch
19790 - bpo-27033: The default value of the decode_data parameter for
19791 smtpd.SMTPChannel and smtpd.SMTPServer constructors is changed to False.
19793 - bpo-27034: Removed deprecated class asynchat.fifo.
19795 - bpo-26870: Added readline.set_auto_history(), which can stop entries being
19799 - bpo-26039: zipfile.ZipFile.open() can now be used to write data into a ZIP
19802 - bpo-26892: Honor debuglevel flag in urllib.request.HTTPHandler. Patch
19805 - bpo-22274: In the subprocess module, allow stderr to be redirected to
19806 stdout even when stdout is not redirected. Patch by Akira Li.
19808 - bpo-26807: mock_open 'files' no longer error on readline at end of file.
19811 - bpo-25745: Fixed leaking a userptr in curses panel destructor.
19813 - bpo-26977: Removed unnecessary, and ignored, call to sum of squares helper
19816 - bpo-26002: Use bisect in statistics.median instead of a linear search.
19819 - bpo-25974: Make use of new Decimal.as_integer_ratio() method in statistics
19822 - bpo-26996: Add secrets module as described in :pep:`506`.
19824 - bpo-26881: The modulefinder module now supports extended opcode arguments.
19826 - bpo-23815: Fixed crashes related to directly created instances of types in
19829 - bpo-17765: weakref.ref() no longer silently ignores keyword arguments.
19832 - bpo-26873: xmlrpc now raises ResponseError on unsupported type tags
19835 - bpo-26915: The __contains__ methods in the collections ABCs now check for
19840 - bpo-26711: Fixed the comparison of plistlib.Data with other types.
19842 - bpo-24114: Fix an uninitialized variable in `ctypes.util`. The bug only
19846 - bpo-26864: In urllib.request, change the proxy bypass host checking
19847 against no_proxy to be case-insensitive, and to not match unrelated host
19851 - bpo-24902: Print server URL on http.server startup. Initial patch by
19854 - bpo-25788: fileinput.hook_encoded() now supports an "errors" argument for
19857 - bpo-26634: recursive_repr() now sets __qualname__ of wrapper. Patch by
19860 - bpo-26804: urllib.request will prefer lower_case proxy environment
19862 Hans-Peter Jansen.
19864 - bpo-26837: assertSequenceEqual() now correctly outputs non-stringified
19865 differing items (like bytes in the -b mode). This affects
19868 - bpo-26041: Remove "will be removed in Python 3.7" from deprecation
19872 - bpo-26822: itemgetter, attrgetter and methodcaller objects no longer
19875 - bpo-26733: Disassembling a class now disassembles class and static
19878 - bpo-26801: Fix error handling in :func:`shutil.get_terminal_size`, catch
19882 - bpo-24838: tarfile's ustar and gnu formats now correctly calculate name
19883 and link field limits for multibyte character encodings like utf-8.
19886 --------
19888 - bpo-26657: Fix directory traversal vulnerability with http.server on
19893 -------
19895 - bpo-26717: Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by
19898 - bpo-26782: Add STARTUPINFO to subprocess.__all__ on Windows.
19900 - bpo-26404: Add context manager to socketserver. Patch by Aviv Palivoda.
19902 - bpo-26735: Fix :func:`os.urandom` on Solaris 11.3 and newer when reading
19906 - bpo-26585: Eliminate http.server._quote_html() and use
19909 - bpo-26685: Raise OSError if closing a socket fails.
19911 - bpo-16329: Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'.
19913 - bpo-13952: Add .csv to mimetypes.types_map. Patch by Geoff Wilson.
19915 - bpo-26587: the site module now allows .pth files to specify files to be
19918 - bpo-25609: Introduce contextlib.AbstractContextManager and
19921 - bpo-26709: Fixed Y2038 problem in loading binary PLists.
19923 - bpo-23735: Handle terminal resizing with Readline 6.3+ by installing our
19926 - bpo-25951: Change SSLSocket.sendall() to return None, as explicitly
19929 - bpo-26586: In http.server, respond with "413 Request header fields too
19933 - bpo-26676: Added missing XMLPullParser to ElementTree.__all__.
19935 - bpo-22854: Change BufferedReader.writable() and BufferedWriter.readable()
19938 - bpo-26492: Exhausted iterator of array.array now conforms with the
19940 if iterated array is extended.
19942 - bpo-26641: doctest.DocFileTest and doctest.testfile() now support packages
19945 - bpo-25195: Fix a regression in mock.MagicMock. _Call is a subclass of
19949 - bpo-26644: Raise ValueError rather than SystemError when a negative length
19950 is passed to SSLSocket.recv() or read().
19952 - bpo-23804: Fix SSL recv(0) and read(0) methods to return zero bytes
19955 - bpo-26616: Fixed a bug in datetime.astimezone() method.
19957 - bpo-26637: The :mod:`importlib` module now emits an :exc:`ImportError`
19958 rather than a :exc:`TypeError` if :func:`__import__` is tried during the
19959 Python shutdown process but :data:`sys.path` is already cleared (set to
19962 - bpo-21925: :func:`warnings.formatwarning` now catches exceptions when
19967 - bpo-23848: On Windows, faulthandler.enable() now also installs an
19971 - bpo-26530: Add C functions :c:func:`_PyTraceMalloc_Track` and
19976 - bpo-26588: The _tracemalloc now supports tracing memory allocations of
19979 - bpo-24266: Ctrl+C during Readline history search now cancels the search
19982 - bpo-26590: Implement a safe finalizer for the _socket.socket type. It now
19985 - bpo-18787: spwd.getspnam() now raises a PermissionError if the user
19988 - bpo-26560: Avoid potential ValueError in BaseHandler.start_response.
19991 - bpo-26567: Add a new function :c:func:`PyErr_ResourceWarning` function to
19997 --------
19999 - bpo-26313: ssl.py _load_windows_store_certs fails if windows cert store is
20003 -------
20005 - bpo-26569: Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex`
20008 - bpo-26499: Account for remaining Content-Length in HTTPResponse.readline()
20012 - bpo-25320: Handle sockets in directories unittest discovery is scanning.
20015 - bpo-16181: cookiejar.http2time() now returns None if year is higher than
20018 - bpo-26513: Fixes platform module detection of Windows Server
20020 - bpo-23718: Fixed parsing time in week 0 before Jan 1. Original patch by
20023 - bpo-26323: Add Mock.assert_called() and Mock.assert_called_once() methods
20026 - bpo-20589: Invoking Path.owner() and Path.group() on Windows now raise
20029 - bpo-26177: Fixed the keys() method for Canvas and Scrollbar widgets.
20031 - bpo-15068: Got rid of excessive buffering in fileinput. The bufsize
20032 parameter is now deprecated and ignored.
20034 - bpo-19475: Added an optional argument timespec to the datetime isoformat()
20037 - bpo-2202: Fix UnboundLocalError in
20041 - bpo-26167: Minimized overhead in copy.copy() and copy.deepcopy().
20045 - bpo-25718: Fixed pickling and copying the accumulate() iterator with total
20046 is None.
20048 - bpo-26475: Fixed debugging output for regular expressions with the (?x)
20051 - bpo-26482: Allowed pickling recursive dequeues.
20053 - bpo-26335: Make mmap.write() return the number of bytes written like other
20056 - bpo-26457: Fixed the subnets() methods in IP network classes for the case
20057 when resulting prefix length is equal to maximal prefix length. Based on
20060 - bpo-26385: Remove the file if the internal open() call in
20063 - bpo-26402: Fix XML-RPC client to retry when the server shuts down a
20067 - bpo-25913: Leading ``<~`` is optional now in base64.a85decode() with
20070 - bpo-26186: Remove an invalid type check in importlib.util.LazyLoader.
20072 - bpo-26367: importlib.__import__() raises ImportError like
20073 builtins.__import__() when ``level`` is specified but without an
20076 - bpo-26309: In the "socketserver" module, shut down the request (closing
20080 - bpo-23430: Change the socketserver module to only catch exceptions raised
20083 trigger the handle_error() method, and will now to stop a single-threaded
20087 --------
20089 - bpo-25939: On Windows open the cert store readonly in
20093 -------
20095 - bpo-25995: os.walk() no longer uses FDs proportional to the tree depth.
20097 - bpo-25994: Added the close() method and the support of the context manager
20100 - bpo-23992: multiprocessing: make MapResult not fail-fast upon exception.
20102 - bpo-26243: Support keyword arguments to zlib.compress(). Patch by Aviv
20105 - bpo-26117: The os.scandir() iterator now closes file descriptor not only
20106 when the iteration is finished, but when it was failed with error.
20108 - bpo-25949: __dict__ for an OrderedDict instance is now created only when
20111 - bpo-25911: Restored support of bytes paths in os.walk() on Windows.
20113 - bpo-26045: Add UTF-8 suggestion to error message when posting a
20114 non-Latin-1 string with http.client.
20116 - bpo-26039: Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir().
20119 - bpo-12923: Reset FancyURLopener's redirect counter even if there is an
20122 - bpo-25945: Fixed a crash when unpickle the functools.partial object with
20127 - bpo-26202: copy.deepcopy() now correctly copies range() objects with
20128 non-atomic attributes.
20130 - bpo-23076: Path.glob() now raises a ValueError if it's called with an
20133 - bpo-19883: Fixed possible integer overflows in zipimport.
20135 - bpo-26227: On Windows, getnameinfo(), gethostbyaddr() and
20137 from the ANSI code page rather than UTF-8.
20139 - bpo-26099: The site module now writes an error into stderr if
20143 - bpo-26147: xmlrpc now works with strings not encodable with used non-UTF-8
20146 - bpo-25935: Garbage collector now breaks reference loops with OrderedDict.
20148 - bpo-16620: Fixed AttributeError in msilib.Directory.glob().
20150 - bpo-26013: Added compatibility with broken protocol 2 pickles created in
20153 - bpo-26129: Deprecated accepting non-integers in grp.getgrgid().
20155 - bpo-25850: Use cross-compilation by default for 64-bit Windows.
20157 - bpo-25822: Add docstrings to the fields of urllib.parse results. Patch
20160 - bpo-22642: Convert trace module option parsing mechanism to argparse.
20163 - bpo-24705: Fix sysconfig._parse_makefile not expanding ${} vars appearing
20166 - bpo-26069: Remove the deprecated apis in the trace module.
20168 - bpo-22138: Fix mock.patch behavior when patching descriptors. Restore
20171 - bpo-25672: In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode
20172 option if it is safe to do so.
20174 - bpo-26012: Don't traverse into symlinks for ``**`` pattern in
20177 - bpo-24120: Ignore PermissionError when traversing a tree with
20180 - bpo-21815: Accept ] characters in the data portion of imap responses, in
20184 - bpo-25447: fileinput now uses sys.stdin as-is if it does not have a buffer
20187 - bpo-25971: Optimized creating Fractions from floats by 2 times and from
20190 - bpo-25802: Document as deprecated the remaining implementations of
20193 - bpo-25928: Add Decimal.as_integer_ratio().
20195 - bpo-25447: Copying the lru_cache() wrapper object now always works,
20199 - bpo-25768: Have the functions in compileall return booleans instead of
20202 - bpo-24103: Fixed possible use after free in ElementTree.XMLPullParser.
20204 - bpo-25860: os.fwalk() no longer skips remaining directories when error
20207 - bpo-25914: Fixed and simplified OrderedDict.__sizeof__.
20209 - bpo-25869: Optimized deepcopying ElementTree; it is now 20 times faster.
20211 - bpo-25873: Optimized iterating ElementTree. Iterating elements
20212 Element.iter() is now 40% faster, iterating text Element.itertext() is now
20215 - bpo-25902: Fixed various refcount issues in ElementTree iteration.
20217 - bpo-22227: The TarFile iterator is reimplemented using generator. This
20218 implementation is simpler that using class.
20220 - bpo-25638: Optimized ElementTree.iterparse(); it is now 2x faster.
20221 Optimized ElementTree parsing; it is now 10% faster.
20223 - bpo-25761: Improved detecting errors in broken pickle data.
20225 - bpo-25717: Restore the previous behaviour of tolerating most fstat()
20229 - bpo-24903: Fix regression in number of arguments compileall accepts when
20230 '-d' is specified. The check on the number of arguments has been dropped
20233 - bpo-25764: In the subprocess module, preserve any exception caused by
20234 fork() failure when preexec_fn is used.
20236 - bpo-25771: Tweak the exception message for importlib.util.resolve_name()
20239 - bpo-6478: _strptime's regexp cache now is reset after changing timezone
20242 - bpo-14285: When executing a package with the "python -m package" option,
20243 and package initialization fails, a proper traceback is now reported. The
20247 - bpo-19771: Also in runpy and the "-m" option, omit the irrelevant message
20248 ". . . is a package and cannot be directly executed" if the package could
20251 - bpo-25177: Fixed problem with the mean of very small and very large
20255 - bpo-25718: Fixed copying object with state with boolean value is false.
20257 - bpo-10131: Fixed deep copying of minidom documents. Based on patch by
20260 - bpo-7990: dir() on ElementTree.Element now lists properties: "tag",
20263 - bpo-25725: Fixed a reference leak in pickle.loads() when unpickling
20266 - bpo-25663: In the Readline completer, avoid listing duplicate global
20269 - bpo-25688: Fixed file leak in ElementTree.iterparse() raising an error.
20271 - bpo-23914: Fixed SystemError raised by unpickler on broken pickle data.
20273 - bpo-25691: Fixed crash on deleting ElementTree.Element attributes.
20275 - bpo-25624: ZipFile now always writes a ZIP_STORED header for directory
20278 - bpo-25626: Change three zlib functions to accept sizes that fit in
20285 - bpo-25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)
20288 - bpo-25593: Change semantics of EventLoop.stop() in asyncio.
20290 - bpo-6973: When we know a subprocess.Popen process has died, do not allow
20294 - bpo-23883: Added missing APIs to __all__ to match the documented APIs for
20300 - bpo-25590: In the Readline completer, only call getattr() once per
20304 - bpo-25498: Fix a crash when garbage-collecting ctypes objects created by
20308 - bpo-25584: Added "escape" to the __all__ list in the glob module.
20310 - bpo-25584: Fixed recursive glob() with patterns starting with ``**``.
20312 - bpo-25446: Fix regression in smtplib's AUTH LOGIN support.
20314 - bpo-18010: Fix the pydoc web server's module search function to handle
20317 - bpo-25554: Got rid of circular references in regular expression parsing.
20319 - bpo-18973: Command-line interface of the calendar module now uses argparse
20322 - bpo-25510: fileinput.FileInput.readline() now returns b'' instead of '' at
20326 - bpo-25503: Fixed inspect.getdoc() for inherited docstrings of properties.
20329 - bpo-25515: Always use os.urandom as a source of randomness in uuid.uuid4.
20331 - bpo-21827: Fixed textwrap.dedent() for the case when largest common
20332 whitespace is a substring of smallest leading whitespace. Based on patch
20335 - bpo-25447: The lru_cache() wrapper objects now can be copied and pickled
20338 - bpo-25390: typing: Don't crash on Union[str, Pattern].
20340 - bpo-25441: asyncio: Raise error from drain() when socket is closed.
20342 - bpo-25410: Cleaned up and fixed minor bugs in C implementation of
20345 - bpo-25411: Improved Unicode support in SMTPHandler through better use of
20348 - Move the imp module from a PendingDeprecationWarning to
20351 - bpo-25407: Remove mentions of the formatter module being removed in Python
20354 - bpo-25406: Fixed a bug in C implementation of OrderedDict.move_to_end()
20358 - bpo-25382: pickletools.dis() now outputs implicit memo index for the
20361 - bpo-25357: Add an optional newline parameter to binascii.b2a_base64().
20364 - bpo-24164: Objects that need calling ``__new__`` with keyword arguments,
20367 - bpo-25364: zipfile now works in threads disabled builds.
20369 - bpo-25328: smtpd's SMTPChannel now correctly raises a ValueError if both
20372 - bpo-16099: RobotFileParser now supports Crawl-delay and Request-rate
20375 - bpo-25316: distutils raises OSError instead of DistutilsPlatformError when
20376 MSVC is not installed.
20378 - bpo-25380: Fixed protocol for the STACK_GLOBAL opcode in
20381 - bpo-23972: Updates asyncio datagram create method allowing reuseport and
20384 datagram sockets defaults to True if the O/S is 'posix' (except if the
20385 platform is Cygwin). Patch by Chris Laws.
20387 - bpo-25304: Add asyncio.run_coroutine_threadsafe(). This lets you submit a
20391 - bpo-25232: Fix CGIRequestHandler to split the query from the URL at the
20394 - bpo-24657: Prevent CGIRequestHandler from collapsing slashes in the query
20397 - bpo-25287: Don't add crypt.METHOD_CRYPT to crypt.methods if it's not
20398 supported. Check if it is supported, it may not be supported on OpenBSD
20401 - bpo-23600: Default implementation of tzinfo.fromutc() was returning wrong
20404 - bpo-25203: Failed readline.set_completer_delims() no longer left the
20407 - bpo-25011: rlcompleter now omits private and special attribute names
20410 - bpo-25209: rlcompleter now can add a space or a colon after completed
20413 - bpo-22241: timezone.utc name is now plain 'UTC', not 'UTC-00:00'.
20415 - bpo-23517: fromtimestamp() and utcfromtimestamp() methods of
20418 rounding towards -Infinity (ROUND_FLOOR).
20420 - bpo-23552: Timeit now warns when there is substantial (4x) variance
20423 - bpo-24633: site-packages/README -> README.txt.
20425 - bpo-24879: help() and pydoc can now list named tuple fields in the order
20426 they were defined rather than alphabetically. The ordering is determined
20429 - bpo-24874: Improve speed of itertools.cycle() and make its pickle more
20432 - Fix crash in itertools.cycle.__setstate__() when the first argument wasn't
20435 - bpo-20059: urllib.parse raises ValueError on all invalid ports. Patch by
20438 - bpo-24360: Improve __repr__ of argparse.Namespace() for invalid
20441 - bpo-23426: run_setup was broken in distutils. Patch from Alexander
20444 - bpo-13938: 2to3 converts StringTypes to a tuple. Patch from Mark Hammond.
20446 - bpo-2091: open() accepted a 'U' mode string containing '+', but 'U' can
20449 - bpo-8585: improved tests for zipimporter2. Patch from Mark Lawrence.
20451 - bpo-18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
20454 - bpo-24426: Fast searching optimization in regular expressions now works
20458 - bpo-23661: unittest.mock side_effects can now be exceptions again. This
20461 - bpo-13248: Remove deprecated inspect.getmoduleinfo function.
20463 - bpo-25578: Fix (another) memory leak in SSLSocket.getpeercer().
20465 - bpo-25530: Disable the vulnerable SSLv3 protocol by default when creating
20468 - bpo-25569: Fix memory leak in SSLSocket.getpeercert().
20470 - bpo-25471: Sockets returned from accept() shouldn't appear to be
20473 - bpo-25319: When threading.Event is reinitialized, the underlying condition
20476 - Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu
20479 - bpo-26050: Add asyncio.StreamReader.readuntil() method. Patch by Марк
20482 - bpo-25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
20485 - bpo-26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
20488 - bpo-26848: Fix asyncio/subprocess.communicate() to handle empty input.
20491 - bpo-27040: Add loop.get_exception_handler method
20493 - bpo-27041: asyncio: Add loop.create_future method
20496 ----
20498 - bpo-20640: Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav
20501 - In the 'IDLE-console differences' section of the IDLE doc, clarify how
20504 - bpo-25507: fix incorrect change in IOBinding that prevented printing.
20507 - bpo-25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION
20508 MARK in README.txt and open this and NEWS.txt with 'ascii'. Re-encode
20509 CREDITS.txt to utf-8 and open it with 'utf-8'.
20511 - bpo-15348: Stop the debugger engine (normally in a user process) before
20515 - bpo-24455: Prevent IDLE from hanging when a) closing the shell while the
20516 debugger is active (15347); b) closing the debugger with the [X] button
20523 - Change 'The program' to 'Your program' in an IDLE 'kill program?' message
20524 to make it clearer that the program referred to is the currently running
20527 - bpo-24750: Improve the appearance of the IDLE editor window status bar.
20530 - bpo-25313: Change the handling of new built-in text color themes to better
20534 - bpo-24782: Extension configuration is now a tab in the IDLE Preferences
20538 - bpo-22726: Re-activate the config dialog help button with some content
20541 - bpo-24820: IDLE now has an 'IDLE Dark' built-in text color theme. It is
20548 - bpo-25224: README.txt is now an idlelib index for IDLE developers and
20549 curious users. The previous user content is now in the IDLE doc chapter.
20552 - bpo-24820: Users can now set breakpoint colors in Settings -> Custom
20555 - bpo-24972: Inactive selection background now matches active selection
20559 - bpo-24570: Idle: make calltip and completion boxes appear on Macs affected
20562 - bpo-24988: Idle ScrolledList context menus (used in debugger) now work on
20565 - bpo-24801: Make right-click for context menu work on Mac Aqua. Patch by
20568 - bpo-25173: Associate tkinter messageboxes with a specific widget. For Mac
20571 - bpo-25198: Enhance the initial html viewer now used for Idle Help.
20572 Properly indent fixed-pitch text (patch by Mark Roseman). Give code
20573 snippet a very Sphinx-like light blueish-gray background. Re-use initial
20575 Contents (TOC) menu is used, put the section header at the top of the
20578 - bpo-25225: Condense and rewrite Idle doc section on text colors.
20580 - bpo-21995: Explain some differences between IDLE and console Python.
20582 - bpo-22820: Explain need for *print* when running file from Idle editor.
20584 - bpo-25224: Doc: augment Idle feature list and no-subprocess section.
20586 - bpo-25219: Update doc for Idle command line options. Some were missing and
20589 - bpo-24861: Most of idlelib is private and subject to change. Use
20592 - bpo-25199: Idle: add synchronization comments for future maintainers.
20594 - bpo-16893: Replace help.txt with help.html for Idle doc display. The new
20595 idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks
20601 - bpo-24199: Deprecate unused idlelib.idlever with possible removal in 3.6.
20603 - bpo-24790: Remove extraneous code (which also create 2 & 3 conflicts).
20606 -------------
20608 - bpo-26736: Used HTTPS for external links in the documentation if possible.
20610 - bpo-6953: Rework the Readline module documentation to group related
20614 - bpo-23606: Adds note to ctypes documentation regarding cdll.msvcrt.
20616 - bpo-24952: Clarify the default size argument of stack_size() in the
20619 - bpo-26014: Update 3.x packaging documentation: * "See also" links to the
20624 -----
20626 - bpo-21916: Added tests for the turtle module. Patch by ingrid, Gregory
20629 - bpo-26295: When using "python3 -m test --testdir=TESTDIR", regrtest
20632 - bpo-26523: The multiprocessing thread pool (multiprocessing.dummy.Pool)
20635 - bpo-26015: Added new tests for pickling iterators of mutable sequences.
20637 - bpo-26325: Added test.support.check_no_resource_warning() to check that no
20638 ResourceWarning is emitted.
20640 - bpo-25940: Changed test_ssl to use its internal local server more. This
20643 - bpo-25616: Tests for OrderedDict are extracted from test_collections into
20646 - bpo-25449: Added tests for OrderedDict subclasses.
20648 - bpo-25188: Add -P/--pgo to test.regrtest to suppress error output when
20652 - bpo-22806: Add ``python -m test --list-tests`` command to list tests.
20654 - bpo-18174: ``python -m test --huntrleaks ...`` now also checks for leak of
20657 - bpo-25260: Fix ``python -m test --coverage`` on Windows. Remove the list
20660 - ``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass
20663 - bpo-26583: Skip test_timestamp_overflow in test_import if bytecode files
20667 -----
20669 - bpo-21277: Don't try to link _ctypes with a ffi_convenience library.
20671 - bpo-26884: Fix linking extension modules for cross builds. Patch by Xavier
20674 - bpo-26932: Fixed support of RTLD_* constants defined as enum values, not
20677 - bpo-22359: Disable the rules for running _freeze_importlib and pgen when
20678 cross-compiling. The output of these programs is normally saved with the
20679 source code anyway, and is still regenerated when doing a native build.
20682 - bpo-21668: Link audioop, _datetime, _ctypes_test modules to libm, except
20685 - bpo-25702: A --with-lto configure option has been added that will enable
20686 link time optimizations at build time during a make profile-opt. Some
20689 provide a few % speed up over profile-opt alone.
20691 - bpo-26624: Adds validation of ucrtbase[d].dll version with warning for old
20694 - bpo-17603: Avoid error about nonexistent fileblocks.o file by using a
20695 lower-level check for st_blocks in struct stat.
20697 - bpo-26079: Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern
20700 - bpo-26465: Update Windows builds to use OpenSSL 1.0.2g.
20702 - bpo-25348: Added ``--pgo`` and ``--pgo-job`` arguments to
20703 ``PCbuild\build.bat`` for building with Profile-Guided Optimization. The
20704 old ``PCbuild\build_pgo.bat`` script is removed.
20706 - bpo-25827: Add support for building with ICC to ``configure``, including a
20707 new ``--with-icc`` flag.
20709 - bpo-25696: Fix installation of Python on UNIX with make -j9.
20711 - bpo-24986: It is now possible to build Python on Windows without errors
20714 - bpo-24421: Compile Modules/_math.c once, before building extensions.
20718 - bpo-26465: Update OS X 10.5+ 32-bit-only installer to build and link with
20721 - bpo-26268: Update Windows builds to use OpenSSL 1.0.2f.
20723 - bpo-25136: Support Apple Xcode 7's new textual SDK stub libraries.
20725 - bpo-24324: Do not enable unreachable code warnings when using gcc as the
20727 silently removed as of gcc-4.5.
20730 -------
20732 - bpo-27053: Updates make_zip.py to correctly generate library ZIP file.
20734 - bpo-26268: Update the prepare_ssl.py script to handle OpenSSL releases
20735 that don't include the contents of the include directory (that is, 1.0.2e
20738 - bpo-26071: bdist_wininst created binaries fail to start and find 32bit
20741 - bpo-26073: Update the list of magic numbers in launcher
20743 - bpo-26065: Excludes venv from library when generating embeddable distro.
20745 - bpo-25022: Removed very outdated PC/example_nt/ directory.
20748 -----------
20750 - bpo-26799: Fix python-gdb.py: don't get C types once when the Python code
20751 is loaded, but get C types on demand. The C types can change if
20752 python-gdb.py is loaded before the Python executable. Patch written by
20755 - bpo-26271: Fix the Freeze tool to properly use flags passed through
20758 - bpo-26489: Add dictionary unpacking support to Tools/parser/unparse.py.
20761 - bpo-26316: Fix variable name typo in Argument Clinic.
20763 - bpo-25440: Fix output of python-config --extension-suffix.
20765 - bpo-25154: The pyvenv script has been deprecated in favour of `python3 -m
20769 -----
20771 - bpo-26312: SystemError is now raised in all programming bugs with using
20775 - bpo-26198: ValueError is now raised instead of TypeError on buffer
20776 overflow in parsing "es#" and "et#" format units. SystemError is now
20784 *Release date: 2018-02-04*
20793 *Release date: 2018-01-23*
20796 --------
20798 - bpo-32551: The ``sys.path[0]`` initialization change for bpo-29139 caused
20799 a regression by revealing an inconsistency in how sys.path is initialized
20801 location. This is considered a potential security issue, as it may lead to
20807 named on the command line. (Originally reported as bpo-29723 against
20811 - bpo-30657: Fixed possible integer overflow in PyBytes_DecodeEscape,
20812 CVE-2017-1000158. Original patch by Jay Bosamiya; rebased to Python 3 by
20815 - bpo-30947: Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to
20819 -----------------
20821 - bpo-31095: Fix potential crash during GC caused by ``tp_dealloc`` which
20825 -------
20827 - bpo-32072: Fixed issues with binary plists: Fixed saving bytearrays.
20832 - bpo-31170: expat: Update libexpat from 2.2.3 to 2.2.4. Fix copying of
20833 partial characters for UTF-8 input (libexpat bug 115):
20840 *Release date: 2017-08-07*
20843 -------
20845 - bpo-30119: ftplib.FTP.putline() now throws ValueError on commands that
20846 contains CR or LF. Patch by Dong-hee Na.
20852 *Release date: 2017-07-23*
20855 --------
20857 - bpo-30730: Prevent environment variables injection in subprocess on
20861 - bpo-30694: Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple
20862 security vulnerabilities including: CVE-2017-9233 (External entity
20863 infinite loop DoS), CVE-2016-9063 (Integer overflow, re-fix),
20864 CVE-2016-0718 (Fix regression bugs from 2.2.0's fix to CVE-2016-0718) and
20865 CVE-2012-0876 (Counter hash flooding with SipHash). Note: the
20866 CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't
20870 - bpo-30500: Fix urllib.parse.splithost() to correctly parse fragments. For
20875 - bpo-29591: Update expat copy from 2.1.1 to 2.2.0 to get fixes of
20876 CVE-2016-0718 and CVE-2016-4472. See
20880 -----------------
20882 - bpo-30876: Relative import from unloaded package now reimports the package
20883 instead of failing with SystemError. Relative import from non-package now
20886 - bpo-30765: Avoid blocking in pthread_mutex_lock() when
20887 PyThread_acquire_lock() is asked not to block.
20889 - bpo-27945: Fixed various segfaults with dict when input collections are
20893 - bpo-25794: Fixed type.__setattr__() and type.__delattr__() for
20894 non-interned attribute names. Based on patch by Eryk Sun.
20896 - bpo-29935: Fixed error messages in the index() method of tuple, list and
20899 - bpo-28876: ``bool(range)`` works even if ``len(range)`` raises
20902 - bpo-29600: Fix wrapping coroutine return values in StopIteration.
20904 - bpo-29537: Restore runtime compatibility with bytecode files generated by
20910 - bpo-28598: Support __rmod__ for subclasses of str being called before
20913 - bpo-29602: Fix incorrect handling of signed zeros in complex constructor
20917 - bpo-29347: Fixed possibly dereferencing undefined pointers when creating
20920 - bpo-29438: Fixed use-after-free problem in key sharing dict.
20922 - bpo-29319: Prevent RunMainFromImporter overwriting sys.path[0].
20924 - bpo-29337: Fixed possible BytesWarning when compare the code objects.
20927 - bpo-29478: If max_line_length=None is specified while using the Compat32
20928 policy, it is no longer ignored. Patch by Mircea Cosbuc.
20931 -------
20933 - bpo-29403: Fix ``unittest.mock``'s autospec to not fail on method-bound
20936 - bpo-30961: Fix decrementing a borrowed reference in tracemalloc.
20938 - bpo-30886: Fix multiprocessing.Queue.join_thread(): it now waits until the
20942 - bpo-29854: Fix segfault in readline when using readline's history-size
20945 - bpo-30807: signal.setitimer() may disable the timer when passed a tiny
20946 value. Tiny values (such as 1e-6) are valid non-zero values for
20947 setitimer(), which is specified as taking microsecond-resolution
20949 1e-6 into a zero interval, therefore disabling the timer instead of
20950 (re-)scheduling it.
20952 - bpo-30441: Fix bug when modifying os.environ while iterating over it
20954 - bpo-30532: Fix email header value parser dropping folding white space in
20957 - bpo-29169: Update zlib to 1.2.11.
20959 - bpo-30879: os.listdir() and os.scandir() now emit bytes names when called
20960 with bytes-like argument.
20962 - bpo-30746: Prohibited the '=' character in environment variable names in
20965 - bpo-29755: Fixed the lgettext() family of functions in the gettext module.
20968 - bpo-30645: Fix path calculation in imp.load_package(), fixing it for cases
20969 when a package is only shipped with bytecodes. Patch by Alexandru
20972 - bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
20975 - bpo-30149: inspect.signature() now supports callables with
20976 variable-argument parameters wrapped with partialmethod. Patch by Dong-hee
20979 - bpo-29931: Fixed comparison check for ipaddress.ip_interface objects.
20982 - bpo-24484: Avoid race condition in multiprocessing cleanup.
20984 - bpo-28994: The traceback no longer displayed for SystemExit raised in a
20987 - bpo-30508: Don't log exceptions if Task/Future "cancel()" method was
20990 - bpo-28556: Updates to typing module: Add generic AsyncContextManager, add
20994 - bpo-29870: Fix ssl sockets leaks when connection is aborted in asyncio/ssl
20997 - bpo-29743: Closing transport during handshake process leaks open socket.
21000 - bpo-27585: Fix waiter cancellation in asyncio.Lock. Patch by Mathieu
21003 - bpo-30418: On Windows, subprocess.Popen.communicate() now also ignore
21004 EINVAL on stdin.write() if the child process is still running but closed
21007 - bpo-30378: Fix the problem that logging.handlers.SysLogHandler cannot
21010 - bpo-29960: Preserve generator state when _random.Random.setstate() raises
21013 - bpo-30414: multiprocessing.Queue._feed background running thread do not
21016 - bpo-30003: Fix handling escape characters in HZ codec. Based on patch by
21019 - bpo-30301: Fix AttributeError when using SimpleQueue.empty() under *spawn*
21022 - bpo-30329: imaplib and poplib now catch the Windows socket WSAEINVAL error
21026 - bpo-30375: Warnings emitted when compile a regular expression now always
21030 - bpo-30048: Fixed ``Task.cancel()`` can be ignored when the task is running
21033 - bpo-29990: Fix range checking in GB18030 decoder. Original patch by Ma
21036 - bpo-26293: Change resulted because of zipfile breakage. (See also:
21037 bpo-29094)
21039 - bpo-30243: Removed the __init__ methods of _json's scanner and encoder.
21043 - bpo-30185: Avoid KeyboardInterrupt tracebacks in forkserver helper process
21044 when Ctrl-C is received.
21046 - bpo-28556: Various updates to typing module: add typing.NoReturn type, use
21047 WrapperDescriptorType, minor bug-fixes. Original PRs by Jim
21048 Fasarakis-Hilliard and Ivan Levkivskyi.
21050 - bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux.
21052 - bpo-30070: Fixed leaks and crashes in errors handling in the parser
21055 - bpo-30061: Fixed crashes in IOBase methods __next__() and readlines() when
21056 readline() or __next__() respectively return non-sizeable object. Fixed
21060 - bpo-30068: _io._IOBase.readlines will check if it's closed first when hint
21061 is present.
21063 - bpo-29694: Fixed race condition in pathlib mkdir with flags parents=True.
21066 - bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
21069 - bpo-29998: Pickling and copying ImportError now preserves name and path
21072 - bpo-29942: Fix a crash in itertools.chain.from_iterable when encountering
21075 - bpo-27863: Fixed multiple crashes in ElementTree caused by race conditions
21078 - bpo-28699: Fixed a bug in pools in multiprocessing.pool that raising an
21082 - bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when
21085 - bpo-29861: Release references to tasks, their arguments and their results
21088 - bpo-29884: faulthandler: Restore the old sigaltstack during teardown.
21091 - bpo-25455: Fixed crashes in repr of recursive buffered file-like objects.
21093 - bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords
21096 - bpo-29742: get_extra_info() raises exception if get called on closed ssl
21099 - bpo-8256: Fixed possible failing or crashing input() if attributes
21103 - bpo-28298: Fix a bug that prevented array 'Q', 'L' and 'I' from accepting
21107 - bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (or any other
21111 - bpo-29704: asyncio.subprocess.SubprocessStreamProtocol no longer closes
21114 - bpo-29703: Fix asyncio to support instantiation of new event loops in
21117 - bpo-29376: Fix assertion error in threading._DummyThread.is_alive().
21119 - bpo-29110: Fix file object leak in aifc.open() when file is given as a
21120 filesystem path and is not in valid AIFF format. Patch by Anthony Zhang.
21122 - bpo-28961: Fix unittest.mock._Call helper: don't ignore the name parameter
21125 - bpo-29532: Altering a kwarg dictionary passed to functools.partial() no
21128 - bpo-28556: Various updates to typing module: typing.Counter,
21132 - bpo-29100: Fix datetime.fromtimestamp() regression introduced in Python
21135 - bpo-29519: Fix weakref spewing exceptions during interpreter shutdown when
21138 - bpo-29416: Prevent infinite loop in pathlib.Path.mkdir
21140 - bpo-29444: Fixed out-of-bounds buffer access in the group() method of the
21143 - bpo-29335: Fix subprocess.Popen.wait() when the child process has exited
21146 - bpo-29290: Fix a regression in argparse that help messages would wrap at
21147 non-breaking spaces.
21149 - bpo-28735: Fixed the comparison of mock.MagickMock with mock.ANY.
21151 - bpo-29011: Fix an important omission by adding Deque to the typing module.
21153 - bpo-29219: Fixed infinite recursion in the repr of uninitialized
21156 - bpo-28969: Fixed race condition in C implementation of
21161 - bpo-29142: In urllib.request, suffixes in no_proxy environment variable
21166 -------------
21168 - bpo-30176: Add missing attribute related constants in curses
21171 - bpo-26985: Add missing info of code object in inspect documentation.
21173 - bpo-28929: Link the documentation to its source file on GitHub.
21175 - bpo-25008: Document smtpd.py as effectively deprecated and add a pointer
21176 to aiosmtpd, a third-party asyncio-based replacement.
21178 - bpo-26355: Add canonical header link on each page to corresponding major
21181 - bpo-29349: Fix Python 2 syntax in code for building the documentation.
21184 -----
21186 - bpo-30822: Fix regrtest command line parser to allow passing -u
21189 - bpo-30383: regrtest: Enhance regrtest and backport features from the
21190 master branch. Add options: --coverage, --testdir, --list-tests (list test
21191 files, don't run them), --list-cases (list test identifiers, don't run
21192 them, :issue:`30523`), --matchfile (load a list of test filters from a
21193 text file, :issue:`30540`), --slowest (alias to --slow). Enhance output:
21196 --huntrleaks: regrtest now warms up caches, create explicitly all internal
21200 - bpo-30357: test_thread: setUp() now uses support.threading_setup() and
21205 - bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. Skip
21209 - bpo-30197: Enhanced functions swap_attr() and swap_item() in the
21213 clause, if there is one.
21215 - bpo-29571: to match the behaviour of the ``re.LOCALE`` flag,
21218 correctly skip the test when the default locale encoding is a multi-byte
21222 -----
21224 - bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
21226 ``--enable-optimizations``.
21228 - bpo-23404: Don't regenerate generated files based on file modification
21229 time anymore: the action is now explicit. Replace ``make touch`` with
21230 ``make regen-all``.
21232 - bpo-29643: Fix ``--enable-optimization`` didn't work.
21235 -------
21237 - bpo-30687: Locate msbuild.exe on Windows when building rather than
21240 - bpo-29392: Prevent crash when passing invalid arguments into msvcrt
21244 -----
21246 - bpo-27867: Function PySlice_GetIndicesEx() is replaced with a macro if
21247 Py_LIMITED_API is set to the value between 0x03050400 and 0x03060000 (not
21250 - bpo-29083: Fixed the declaration of some public API functions.
21254 PY_SSIZE_T_CLEAN is defined.
21260 *Release date: 2017-01-17*
21269 *Release date: 2017-01-02*
21272 -----------------
21274 - bpo-29073: bytearray formatting no longer truncates on first null byte.
21276 - bpo-28932: Do not include <sys/random.h> if it does not exist.
21278 - bpo-28147: Fix a memory leak in split-table dictionaries: setattr() must
21281 - bpo-25677: Correct the positioning of the syntax error caret for indented
21284 - bpo-29000: Fixed bytes formatting of octals with zero padding in alternate
21287 - bpo-28512: Fixed setting the offset attribute of SyntaxError by
21290 - bpo-28991: functools.lru_cache() was susceptible to an obscure reentrancy
21291 bug caused by a monkey-patched len() function.
21293 - bpo-28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
21296 - bpo-19398: Extra slash no longer added to sys.path components in case of
21297 empty compile-time PYTHONPATH components.
21299 - bpo-28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug
21302 - bpo-23782: Fixed possible memory leak in _PyTraceback_Add() and exception
21305 - bpo-28379: Added sanity checks and tests for PyUnicode_CopyCharacters().
21308 - bpo-28376: The type of long range iterator is now registered as Iterator.
21311 - bpo-28376: The constructor of range_iterator now checks that step is not
21314 - bpo-26906: Resolving special methods of uninitialized type now causes
21317 - bpo-18287: PyType_Ready() now checks that tp_name is not NULL. Original
21320 - bpo-24098: Fixed possible crash when AST is changed in process of
21323 - bpo-28350: String constants with null character no longer interned.
21325 - bpo-26617: Fix crash when GC runs during weakref callbacks.
21327 - bpo-27942: String constants now interned recursively in tuples and
21330 - bpo-21578: Fixed misleading error message when ImportError called with
21333 - bpo-28203: Fix incorrect type in error message from ``complex(1.0,
21336 - bpo-27955: Fallback on reading /dev/urandom device when the getrandom()
21339 - bpo-28131: Fix a regression in zipimport's compile_source(). zipimport
21342 - bpo-25221: Fix corrupted result from PyLong_FromLong(0) when Python is
21345 - bpo-25758: Prevents zipimport from unnecessarily encoding a filename
21348 - bpo-28189: dictitems_contains no longer swallows compare errors. (Patch by
21351 - bpo-27812: Properly clear out a generator's frame's backreference to the
21354 - bpo-27811: Fix a crash when a coroutine that has not been awaited is
21355 finalized with warnings-as-errors enabled.
21357 - bpo-27587: Fix another issue found by PVS-Studio: Null pointer check after
21360 - bpo-26020: set literal evaluation order did not match documented
21363 - bpo-27782: Multi-phase extension module import now correctly allows the
21365 of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.
21367 - bpo-27936: The round() function accepted a second None argument for some
21371 - bpo-27487: Warn if a submodule argument to "python -m" or
21372 runpy.run_module() is found in sys.modules after parent packages are
21373 imported, but before the submodule is executed.
21375 - bpo-27558: Fix a SystemError in the implementation of "raise" statement.
21376 In a brand new thread, raise a RuntimeError since there is no active
21379 - bpo-27419: Standard __import__() no longer look up "__import__" in globals
21381 error of non-string package name.
21383 - bpo-27083: Respect the PYTHONCASEOK environment variable under Windows.
21385 - bpo-27514: Make having too many statically nested blocks a SyntaxError
21388 - bpo-27473: Fixed possible integer overflow in bytes and bytearray
21391 - bpo-27507: Add integer overflow check in bytearray.extend(). Patch by
21394 - bpo-27581: Don't rely on wrapping for overflow check in
21397 - bpo-27443: __length_hint__() of bytearray iterators no longer return a
21400 - bpo-27942: Fix memory leak in codeobject.c
21403 -------
21405 - bpo-15812: inspect.getframeinfo() now correctly shows the first line of a
21408 - bpo-29094: Offsets in a ZIP file created with extern file object and modes
21411 - bpo-13051: Fixed recursion errors in large or resized
21414 - bpo-29119: Fix weakrefs in the pure python version of
21418 - bpo-9770: curses.ascii predicates now work correctly with negative
21421 - bpo-28427: old keys should not remove new values from WeakValueDictionary
21424 - bpo-28923: Remove editor artifacts from Tix.py.
21426 - bpo-28871: Fixed a crash when deallocate deep ElementTree.
21428 - bpo-19542: Fix bugs in WeakValueDictionary.setdefault() and
21431 - bpo-20191: Fixed a crash in resource.prlimit() when pass a sequence that
21434 - bpo-28779: multiprocessing.set_forkserver_preload() would crash the
21438 - bpo-28847: dbm.dumb now supports reading read-only files and no longer
21439 writes the index file when it is not changed.
21441 - bpo-25659: In ctypes, prevent a crash calling the from_buffer() and
21444 - bpo-28732: Fix crash in os.spawnv() with no elements in args
21446 - bpo-28485: Always raise ValueError for negative
21447 compileall.compile_dir(workers=...) parameter, even when multithreading is
21450 - bpo-28387: Fixed possible crash in _io.TextIOWrapper deallocator when the
21451 garbage collector is invoked in other thread. Based on patch by Sebastian
21454 - bpo-27517: LZMA compressor and decompressor no longer raise exceptions if
21457 - bpo-28549: Fixed segfault in curses's addch() with ncurses6.
21459 - bpo-28449: tarfile.open() with mode "r" or "r:" now tries to open a tar
21463 - bpo-23262: The webbrowser module now supports Firefox 36+ and derived
21466 - bpo-27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
21468 now works if float value is set to underlying Tk variable.
21470 - bpo-28255: calendar.TextCalendar().prmonth() no longer prints a space at
21474 - bpo-20491: The textwrap.TextWrapper class now honors non-breaking spaces.
21477 - bpo-28353: os.fwalk() no longer fails on broken links.
21479 - bpo-25464: Fixed HList.header_exists() in tkinter.tix module by addin a
21482 - bpo-28488: shutil.make_archive() no longer add entry "./" to ZIP archive.
21484 - bpo-24452: Make webbrowser support Chrome on Mac OS X.
21486 - bpo-20766: Fix references leaked by pdb in the handling of SIGINT
21489 - bpo-26293: Fixed writing ZIP files that starts not from the start of the
21493 - bpo-28321: Fixed writing non-BMP characters with binary format in
21496 - bpo-28322: Fixed possible crashes when unpickle itertools objects from
21499 - Fix possible integer overflows and crashes in the mmap module with unusual
21502 - bpo-1703178: Fix the ability to pass the --link-objects option to the
21505 - bpo-28253: Fixed calendar functions for extreme months: 0001-01 and
21506 9999-12. Methods itermonthdays() and itermonthdays2() are reimplemented so
21510 - bpo-28275: Fixed possible use after free in the decompress() methods of
21514 - bpo-27897: Fixed possible crash in sqlite3.Connection.create_collation()
21515 if pass invalid string-like object as a name. Patch by Xiang Zhang.
21517 - bpo-18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py.
21520 - bpo-27611: Fixed support of default root window in the tkinter.tix module.
21522 - bpo-27348: In the traceback module, restore the formatting of exception
21526 - bpo-25651: Allow falsy values to be used for msg parameter of subTest().
21528 - bpo-27932: Prevent memory leak in win32_ver().
21530 - Fix UnboundLocalError in socket._sendfile_use_sendfile.
21532 - bpo-28075: Check for ERROR_ACCESS_DENIED in Windows implementation of
21535 - bpo-25270: Prevent codecs.escape_encode() from raising SystemError when an
21536 empty bytestring is passed.
21538 - bpo-28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
21540 - bpo-25895: Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by
21543 - bpo-27599: Fixed buffer overrun in binascii.b2a_qp() and
21546 - bpo-19003: m email.generator now replaces only ``\r`` and/or ``\n`` line
21549 - bpo-28019: itertools.count() no longer rounds non-integer step in range
21552 - bpo-25969: Update the lib2to3 grammar to handle the unpacking
21555 - bpo-14977: mailcap now respects the order of the lines in the mailcap
21558 - bpo-24594: Validates persist parameter when opening MSI database
21560 - bpo-17582: xml.etree.ElementTree nows preserves whitespaces in attributes
21563 - bpo-28047: Fixed calculation of line length used for the base64 CTE in the
21566 - bpo-27445: Don't pass str(_charset) to MIMEText.set_payload(). Patch by
21569 - bpo-22450: urllib now includes an ``Accept: */*`` header among the default
21573 - lib2to3.pgen3.driver.load_grammar() now creates a stable cache file
21577 - bpo-27570: Avoid zero-length memcpy() etc calls with null source pointers
21580 - bpo-22233: Break email header lines *only* on the RFC specified CR and LF
21584 - bpo-27988: Fix email iter_attachments incorrect mutation of payload list.
21586 - bpo-27691: Fix ssl module's parsing of GEN_RID subject alternative name
21589 - bpo-27850: Remove 3DES from ssl module's default cipher list to counter
21590 measure sweet32 attack (CVE-2016-2183).
21592 - bpo-27766: Add ChaCha20 Poly1305 to ssl module's default cipher list.
21595 - bpo-26470: Port ssl and hashlib module to OpenSSL 1.1.0.
21597 - Remove support for passing a file descriptor to os.access. It never worked
21600 - bpo-12885: Fix error when distutils encounters symlink.
21602 - bpo-27881: Fixed possible bugs when setting
21605 - bpo-27861: Fixed a crash in sqlite3.Connection.cursor() when a factory
21608 - bpo-19884: Avoid spurious output on OS X with Gnu Readline.
21610 - bpo-27706: Restore deterministic behavior of random.Random().seed() for
21615 - bpo-10513: Fix a regression in Connection.commit(). Statements should not
21618 - A new version of typing.py from https://github.com/python/typing:
21623 - bpo-27539: Fix unnormalised ``Fraction.__pow__`` result in the case of
21626 - bpo-21718: cursor.description is now available for queries using CTEs.
21628 - bpo-2466: posixpath.ismount now correctly recognizes mount points which
21631 - bpo-27773: Correct some memory management errors server_hostname in
21634 - bpo-26750: unittest.mock.create_autospec() now works properly for
21637 - In the curses module, raise an error if window.getstr() or window.instr()
21638 is passed a negative value.
21640 - bpo-27783: Fix possible usage of uninitialized memory in
21643 - bpo-27774: Fix possible Py_DECREF on unowned object in _sre.
21645 - bpo-27760: Fix possible integer overflow in binascii.b2a_qp.
21647 - bpo-27758: Fix possible integer overflow in the _csv module for large
21650 - bpo-27568: Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the
21651 HTTP_PROXY variable when REQUEST_METHOD environment is set, which
21652 indicates that the script is in CGI mode.
21654 - bpo-27656: Do not assume sched.h defines any SCHED_* constants.
21656 - bpo-27130: In the "zlib" module, fix handling of large buffers (typically
21661 - bpo-27533: Release GIL in nt._isdir
21663 - bpo-17711: Fixed unpickling by the persistent ID with protocol 0. Original
21666 - bpo-27522: Avoid an unintentional reference cycle in email.feedparser.
21668 - bpo-26844: Fix error message for imp.find_module() to refer to 'path'
21671 - bpo-23804: Fix SSL zero-length recv() calls to not block and not raise an
21674 - bpo-27466: Change time format returned by http.cookie.time2netscape,
21678 - bpo-26664: Fix activate.fish by removing mis-use of ``$``.
21680 - bpo-22115: Fixed tracing Tkinter variables: trace_vdelete() with wrong
21684 - Fix a scoping issue in importlib.util.LazyLoader which triggered an
21685 UnboundLocalError when lazy-loading a module that was already put into
21688 - bpo-27079: Fixed curses.ascii functions isblank(), iscntrl() and
21691 - bpo-26754: Some functions (compile() etc) accepted a filename argument
21692 encoded as an iterable of integers. Now only strings and byte-like objects
21695 - bpo-27048: Prevents distutils failing on Windows when environment
21696 variables contain non-ASCII characters
21698 - bpo-27330: Fixed possible leaks in the ctypes module.
21700 - bpo-27238: Got rid of bare excepts in the turtle module. Original patch
21703 - bpo-27122: When an exception is raised within the context being managed by
21705 raises it in a chain, do not re-raise the original exception when exiting,
21710 --------
21712 - bpo-27278: Fix os.urandom() implementation using getrandom() on Linux.
21717 -------
21719 - bpo-26386: Fixed ttk.TreeView selection operations with item id's
21723 --------
21725 - bpo-22636: Avoid shell injection problems with ctypes.util.find_library().
21728 -------
21730 - bpo-16182: Fix various functions in the "readline" module to use the
21734 - bpo-27392: Add loop.connect_accepted_socket(). Patch by Jim Fulton.
21736 - bpo-27930: Improved behaviour of logging.handlers.QueueListener. Thanks to
21739 - bpo-21201: Improves readability of multiprocessing error message. Thanks
21742 - bpo-27456: asyncio: Set TCP_NODELAY by default.
21744 - bpo-27906: Fix socket accept exhaustion during high TCP traffic. Patch by
21747 - bpo-28174: Handle when SO_REUSEPORT isn't properly supported. Patch by
21750 - bpo-26654: Inspect functools.partial in asyncio.Handle.__repr__. Patch by
21753 - bpo-26909: Fix slow pipes IO in asyncio. Patch by INADA Naoki.
21755 - bpo-28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.
21757 - bpo-27759: Fix selectors incorrectly retain invalid file descriptors.
21760 - bpo-28368: Refuse monitoring processes if the child watcher has no loop
21763 - bpo-28369: Raise RuntimeError when transport's FD is used with add_reader,
21766 - bpo-28370: Speedup asyncio.StreamReader.readexactly. Patch by Коренберг
21769 - bpo-28371: Deprecate passing asyncio.Handles to run_in_executor.
21771 - bpo-28372: Fix asyncio to support formatting of non-python coroutines.
21773 - bpo-28399: Remove UNIX socket from FS before binding. Patch by Коренберг
21776 - bpo-27972: Prohibit Tasks to await on themselves.
21778 - bpo-26923: Fix asyncio.Gather to refuse being cancelled once all children
21781 - bpo-26796: Don't configure the number of workers for default threadpool
21784 - bpo-28600: Optimize loop.call_soon().
21786 - bpo-28613: Fix get_event_loop() return the current loop if called from
21789 - bpo-28639: Fix inspect.isawaitable to always return bool Patch by Justin
21792 - bpo-28652: Make loop methods reject socket kinds they do not support.
21794 - bpo-28653: Fix a refleak in functools.lru_cache.
21796 - bpo-28703: Fix asyncio.iscoroutinefunction to handle Mock objects.
21798 - bpo-24142: Reading a corrupt config file left the parser in an invalid
21801 - bpo-28990: Fix SSL hanging if connection is closed before handshake
21802 completed. (Patch by HoHo-Ho)
21805 ----
21807 - bpo-15308: Add 'interrupt execution' (^C) to Shell menu. Patch by Roger
21810 - bpo-27922: Stop IDLE tests from 'flashing' gui widgets on the screen.
21812 - Add version to title of IDLE help window.
21814 - bpo-25564: In section on IDLE -- console differences, mention that using
21815 exec means that __builtins__ is defined for each statement.
21817 - bpo-27714: text_textview and test_autocomplete now pass when re-run in the
21818 same process. This occurs when test_idle fails when run with the -w
21819 option but without -jn. Fix warning from test_config.
21821 - bpo-25507: IDLE no longer runs buggy code because of its tkinter imports.
21824 - bpo-27452: add line counter and crc to IDLE configHandler test dump.
21826 - bpo-27365: Allow non-ascii chars in IDLE NEWS.txt, for contributor names.
21828 - bpo-27245: IDLE: Cleanly delete custom themes and key bindings.
21833 -----
21835 - bpo-28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
21837 - bpo-26754: PyUnicode_FSDecoder() accepted a filename argument encoded as
21838 an iterable of integers. Now only strings and bytes-like objects are
21842 -------------
21844 - bpo-28513: Documented command-line interface of zipfile.
21847 -----
21849 - bpo-28950: Disallow -j0 to be combined with -T/-l/-M in regrtest command
21852 - bpo-28666: Now test.support.rmtree is able to remove unwritable or
21855 - bpo-23839: Various caches now are cleared before running every test file.
21857 - bpo-28409: regrtest: fix the parser of command line arguments.
21859 - bpo-27787: Call gc.collect() before checking each test for "dangling
21862 - bpo-27369: In test_pyexpat, avoid testing an error message detail that
21866 -----------
21868 - bpo-27952: Get Tools/scripts/fixcid.py working with Python 3 and the
21872 - bpo-27332: Fixed the type of the first argument of module-level functions
21875 - bpo-27418: Fixed Tools/importbench/importbench.py.
21878 -------
21880 - bpo-28251: Improvements to help manuals on Windows.
21882 - bpo-28110: launcher.msi has different product codes between 32-bit and
21883 64-bit
21885 - bpo-25144: Ensures TargetDir is set before continuing with custom install.
21887 - bpo-27469: Adds a shell extension to the launcher so that drag and drop
21890 - bpo-27309: Enabled proper Windows styles in python[w].exe manifest.
21893 -----
21895 - bpo-29080: Removes hard dependency on hg.exe from PCBuild/build.bat
21897 - bpo-23903: Added missed names to PC/python3.def.
21899 - bpo-10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
21902 - bpo-26359: Rename --with-optimiations to --enable-optimizations.
21904 - bpo-28444: Fix missing extensions modules when cross compiling.
21906 - bpo-28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j.
21908 - bpo-28258: Fixed build with Estonian locale (python-config and distclean
21911 - bpo-26661: setup.py now detects system libffi with multiarch wrapper.
21913 - bpo-28066: Fix the logic that searches build directories for generated
21916 - bpo-15819: Remove redundant include search directory option for building
21919 - bpo-27566: Fix clean target in freeze makefile (patch by Lisa Roach)
21921 - bpo-27705: Update message in validate_ucrtbase.py
21923 - bpo-27983: Cause lack of llvm-profdata tool when using clang as required
21925 --with-optimizations is enabled. Also improve our ability to find the
21926 llvm-profdata tool on MacOS and some Linuxes.
21928 - bpo-26307: The profile-opt build now applies PGO to the built-in modules.
21930 - bpo-26359: Add the --with-optimizations configure flag.
21932 - bpo-27713: Suppress spurious build warnings when updating importlib's
21935 - bpo-25825: Correct the references to Modules/python.exp and ld_so_aix,
21940 - bpo-27453: CPP invocation in configure must use CPPFLAGS. Patch by Chi
21943 - bpo-27641: The configure script now inserts comments into the makefile to
21945 cross-compiled.
21947 - bpo-26662: Set PYTHON_FOR_GEN in configure as the Python program to be
21950 - bpo-10910: Avoid C++ compilation errors on FreeBSD and OS X. Also update
21951 FreedBSD version checks for the original ctype UTF-8 workaround.
21953 - bpo-28676: Prevent missing 'getentropy' declaration warning on macOS.
21960 *Release date: 2016-06-26*
21963 -----------------
21965 - bpo-26930: Update Windows builds to use OpenSSL 1.0.2h.
21968 -----
21970 - bpo-26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test.
21973 ----
21975 - bpo-27365: Allow non-ascii in idlelib/NEWS.txt - minimal part for 3.5.2.
21981 *Release date: 2016-06-12*
21984 -----------------
21986 - bpo-27066: Fixed SystemError if a custom opener (for open()) returns a
21989 - bpo-20041: Fixed TypeError when frame.f_trace is set to None. Patch by
21992 - bpo-26168: Fixed possible refleaks in failing Py_BuildValue() with the "N"
21995 - bpo-26991: Fix possible refleak when creating a function with annotations.
21997 - bpo-27039: Fixed bytearray.remove() for values greater than 127. Patch by
22000 - bpo-23640: int.from_bytes() no longer bypasses constructors for
22003 - bpo-26811: gc.get_objects() no longer contains a broken tuple with NULL
22006 - bpo-20120: Use RawConfigParser for .pypirc parsing, removing support for
22011 - bpo-26659: Make the builtin slice type support cycle collection.
22013 - bpo-26718: super.__init__ no longer leaks memory if called multiple times.
22014 NOTE: A direct call of super.__init__ is not endorsed!
22016 - bpo-25339: PYTHONIOENCODING now has priority over locale in setting the
22019 - bpo-26494: Fixed crash on iterating exhausting iterators. Affected classes
22024 - bpo-26581: If coding cookie is specified multiple times on a line in
22025 Python source code file, only the first one is taken to account.
22027 - bpo-26464: Fix str.translate() when string is ASCII and first replacements
22028 removes character, but next replacement uses a non-ASCII character or a
22031 - bpo-22836: Ensure exception reports from PyErr_Display() and
22036 - bpo-26302: Correct behavior to reject comma as a legal character for
22039 - bpo-4806: Avoid masking the original TypeError exception when using star
22043 - bpo-27138: Fix the doc comment for FileFinder.find_spec().
22045 - bpo-26154: Add a new private _PyThreadState_UncheckedGet() function to get
22046 the current Python thread state, but don't issue a fatal error if it is
22048 _PyThreadState_Current variable. The variable is no more exposed since
22052 - bpo-26194: Deque.insert() gave odd results for bounded deques that had
22056 - bpo-25843: When compiling code, don't merge constants if they are equal
22058 1.0`` is now correctly compiled to two different functions: ``f1()``
22062 - bpo-22995: [UPDATE] Comment out the one of the pickleability tests in
22063 _PyObject_GetState() due to regressions observed in Cython-based projects.
22065 - bpo-25961: Disallowed null characters in the type name.
22067 - bpo-25973: Fix segfault when an invalid nonlocal statement binds a name
22070 - bpo-22995: Instances of extension types with a state that aren't
22071 subclasses of list or dict and haven't implemented any pickle-related
22075 - bpo-20440: Massive replacing unsafe attribute setting code with special
22078 - bpo-25766: Special method __bytes__() now works in str subclasses.
22080 - bpo-25421: __sizeof__ methods of builtin types now use dynamic basic size.
22084 - bpo-25709: Fixed problem with in-place string concatenation and utf-8
22087 - bpo-27147: Mention :pep:`420` in the importlib docs.
22089 - bpo-24097: Fixed crash in object.__reduce__() if slot name is freed inside
22092 - bpo-24731: Fixed crash on converting objects with special methods
22097 - bpo-26478: Fix semantic bugs when using binary operators with dictionary
22100 - bpo-26171: Fix possible integer overflow and heap corruption in
22103 - bpo-25660: Fix TAB key behaviour in REPL with readline.
22105 - bpo-25887: Raise a RuntimeError when a coroutine object is awaited more
22108 - bpo-27243: Update the __aiter__ protocol: instead of returning an
22114 --------
22116 - bpo-26556: Update expat to 2.1.1, fixes CVE-2015-1283.
22118 - Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by
22122 -------
22124 - bpo-21386: Implement missing IPv4Address.is_global property. It was
22127 - bpo-20900: distutils register command now decodes HTTP responses
22130 - A new version of typing.py provides several new classes and features:
22138 - bpo-25738: Stop http.server.BaseHTTPRequestHandler.send_error() from
22143 - bpo-21313: Fix the "platform" module to tolerate when sys.version contains
22147 --------
22149 - bpo-26839: On Linux, :func:`os.urandom` now calls ``getrandom()`` with
22151 entropy pool is not initialized yet. Patch written by Colm Buckley.
22154 -------
22156 - bpo-27164: In the zlib module, allow decompressing raw Deflate streams
22159 - bpo-24291: Fix wsgiref.simple_server.WSGIRequestHandler to completely
22162 doing partial writes, but this is deprecated.
22164 - bpo-26809: Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry.
22166 - bpo-26373: subprocess.Popen.communicate now correctly ignores
22167 BrokenPipeError when the child process dies before .communicate() is
22170 - bpo-21776: distutils.upload now correctly handles HTTPError. Initial patch
22173 - bpo-27114: Fix SSLContext._load_windows_store_certs fails with
22176 - bpo-18383: Avoid creating duplicate filters when using filterwarnings and
22179 - bpo-27057: Fix os.set_inheritable() on Android, ioctl() is blocked by
22183 - bpo-27014: Fix infinite recursion using typing.py. Thanks to Kalle Tuure!
22185 - bpo-14132: Fix urllib.request redirect handling when the target only has a
22188 - bpo-17214: The "urllib.request" module now percent-encodes non-ASCII bytes
22190 with non-ASCII bytes, but "http.client" requires the request target to be
22191 ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch
22194 - bpo-26892: Honor debuglevel flag in urllib.request.HTTPHandler. Patch
22197 - bpo-22274: In the subprocess module, allow stderr to be redirected to
22198 stdout even when stdout is not redirected. Patch by Akira Li.
22200 - bpo-26807: mock_open 'files' no longer error on readline at end of file.
22203 - bpo-25745: Fixed leaking a userptr in curses panel destructor.
22205 - bpo-26977: Removed unnecessary, and ignored, call to sum of squares helper
22208 - bpo-26881: The modulefinder module now supports extended opcode arguments.
22210 - bpo-23815: Fixed crashes related to directly created instances of types in
22213 - bpo-17765: weakref.ref() no longer silently ignores keyword arguments.
22216 - bpo-26873: xmlrpc now raises ResponseError on unsupported type tags
22219 - bpo-26711: Fixed the comparison of plistlib.Data with other types.
22221 - bpo-24114: Fix an uninitialized variable in `ctypes.util`. The bug only
22225 - bpo-26864: In urllib.request, change the proxy bypass host checking
22226 against no_proxy to be case-insensitive, and to not match unrelated host
22230 - bpo-26634: recursive_repr() now sets __qualname__ of wrapper. Patch by
22233 - bpo-26804: urllib.request will prefer lower_case proxy environment
22235 Hans-Peter Jansen.
22237 - bpo-26837: assertSequenceEqual() now correctly outputs non-stringified
22238 differing items (like bytes in the -b mode). This affects
22241 - bpo-26041: Remove "will be removed in Python 3.7" from deprecation
22245 - bpo-26822: itemgetter, attrgetter and methodcaller objects no longer
22248 - bpo-26733: Disassembling a class now disassembles class and static
22251 - bpo-26801: Fix error handling in :func:`shutil.get_terminal_size`, catch
22255 - bpo-24838: tarfile's ustar and gnu formats now correctly calculate name
22256 and link field limits for multibyte character encodings like utf-8.
22259 --------
22261 - bpo-26657: Fix directory traversal vulnerability with http.server on
22266 -------
22268 - bpo-26717: Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by
22271 - bpo-26735: Fix :func:`os.urandom` on Solaris 11.3 and newer when reading
22275 - bpo-16329: Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'.
22277 - bpo-13952: Add .csv to mimetypes.types_map. Patch by Geoff Wilson.
22279 - bpo-26709: Fixed Y2038 problem in loading binary PLists.
22281 - bpo-23735: Handle terminal resizing with Readline 6.3+ by installing our
22284 - bpo-26586: In http.server, respond with "413 Request header fields too
22288 - bpo-22854: Change BufferedReader.writable() and BufferedWriter.readable()
22291 - bpo-25195: Fix a regression in mock.MagicMock. _Call is a subclass of
22295 - bpo-26644: Raise ValueError rather than SystemError when a negative length
22296 is passed to SSLSocket.recv() or read().
22298 - bpo-23804: Fix SSL recv(0) and read(0) methods to return zero bytes
22301 - bpo-26616: Fixed a bug in datetime.astimezone() method.
22303 - bpo-21925: :func:`warnings.formatwarning` now catches exceptions on
22307 - bpo-24266: Ctrl+C during Readline history search now cancels the search
22310 - bpo-26560: Avoid potential ValueError in BaseHandler.start_response.
22314 --------
22316 - bpo-26313: ssl.py _load_windows_store_certs fails if windows cert store is
22320 -------
22322 - bpo-26569: Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex`
22325 - bpo-26499: Account for remaining Content-Length in HTTPResponse.readline()
22329 - bpo-25320: Handle sockets in directories unittest discovery is scanning.
22332 - bpo-16181: cookiejar.http2time() now returns None if year is higher than
22335 - bpo-26513: Fixes platform module detection of Windows Server
22337 - bpo-23718: Fixed parsing time in week 0 before Jan 1. Original patch by
22340 - bpo-20589: Invoking Path.owner() and Path.group() on Windows now raise
22343 - bpo-26177: Fixed the keys() method for Canvas and Scrollbar widgets.
22345 - bpo-15068: Got rid of excessive buffering in the fileinput module. The
22346 bufsize parameter is no longer used.
22348 - bpo-2202: Fix UnboundLocalError in
22352 - bpo-25718: Fixed pickling and copying the accumulate() iterator with total
22353 is None.
22355 - bpo-26475: Fixed debugging output for regular expressions with the (?x)
22358 - bpo-26457: Fixed the subnets() methods in IP network classes for the case
22359 when resulting prefix length is equal to maximal prefix length. Based on
22362 - bpo-26385: Remove the file if the internal open() call in
22365 - bpo-26402: Fix XML-RPC client to retry when the server shuts down a
22369 - bpo-25913: Leading ``<~`` is optional now in base64.a85decode() with
22372 - bpo-26186: Remove an invalid type check in importlib.util.LazyLoader.
22374 - bpo-26367: importlib.__import__() raises SystemError like
22375 builtins.__import__() when ``level`` is specified but without an
22378 - bpo-26309: In the "socketserver" module, shut down the request (closing
22383 --------
22385 - bpo-25939: On Windows open the cert store readonly in
22389 -------
22391 - bpo-25995: os.walk() no longer uses FDs proportional to the tree depth.
22393 - bpo-26117: The os.scandir() iterator now closes file descriptor not only
22394 when the iteration is finished, but when it was failed with error.
22396 - bpo-25911: Restored support of bytes paths in os.walk() on Windows.
22398 - bpo-26045: Add UTF-8 suggestion to error message when posting a
22399 non-Latin-1 string with http.client.
22401 - bpo-12923: Reset FancyURLopener's redirect counter even if there is an
22404 - bpo-25945: Fixed a crash when unpickle the functools.partial object with
22409 - bpo-26202: copy.deepcopy() now correctly copies range() objects with
22410 non-atomic attributes.
22412 - bpo-23076: Path.glob() now raises a ValueError if it's called with an
22415 - bpo-19883: Fixed possible integer overflows in zipimport.
22417 - bpo-26227: On Windows, getnameinfo(), gethostbyaddr() and
22419 from the ANSI code page rather than UTF-8.
22421 - bpo-26147: xmlrpc now works with strings not encodable with used non-UTF-8
22424 - bpo-25935: Garbage collector now breaks reference loops with OrderedDict.
22426 - bpo-16620: Fixed AttributeError in msilib.Directory.glob().
22428 - bpo-26013: Added compatibility with broken protocol 2 pickles created in
22431 - bpo-25850: Use cross-compilation by default for 64-bit Windows.
22433 - bpo-17633: Improve zipimport's support for namespace packages.
22435 - bpo-24705: Fix sysconfig._parse_makefile not expanding ${} vars appearing
22438 - bpo-22138: Fix mock.patch behavior when patching descriptors. Restore
22441 - bpo-25672: In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode
22442 option if it is safe to do so.
22444 - bpo-26012: Don't traverse into symlinks for ``**`` pattern in
22447 - bpo-24120: Ignore PermissionError when traversing a tree with
22450 - bpo-25447: fileinput now uses sys.stdin as-is if it does not have a buffer
22453 - bpo-25447: Copying the lru_cache() wrapper object now always works,
22457 - bpo-24103: Fixed possible use after free in ElementTree.XMLPullParser.
22459 - bpo-25860: os.fwalk() no longer skips remaining directories when error
22462 - bpo-25914: Fixed and simplified OrderedDict.__sizeof__.
22464 - bpo-25902: Fixed various refcount issues in ElementTree iteration.
22466 - bpo-25717: Restore the previous behaviour of tolerating most fstat()
22470 - bpo-24903: Fix regression in number of arguments compileall accepts when
22471 '-d' is specified. The check on the number of arguments has been dropped
22474 - bpo-25764: In the subprocess module, preserve any exception caused by
22475 fork() failure when preexec_fn is used.
22477 - bpo-6478: _strptime's regexp cache now is reset after changing timezone
22480 - bpo-14285: When executing a package with the "python -m package" option,
22481 and package initialization fails, a proper traceback is now reported. The
22485 - bpo-19771: Also in runpy and the "-m" option, omit the irrelevant message
22486 ". . . is a package and cannot be directly executed" if the package could
22489 - bpo-25177: Fixed problem with the mean of very small and very large
22493 - bpo-25718: Fixed copying object with state with boolean value is false.
22495 - bpo-10131: Fixed deep copying of minidom documents. Based on patch by
22498 - bpo-25725: Fixed a reference leak in pickle.loads() when unpickling
22501 - bpo-25663: In the Readline completer, avoid listing duplicate global
22504 - bpo-25688: Fixed file leak in ElementTree.iterparse() raising an error.
22506 - bpo-23914: Fixed SystemError raised by unpickler on broken pickle data.
22508 - bpo-25691: Fixed crash on deleting ElementTree.Element attributes.
22510 - bpo-25624: ZipFile now always writes a ZIP_STORED header for directory
22513 - Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu
22516 - bpo-26050: Add asyncio.StreamReader.readuntil() method. Patch by Марк
22519 - bpo-25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
22522 - bpo-26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
22525 - bpo-26848: Fix asyncio/subprocess.communicate() to handle empty input.
22528 - bpo-27040: Add loop.get_exception_handler method
22530 - bpo-27041: asyncio: Add loop.create_future method
22532 - bpo-27223: asyncio: Fix _read_ready and _write_ready to respect
22535 - bpo-22970: asyncio: Fix inconsistency cancelling Condition.wait. Patch by
22539 ----
22541 - bpo-5124: Paste with text selected now replaces the selection on X11. This
22545 - bpo-24759: Make clear in idlelib.idle_test.__init__ that the directory is
22548 - bpo-27196: Stop 'ThemeChanged' warnings when running IDLE tests. These
22553 - bpo-20567: Revise idle_test/README.txt with advice about avoiding tk
22556 - bpo-27117: Make colorizer htest and turtledemo work with dark themes. Move
22559 - bpo-26673: When tk reports font size as 0, change to size 10. Such fonts
22562 - bpo-21939: Add test for IDLE's percolator. Original patch by Saimadhav
22565 - bpo-21676: Add test for IDLE's replace dialog. Original patch by Saimadhav
22568 - bpo-18410: Add test for IDLE's search dialog. Original patch by Westley
22571 - bpo-21703: Add test for IDLE's undo delegator. Original patch by Saimadhav
22574 - bpo-27044: Add ConfigDialog.remove_var_callbacks to stop memory leaks.
22576 - bpo-23977: Add more asserts to test_delegator.
22578 - bpo-20640: Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav
22581 - In the 'IDLE-console differences' section of the IDLE doc, clarify how
22584 - bpo-25507: fix incorrect change in IOBinding that prevented printing.
22587 - bpo-25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION
22588 MARK in README.txt and open this and NEWS.txt with 'ascii'. Re-encode
22589 CREDITS.txt to utf-8 and open it with 'utf-8'.
22592 -------------
22594 - bpo-19489: Moved the search box from the sidebar to the header and footer
22597 - bpo-24136: Document the new :pep:`448` unpacking syntax of 3.5.
22599 - bpo-26736: Used HTTPS for external links in the documentation if possible.
22601 - bpo-6953: Rework the Readline module documentation to group related
22605 - bpo-23606: Adds note to ctypes documentation regarding cdll.msvcrt.
22607 - bpo-25500: Fix documentation to not claim that __import__ is searched for
22610 - bpo-26014: Update 3.x packaging documentation: * "See also" links to the
22615 -----
22617 - bpo-21916: Added tests for the turtle module. Patch by ingrid, Gregory
22620 - bpo-26523: The multiprocessing thread pool (multiprocessing.dummy.Pool)
22623 - bpo-26015: Added new tests for pickling iterators of mutable sequences.
22625 - bpo-26325: Added test.support.check_no_resource_warning() to check that no
22626 ResourceWarning is emitted.
22628 - bpo-25940: Changed test_ssl to use self-signed.pythontest.net. This
22631 - bpo-25616: Tests for OrderedDict are extracted from test_collections into
22634 - bpo-26583: Skip test_timestamp_overflow in test_import if bytecode files
22638 -----
22640 - bpo-26884: Fix linking extension modules for cross builds. Patch by Xavier
22643 - bpo-22359: Disable the rules for running _freeze_importlib and pgen when
22644 cross-compiling. The output of these programs is normally saved with the
22645 source code anyway, and is still regenerated when doing a native build.
22648 - bpo-27229: Fix the cross-compiling pgen rule for in-tree builds. Patch by
22651 - bpo-21668: Link audioop, _datetime, _ctypes_test modules to libm, except
22654 - bpo-25702: A --with-lto configure option has been added that will enable
22655 link time optimizations at build time during a make profile-opt. Some
22658 provide a few % speed up over profile-opt alone.
22660 - bpo-26624: Adds validation of ucrtbase[d].dll version with warning for old
22663 - bpo-17603: Avoid error about nonexistent fileblocks.o file by using a
22664 lower-level check for st_blocks in struct stat.
22666 - bpo-26079: Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern
22669 - bpo-26465: Update Windows builds to use OpenSSL 1.0.2g.
22671 - bpo-24421: Compile Modules/_math.c once, before building extensions.
22675 - bpo-25348: Added ``--pgo`` and ``--pgo-job`` arguments to
22676 ``PCbuild\build.bat`` for building with Profile-Guided Optimization. The
22677 old ``PCbuild\build_pgo.bat`` script is now deprecated, and simply calls
22678 ``PCbuild\build.bat --pgo %*``.
22680 - bpo-25827: Add support for building with ICC to ``configure``, including a
22681 new ``--with-icc`` flag.
22683 - bpo-25696: Fix installation of Python on UNIX with make -j9.
22685 - bpo-26930: Update OS X 10.5+ 32-bit-only installer to build and link with
22688 - bpo-26268: Update Windows builds to use OpenSSL 1.0.2f.
22690 - bpo-25136: Support Apple Xcode 7's new textual SDK stub libraries.
22692 - bpo-24324: Do not enable unreachable code warnings when using gcc as the
22694 silently removed as of gcc-4.5.
22697 -------
22699 - bpo-27053: Updates make_zip.py to correctly generate library ZIP file.
22701 - bpo-26268: Update the prepare_ssl.py script to handle OpenSSL releases
22702 that don't include the contents of the include directory (that is, 1.0.2e
22705 - bpo-26071: bdist_wininst created binaries fail to start and find 32bit
22708 - bpo-26073: Update the list of magic numbers in launcher
22710 - bpo-26065: Excludes venv from library when generating embeddable distro.
22713 -----------
22715 - bpo-26799: Fix python-gdb.py: don't get C types once when the Python code
22716 is loaded, but get C types on demand. The C types can change if
22717 python-gdb.py is loaded before the Python executable. Patch written by
22720 - bpo-26271: Fix the Freeze tool to properly use flags passed through
22723 - bpo-26489: Add dictionary unpacking support to Tools/parser/unparse.py.
22726 - bpo-26316: Fix variable name typo in Argument Clinic.
22729 -------
22731 - bpo-17500: Remove unused and outdated icons. (See also:
22738 *Release date: 2015-12-06*
22741 -----------------
22743 - bpo-25709: Fixed problem with in-place string concatenation and utf-8
22747 -------
22749 - bpo-25715: Python 3.5.1 installer shows wrong upgrade path and incorrect
22756 *Release date: 2015-11-22*
22759 -----------------
22761 - bpo-25630: Fix a possible segfault during argument parsing in functions
22764 - bpo-23564: Fixed a partially broken sanity check in the _posixsubprocess
22768 - bpo-25388: Fixed tokenizer crash when processing undecodable source code
22771 - bpo-25462: The hash of the key now is calculated only once in most
22774 - bpo-22995: Default implementation of __reduce__ and __reduce_ex__ now
22777 - bpo-25555: Fix parser and AST: fill lineno and col_offset of "arg" node
22780 - bpo-24802: Avoid buffer overreads when int(), float(), compile(), exec()
22781 and eval() are passed bytes-like objects. These objects are not
22785 - bpo-24726: Fixed a crash and leaking NULL in repr() of OrderedDict that
22788 - bpo-25449: Iterating OrderedDict with keys with unstable hash now raises
22791 - bpo-25395: Fixed crash when highly nested OrderedDict structures were
22794 - bpo-25274: sys.setrecursionlimit() now raises a RecursionError if the new
22795 recursion limit is too low depending at the current recursion depth.
22796 Modify also the "lower-water mark" formula to make it monotonic. This mark
22797 is used to decide when the overflowed flag of the thread state is reset.
22799 - bpo-24402: Fix input() to prompt to the redirected stdout when
22802 - bpo-24806: Prevent builtin types that are not allowed to be subclassed
22805 - bpo-24848: Fixed a number of bugs in UTF-7 decoding of misformed data.
22807 - bpo-25280: Import trace messages emitted in verbose (-v) mode are no
22810 - bpo-25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
22812 is blocking to generate very good quality entropy, os.urandom() doesn't
22813 need such high-quality entropy.
22815 - bpo-25182: The stdprinter (used as sys.stderr before the io module is
22818 - bpo-25131: Make the line number and column offset of set/dict literals and
22821 - bpo-25150: Hide the private _Py_atomic_xxx symbols from the public
22827 -------
22829 - bpo-25626: Change three zlib functions to accept sizes that fit in
22836 - bpo-25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)
22839 - bpo-25593: Change semantics of EventLoop.stop() in asyncio.
22841 - bpo-6973: When we know a subprocess.Popen process has died, do not allow
22845 - bpo-25590: In the Readline completer, only call getattr() once per
22848 - bpo-25498: Fix a crash when garbage-collecting ctypes objects created by
22852 - bpo-25584: Added "escape" to the __all__ list in the glob module.
22854 - bpo-25584: Fixed recursive glob() with patterns starting with ``**``.
22856 - bpo-25446: Fix regression in smtplib's AUTH LOGIN support.
22858 - bpo-18010: Fix the pydoc web server's module search function to handle
22861 - bpo-25554: Got rid of circular references in regular expression parsing.
22863 - bpo-25510: fileinput.FileInput.readline() now returns b'' instead of '' at
22867 - bpo-25503: Fixed inspect.getdoc() for inherited docstrings of properties.
22870 - bpo-25515: Always use os.urandom as a source of randomness in uuid.uuid4.
22872 - bpo-21827: Fixed textwrap.dedent() for the case when largest common
22873 whitespace is a substring of smallest leading whitespace. Based on patch
22876 - bpo-25447: The lru_cache() wrapper objects now can be copied and pickled
22879 - bpo-25390: typing: Don't crash on Union[str, Pattern].
22881 - bpo-25441: asyncio: Raise error from drain() when socket is closed.
22883 - bpo-25410: Cleaned up and fixed minor bugs in C implementation of
22886 - bpo-25411: Improved Unicode support in SMTPHandler through better use of
22889 - bpo-25407: Remove mentions of the formatter module being removed in Python
22892 - bpo-25406: Fixed a bug in C implementation of OrderedDict.move_to_end()
22896 - bpo-25364: zipfile now works in threads disabled builds.
22898 - bpo-25328: smtpd's SMTPChannel now correctly raises a ValueError if both
22901 - bpo-25316: distutils raises OSError instead of DistutilsPlatformError when
22902 MSVC is not installed.
22904 - bpo-25380: Fixed protocol for the STACK_GLOBAL opcode in
22907 - bpo-23972: Updates asyncio datagram create method allowing reuseport and
22910 datagram sockets defaults to True if the O/S is 'posix' (except if the
22911 platform is Cygwin). Patch by Chris Laws.
22913 - bpo-25304: Add asyncio.run_coroutine_threadsafe(). This lets you submit a
22917 - bpo-25232: Fix CGIRequestHandler to split the query from the URL at the
22920 - bpo-24657: Prevent CGIRequestHandler from collapsing slashes in the query
22923 - bpo-24483: C implementation of functools.lru_cache() now calculates key's
22926 - bpo-22958: Constructor and update method of weakref.WeakValueDictionary
22929 - bpo-22609: Constructor of collections.UserDict now accepts the self
22932 - bpo-25111: Fixed comparison of traceback.FrameSummary.
22934 - bpo-25262: Added support for BINBYTES8 opcode in Python implementation of
22935 unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
22936 opcodes no longer silently ignored on 32-bit platforms in C
22939 - bpo-25034: Fix string.Formatter problem with auto-numbering and nested
22942 - bpo-25233: Rewrite the guts of asyncio.Queue and asyncio.Semaphore to be
22945 - bpo-25203: Failed readline.set_completer_delims() no longer left the
22948 - bpo-23600: Default implementation of tzinfo.fromutc() was returning wrong
22951 - bpo-23329: Allow the ssl module to be built with older versions of
22954 - Prevent overflow in _Unpickler_Read.
22956 - bpo-25047: The XML encoding declaration written by Element Tree now
22958 write encoding names in uppercase like "UTF-8", which worked in Python 2.
22960 - bpo-25135: Make deque_clear() safer by emptying the deque before clearing.
22963 - bpo-19143: platform module now reads Windows version from kernel32.dll to
22966 - bpo-25092: Fix datetime.strftime() failure when errno was already set to
22969 - bpo-23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methods
22978 - bpo-25155: Fix datetime.datetime.now() and datetime.datetime.utcnow() on
22982 - bpo-25108: Omitted internal frames in traceback functions print_stack(),
22985 - bpo-25118: Fix a regression of Python 3.5.0 in os.waitpid() on Windows.
22987 - bpo-24684: socket.socket.getaddrinfo() now calls
22990 doesn't return a byte string. The encoder of the IDNA codec is now called
22993 - bpo-25060: Correctly compute stack usage of the BUILD_MAP opcode.
22995 - bpo-24857: Comparing call_args to a long sequence now correctly returns a
22998 - bpo-23144: Make sure that HTMLParser.feed() returns all the data, even
22999 when convert_charrefs is True.
23001 - bpo-24982: shutil.make_archive() with the "zip" format now adds entries
23004 - bpo-25019: Fixed a crash caused by setting non-string key of expat parser.
23007 - bpo-16180: Exit pdb if file has syntax error, instead of trapping user in
23010 - bpo-24891: Fix a race condition at Python startup if the file descriptor
23011 of stdin (0), stdout (1) or stderr (2) is closed while Python is creating
23016 - bpo-24992: Fix error handling and a race condition (related to garbage
23019 - bpo-24881: Fixed setting binary mode in Python implementation of FileIO on
23022 - bpo-25578: Fix (another) memory leak in SSLSocket.getpeercer().
23024 - bpo-25530: Disable the vulnerable SSLv3 protocol by default when creating
23027 - bpo-25569: Fix memory leak in SSLSocket.getpeercert().
23029 - bpo-25471: Sockets returned from accept() shouldn't appear to be
23032 - bpo-25319: When threading.Event is reinitialized, the underlying condition
23035 - bpo-21112: Fix regression in unittest.expectedFailure on subclasses. Patch
23038 - bpo-24764: cgi.FieldStorage.read_multi() now ignores the Content-Length
23042 - bpo-24913: Fix overrun error in deque.index(). Found by John Leitch and
23045 - bpo-24774: Fix docstring in http.server.test. Patch from Chiu-Hsiang Hsu.
23047 - bpo-21159: Improve message in
23050 - bpo-20362: Honour TestCase.longMessage correctly in assertRegex. Patch
23053 - bpo-23572: Fixed functools.singledispatch on classes with falsy
23056 - asyncio: ensure_future() now accepts awaitable objects.
23059 ----
23061 - bpo-15348: Stop the debugger engine (normally in a user process) before
23065 - bpo-24455: Prevent IDLE from hanging when a) closing the shell while the
23066 debugger is active (15347); b) closing the debugger with the [X] button
23073 - Change 'The program' to 'Your program' in an IDLE 'kill program?' message
23074 to make it clearer that the program referred to is the currently running
23077 - bpo-24750: Improve the appearance of the IDLE editor window status bar.
23080 - bpo-25313: Change the handling of new built-in text color themes to better
23084 - bpo-24782: Extension configuration is now a tab in the IDLE Preferences
23088 - bpo-22726: Re-activate the config dialog help button with some content
23091 - bpo-24820: IDLE now has an 'IDLE Dark' built-in text color theme. It is
23098 - bpo-25224: README.txt is now an idlelib index for IDLE developers and
23099 curious users. The previous user content is now in the IDLE doc chapter.
23102 - bpo-24820: Users can now set breakpoint colors in Settings -> Custom
23105 - bpo-24972: Inactive selection background now matches active selection
23109 - bpo-24570: Idle: make calltip and completion boxes appear on Macs affected
23112 - bpo-24988: Idle ScrolledList context menus (used in debugger) now work on
23115 - bpo-24801: Make right-click for context menu work on Mac Aqua. Patch by
23118 - bpo-25173: Associate tkinter messageboxes with a specific widget. For Mac
23121 - bpo-25198: Enhance the initial html viewer now used for Idle Help.
23122 Properly indent fixed-pitch text (patch by Mark Roseman). Give code
23123 snippet a very Sphinx-like light blueish-gray background. Re-use initial
23125 Contents (TOC) menu is used, put the section header at the top of the
23128 - bpo-25225: Condense and rewrite Idle doc section on text colors.
23130 - bpo-21995: Explain some differences between IDLE and console Python.
23132 - bpo-22820: Explain need for *print* when running file from Idle editor.
23134 - bpo-25224: Doc: augment Idle feature list and no-subprocess section.
23136 - bpo-25219: Update doc for Idle command line options. Some were missing and
23139 - bpo-24861: Most of idlelib is private and subject to change. Use
23142 - bpo-25199: Idle: add synchronization comments for future maintainers.
23144 - bpo-16893: Replace help.txt with help.html for Idle doc display. The new
23145 idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks
23151 - bpo-24199: Deprecate unused idlelib.idlever with possible removal in 3.6.
23153 - bpo-24790: Remove extraneous code (which also create 2 & 3 conflicts).
23156 -------------
23158 - bpo-22558: Add remaining doc links to source code for Python-coded
23161 - bpo-12067: Rewrite Comparisons section in the Expressions chapter of the
23162 language reference. Some of the details of comparing mixed types were
23163 incorrect or ambiguous. NotImplemented is only relevant at a lower level
23165 and default behaviour and consistency suggestions for user-defined
23168 - bpo-24952: Clarify the default size argument of stack_size() in the
23171 - bpo-23725: Overhaul tempfile docs. Note deprecated status of mktemp. Patch
23172 from Zbigniew Jędrzejewski-Szmek.
23174 - bpo-24808: Update the types of some PyTypeObject fields. Patch by Joseph
23177 - bpo-22812: Fix unittest discovery examples. Patch from Pam McA'Nulty.
23180 -----
23182 - bpo-25449: Added tests for OrderedDict subclasses.
23184 - bpo-25099: Make test_compileall not fail when an entry on sys.path cannot
23187 - bpo-23919: Prevents assert dialogs appearing in the test suite.
23189 - ``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass
23193 -----
23195 - bpo-24915: Add LLVM support for PGO builds and use the test suite to
23198 - bpo-24910: Windows MSIs now have unique display names.
23200 - bpo-24986: It is now possible to build Python on Windows without errors
23204 -------
23206 - bpo-25450: Updates shortcuts to start Python in installation directory.
23208 - bpo-25164: Changes default all-users install directory to match per-user
23211 - bpo-25143: Improves installer error messages for unsupported platforms.
23213 - bpo-25163: Display correct directory in installer when using non-default
23216 - bpo-25361: Disables use of SSE2 instructions in Windows 32-bit build
23218 - bpo-25089: Adds logging to installer for case where launcher is not
23221 - bpo-25165: Windows uninstallation should not remove launcher if other
23224 - bpo-25112: py.exe launcher is missing icons
23226 - bpo-25102: Windows installer does not precompile for -O or -OO.
23228 - bpo-25081: Makes Back button in installer go back to upgrade page when
23231 - bpo-25091: Increases font size of the installer.
23233 - bpo-25126: Clarifies that the non-web installer will download some
23236 - bpo-25213: Restores requestedExecutionLevel to manifest to disable UAC
23239 - bpo-25022: Removed very outdated PC/example_nt/ directory.
23242 -----------
23244 - bpo-25440: Fix output of python-config --extension-suffix.
23250 *Release date: 2015-09-13*
23253 -----
23255 - bpo-25071: Windows installer should not require TargetDir parameter when
23262 *Release date: 2015-09-09*
23265 -------
23267 - bpo-25029: Fixes MemoryError in test_strptime.
23270 -----
23272 - bpo-25027: Reverts partial-static build options and adds vcruntime140.dll
23279 *Release date: 2015-09-07*
23282 -----------------
23284 - bpo-24305: Prevent import subsystem stack frames from being counted by the
23287 - bpo-24912: Prevent __class__ assignment to immutable built-in objects.
23289 - bpo-24975: Fix AST compilation for :pep:`448` syntax.
23292 -------
23294 - bpo-24917: time_strftime() buffer over-read.
23296 - bpo-24748: To resolve a compatibility problem found with py2exe and
23301 - bpo-24635: Fixed a bug in typing.py where isinstance([], typing.Iterable)
23304 - bpo-24989: Fixed buffer overread in BytesIO.readline() if a position is
23307 - bpo-24913: Fix overrun error in deque.index(). Found by John Leitch and
23314 *Release date: 2015-08-25*
23317 -----------------
23319 - bpo-24769: Interpreter now starts properly when dynamic loading is
23322 - bpo-21167: NAN operations are now handled correctly when python is
23323 compiled with ICC even if -fp-model strict is not specified.
23325 - bpo-24492: A "package" lacking a __name__ attribute when trying to perform
23330 -------
23332 - bpo-24847: Removes vcruntime140.dll dependency from Tcl/Tk.
23334 - bpo-24839: platform._syscmd_ver raises DeprecationWarning
23336 - bpo-24867: Fix Task.get_stack() for 'async def' coroutines
23342 *Release date: 2015-08-09*
23345 -----------------
23347 - bpo-24667: Resize odict in all cases that the underlying dict resizes.
23350 -------
23352 - bpo-24824: Signatures of codecs.encode() and codecs.decode() now are
23355 - bpo-24634: Importing uuid should not try to load libc on Windows
23357 - bpo-24798: _msvccompiler.py doesn't properly support manifests
23359 - bpo-4395: Better testing and documentation of binary operators. Patch by
23362 - bpo-23973: Update typing.py from GitHub repo.
23364 - bpo-23004: mock_open() now reads binary data correctly when the type of
23365 read_data is bytes. Initial patch by Aaron Hill.
23367 - bpo-23888: Handle fractional time in cookie expiry. Patch by ssh.
23369 - bpo-23652: Make it possible to compile the select module against the libc
23373 - bpo-22932: Fix timezones in email.utils.formatdate. Patch from Dmitry
23376 - bpo-23779: imaplib raises TypeError if authenticator tries to abort. Patch
23379 - bpo-23319: Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
23382 - bpo-23254: Document how to close the TCPServer listening socket. Patch
23385 - bpo-19450: Update Windows and OS X installer builds to use SQLite 3.8.11.
23387 - bpo-17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
23389 - bpo-24791: Fix grammar regression for call syntax: 'g(\*a or b)'.
23392 ----
23394 - bpo-23672: Allow Idle to edit and run files with astral chars in name.
23397 - bpo-24745: Idle editor default font. Switch from Courier to
23398 platform-sensitive TkFixedFont. This should not affect current customized
23399 font selections. If there is a problem, edit
23400 $HOME/.idlerc/config-main.cfg and remove 'fontxxx' entries from [Editor
23403 - bpo-21192: Idle editor. When a file is run, put its name in the restart
23406 - bpo-13884: Idle menus. Remove tearoff lines. Patch by Roger Serwy.
23409 -------------
23411 - bpo-24129: Clarify the reference documentation for name resolution. This
23416 - bpo-20769: Improve reload() docs. Patch by Dorian Pula.
23418 - bpo-23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
23420 - bpo-24729: Correct IO tutorial to match implementation regarding encoding
23424 -----
23426 - bpo-24751: When running regrtest with the ``-w`` command line option, a
23427 test run is no longer marked as a failure if all tests succeed when
23428 re-run.
23434 *Release date: 2015-07-26*
23437 -----------------
23439 - bpo-23573: Restored optimization of bytes.rfind() and bytearray.rfind()
23440 for single-byte argument on Linux.
23442 - bpo-24569: Make :pep:`448` dictionary evaluation more consistent.
23444 - bpo-24583: Fix crash when set is mutated while being updated.
23446 - bpo-24407: Fix crash when dict is mutated while being updated.
23448 - bpo-24619: New approach for tokenizing async/await. As a consequence, it
23449 is now possible to have one-line 'async def foo(): await ..' functions.
23451 - bpo-24687: Plug refleak on SyntaxError in function parameters annotations.
23453 - bpo-15944: memoryview: Allow arbitrary formats when casting to bytes.
23457 -------
23459 - bpo-23441: rcompleter now prints a tab character instead of displaying
23462 - bpo-24683: Fixed crashes in _json functions called with arguments of
23465 - bpo-21697: shutil.copytree() now correctly handles symbolic links that
23468 - bpo-14373: Fixed segmentation fault when gc.collect() is called during
23471 - bpo-24695: Fix a regression in traceback.print_exception(). If
23472 exc_traceback is None we shouldn't print a traceback header like described
23475 - bpo-24620: Random.setstate() now validates the value of state last
23478 - bpo-22485: Fixed an issue that caused `inspect.getsource` to return
23481 - bpo-22153: Improve unittest docs. Patch from Martin Panter and evilzero.
23483 - bpo-24580: Symbolic group references to open group in re patterns now are
23486 - bpo-24206: Fixed __eq__ and __ne__ methods of inspect classes.
23488 - bpo-24631: Fixed regression in the timeit module with multiline setup.
23490 - bpo-18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
23493 - bpo-23661: unittest.mock side_effects can now be exceptions again. This
23496 - bpo-24608: chunk.Chunk.read() now always returns bytes, not str.
23498 - bpo-18684: Fixed reading out of the buffer in the re module.
23500 - bpo-24259: tarfile now raises a ReadError if an archive is truncated
23503 - bpo-15014: SMTP.auth() and SMTP.login() now support RFC 4954's optional
23504 initial-response argument to the SMTP AUTH command.
23506 - bpo-24669: Fix inspect.getsource() for 'async def' functions. Patch by Kai
23509 - bpo-24688: ast.get_docstring() for 'async def' functions.
23512 -----
23514 - bpo-24603: Update Windows builds and OS X 10.5 installer to use OpenSSL
23521 *Release date: 2015-07-05*
23524 -----------------
23526 - bpo-24467: Fixed possible buffer over-read in bytearray. The bytearray
23528 now is always null-terminated.
23530 - Upgrade to Unicode 8.0.0.
23532 - bpo-24345: Add Py_tp_finalize slot for the stable ABI.
23534 - bpo-24400: Introduce a distinct type for :pep:`492` coroutines; add
23542 collections.abc.Coroutine can no longer be used to detect generator-based
23543 coroutines--use inspect.isawaitable instead.
23545 - bpo-24450: Add gi_yieldfrom to generators and cr_await to coroutines.
23548 - bpo-19235: Add new RecursionError exception. Patch by Georg Brandl.
23551 -------
23553 - bpo-21750: mock_open.read_data can now be read from each instance, as it
23556 - bpo-24552: Fix use after free in an error case of the _pickle module.
23558 - bpo-24514: tarfile now tolerates number fields consisting of only
23561 - bpo-19176: Fixed doctype() related bugs in C implementation of
23564 warning. Parser's doctype() now is not called if target's doctype() is
23567 - bpo-20387: Restore semantic round-trip correctness in tokenize/untokenize
23568 for tab-indented blocks.
23570 - bpo-24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
23573 - bpo-24336: The contextmanager decorator now works with functions with
23576 - bpo-24522: Fix possible integer overflow in json accelerator module.
23578 - bpo-24489: ensure a previously set C errno doesn't disturb cmath.polar().
23580 - bpo-24408: Fixed AttributeError in measure() and metrics() methods of
23583 - bpo-14373: C implementation of functools.lru_cache() now can be used with
23586 - bpo-24347: Set KeyError if PyDict_GetItemWithError returns NULL.
23588 - bpo-24348: Drop superfluous incref/decref.
23590 - bpo-24359: Check for changed OrderedDict size during iteration.
23592 - bpo-24368: Support keyword arguments in OrderedDict methods.
23594 - bpo-24362: Simplify the C OrderedDict fast nodes resize logic.
23596 - bpo-24377: Fix a ref leak in OrderedDict.__repr__.
23598 - bpo-24369: Defend against key-changes during iteration.
23601 -----
23603 - bpo-24373: _testmultiphase and xxlimited now use tp_traverse and
23608 -------------
23610 - bpo-24458: Update documentation to cover multi-phase initialization for
23613 - bpo-24351: Clarify what is meant by "identifier" in the context of
23617 -----
23619 - bpo-24432: Update Windows builds and OS X 10.5 installer to use OpenSSL
23626 *Release date: 2015-05-31*
23629 -----------------
23631 - bpo-24284: The startswith and endswith methods of the str class no longer
23635 - bpo-24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
23639 - bpo-24328: Fix importing one character extension modules.
23641 - bpo-11205: In dictionary displays, evaluate the key before the value.
23643 - bpo-24285: Fixed regression that prevented importing extension modules
23647 -------
23649 - bpo-23247: Fix a crash in the StreamWriter.reset() of CJK codecs.
23651 - bpo-24270: Add math.isclose() and cmath.isclose() functions as per
23654 - bpo-5633: Fixed timeit when the statement is a string and the setup is
23657 - bpo-24326: Fixed audioop.ratecv() with non-default weightB argument.
23660 - bpo-16991: Add a C implementation of OrderedDict.
23662 - bpo-23934: Fix inspect.signature to fail correctly for builtin types
23669 *Release date: 2015-05-24*
23672 -----------------
23674 - bpo-24276: Fixed optimization of property descriptor getter.
23676 - bpo-24268: PEP 489: Multi-phase extension module initialization. Patch by
23679 - bpo-23955: Add pyvenv.cfg option to suppress registry/environment lookup
23682 - bpo-24257: Fixed system error in the comparison of faked
23685 - bpo-22939: Fixed integer overflow in iterator object. Patch by Clement
23688 - bpo-23985: Fix a possible buffer overrun when deleting a slice from the
23691 - bpo-24102: Fixed exception type checking in standard error handlers.
23693 - bpo-15027: The UTF-32 encoder is now 3x to 7x faster.
23695 - bpo-23290: Optimize set_merge() for cases where the target is empty.
23698 - bpo-2292: PEP 448: Additional Unpacking Generalizations.
23700 - bpo-24096: Make warnings.warn_explicit more robust against mutation of the
23703 - bpo-23996: Avoid a crash when a delegated generator raises an unnormalized
23706 - bpo-23910: Optimize property() getter calls. Patch by Joe Jevnik.
23708 - bpo-23911: Move path-based importlib bootstrap code to a separate frozen
23711 - bpo-24192: Fix namespace package imports.
23713 - bpo-24022: Fix tokenizer crash when processing undecodable source code.
23715 - bpo-9951: Added a hex() method to bytes, bytearray, and memoryview.
23717 - bpo-22906: PEP 479: Change StopIteration handling inside generators.
23719 - bpo-24017: PEP 492: Coroutines with async and await syntax.
23722 -------
23724 - bpo-14373: Added C implementation of functools.lru_cache(). Based on
23727 - bpo-24230: The tempfile module now accepts bytes for prefix, suffix and
23731 - bpo-22189: collections.UserString now supports __getnewargs__(),
23735 - bpo-24244: Prevents termination when an invalid format string is
23738 - bpo-23973: PEP 484: Add the typing module.
23740 - bpo-23086: The collections.abc.Sequence() abstract base class added
23744 - bpo-20035: Replaced the ``tkinter._fix`` module used for setting up the
23748 - bpo-24257: Fixed segmentation fault in sqlite3.Row constructor with faked
23751 - bpo-15836: assertRaises(), assertRaisesRegex(), assertWarns() and
23753 prevent possible user error. Based on patch by Daniel Wagner-Hall.
23755 - bpo-9858: Add missing method stubs to _io.RawIOBase. Patch by Laura
23758 - bpo-22955: attrgetter, itemgetter and methodcaller objects in the operator
23762 - bpo-22107: tempfile.gettempdir() and tempfile.mkdtemp() now try again when
23764 Unix. tempfile.mkstemp() now fails early if parent directory is not valid
23765 (not exists or is a file) on Windows.
23767 - bpo-23780: Improved error message in os.path.join() with single argument.
23769 - bpo-6598: Increased time precision and random number range in
23772 - bpo-24091: Fixed various crashes in corner cases in C implementation of
23775 - bpo-21931: msilib.FCICreate() now raises TypeError in the case of a bad
23779 - bpo-13866: *quote_via* argument added to urllib.parse.urlencode.
23781 - bpo-20098: New mangle_from policy option for email, default True for
23784 - bpo-24211: The email library now supports RFC 6532: it can generate
23785 headers using utf-8 instead of encoded words.
23787 - bpo-16314: Added support for the LZMA compression in distutils.
23789 - bpo-21804: poplib now supports RFC 6856 (UTF8).
23791 - bpo-18682: Optimized pprint functions for builtin scalar types.
23793 - bpo-22027: smtplib now supports RFC 6531 (SMTPUTF8).
23795 - bpo-23488: Random generator objects now consume 2x less memory on 64-bit.
23797 - bpo-1322: platform.dist() and platform.linux_distribution() functions are
23800 - bpo-22486: Added the math.gcd() function. The fractions.gcd() function
23801 now is deprecated. Based on patch by Mark Dickinson.
23803 - bpo-24064: Property() docstrings are now writeable. (Patch by Berker
23806 - bpo-22681: Added support for the koi8_t encoding.
23808 - bpo-22682: Added support for the kz1048 encoding.
23810 - bpo-23796: peek and read1 methods of BufferedReader now raise ValueError
23813 - bpo-21795: smtpd now supports the 8BITMIME extension whenever the new
23814 *decode_data* constructor argument is set to False.
23816 - bpo-24155: optimize heapq.heapify() for better cache performance when
23819 - bpo-21800: imaplib now supports RFC 5161 (enable), RFC 6855
23820 (utf8/internationalized email) and automatically encodes non-ASCII
23823 - bpo-20274: When calling a _sqlite.Connection, it now complains if passed
23826 - bpo-20274: Remove ignored and erroneous "kwargs" parameters from three
23829 - bpo-24134: assertRaises(), assertRaisesRegex(), assertWarns() and
23830 assertWarnsRegex() checks now emits a deprecation warning when callable is
23831 None or keyword arguments except msg is passed in the context manager
23834 - bpo-24018: Add a collections.abc.Generator abstract base class.
23837 - bpo-23880: Tkinter's getint() and getdouble() now support Tcl_Obj.
23840 - bpo-22619: Added negative limit support in the traceback module. Based on
23843 - bpo-24094: Fix possible crash in json.encode with poorly behaved dict
23846 - bpo-9246: On POSIX, os.getcwd() now supports paths longer than 1025 bytes.
23849 - bpo-17445: add difflib.diff_bytes() to support comparison of byte strings
23852 - bpo-23917: Fall back to sequential compilation when ProcessPoolExecutor
23855 - bpo-23008: Fixed resolving attributes with boolean value is False in
23858 - Fix asyncio issue 235: LifoQueue and PriorityQueue's put didn't increment
23862 - bpo-23908: os functions now reject paths with embedded null character on
23865 - bpo-23728: binascii.crc_hqx() could return an integer outside of the range
23866 0-0xffff for empty data.
23868 - bpo-23887: urllib.error.HTTPError now has a proper repr() representation.
23871 - asyncio: New event loop APIs: set_task_factory() and get_task_factory().
23873 - asyncio: async() function is deprecated in favour of ensure_future().
23875 - bpo-24178: asyncio.Lock, Condition, Semaphore, and BoundedSemaphore
23878 - bpo-24179: Support 'async for' for asyncio.StreamReader. Contributed by
23881 - bpo-24184: Add AsyncIterator and AsyncIterable ABCs to collections.abc.
23884 - bpo-22547: Implement informative __repr__ for inspect.BoundArguments.
23887 - bpo-24190: Implement inspect.BoundArgument.apply_defaults() method.
23890 - bpo-20691: Add 'follow_wrapped' argument to
23894 - bpo-24248: Deprecate inspect.Signature.from_function() and
23897 - bpo-23898: Fix inspect.classify_class_attrs() to support attributes with
23900 - bpo-24298: Fix inspect.signature() to correctly unwrap wrappers around
23904 ----
23906 - bpo-23184: remove unused names and imports in idlelib. Initial patch by Al
23910 -----
23912 - bpo-21520: test_zipfile no longer fails if the word 'bad' appears anywhere
23915 - bpo-9517: Move script_helper into the support package. Patch by Christie
23919 -------------
23921 - bpo-22155: Add File Handlers subsection with createfilehandler to tkinter
23924 - bpo-24029: Document the name binding behavior for submodule imports.
23926 - bpo-24077: Fix typo in man page for -I command option: -s, not -S
23929 -----------
23931 - bpo-24000: Improved Argument Clinic's mapping of converters to legacy
23934 - bpo-24001: Argument Clinic converters now use accept={type} instead of
23937 - bpo-23330: h2py now supports arbitrary filenames in #include.
23939 - bpo-24031: make patchcheck now supports git checkouts, too.
23945 *Release date: 2015-04-19*
23948 -----------------
23950 - bpo-22980: Under Linux, GNU/KFreeBSD and the Hurd, C extensions now
23953 extension name now includes :pep:`3149`-style information.
23955 - bpo-22631: Added Linux-specific socket constant CAN_RAW_FD_FRAMES. Patch
23958 - bpo-23731: Implement :pep:`488`: removal of .pyo files.
23960 - bpo-23726: Don't enable GC for user subclasses of non-GC types that don't
23963 - bpo-23309: Avoid a deadlock at shutdown if a daemon thread is aborted
23964 while it is holding a lock to a buffered I/O object, and the main thread
23966 error is emitted instead.
23968 - bpo-22977: Fixed formatting Windows error messages on Wine. Patch by
23971 - bpo-23466: %c, %o, %x, and %X in bytes formatting now raise TypeError on
23972 non-integer input.
23974 - bpo-24044: Fix possible null pointer dereference in list.sort in out of
23977 - bpo-21354: PyCFunction_New function is exposed by python DLL again.
23980 -------
23982 - bpo-23840: tokenize.open() now closes the temporary binary file on error
23985 - bpo-16914: new debuglevel 2 in smtplib adds timestamps to debug output.
23987 - bpo-7159: urllib.request now supports sending auth credentials
23988 automatically after the first 401. This enhancement is a superset of the
23991 - bpo-23703: Fix a regression in urljoin() introduced in 901e4e52b20a. Patch
23994 - bpo-4254: Adds _curses.update_lines_cols(). Patch by Arnon Yaari
23996 - bpo-19933: Provide default argument for ndigits in round. Patch by
23999 - bpo-23193: Add a numeric_owner parameter to tarfile.TarFile.extract and
24002 - bpo-23342: Add a subprocess.run() function than returns a CalledProcess
24005 - bpo-21217: inspect.getsourcelines() now tries to compute the start and end
24006 lines from the code object, fixing an issue when a lambda function is used
24009 - bpo-24521: Fix possible integer overflows in the pickle module.
24011 - bpo-22931: Allow '[' and ']' in cookie values.
24013 - The keywords attribute of functools.partial is now always a dictionary.
24015 - bpo-23811: Add missing newline to the PyCompileError error message. Patch
24018 - bpo-21116: Avoid blowing memory when allocating a multiprocessing shared
24022 - bpo-22982: Improve BOM handling when seeking to multiple positions of a
24025 - bpo-23464: Removed deprecated asyncio JoinableQueue.
24027 - bpo-23529: Limit the size of decompressed data when reading from GzipFile,
24032 - bpo-21859: Added Python implementation of io.FileIO.
24034 - bpo-23865: close() methods in multiple modules now are idempotent and more
24038 - bpo-23400: Raise same exception on both Python 2 and 3 if sem_open is not
24041 - bpo-10838: The subprocess now module includes SubprocessError and
24045 - bpo-23411: Added DefragResult, ParseResult, SplitResult,
24049 - bpo-23881: urllib.request.ftpwrapper constructor now closes the socket if
24052 - bpo-23853: :meth:`socket.socket.sendall` does no more reset the socket
24053 timeout each time data is sent successfully. The socket timeout is now the
24056 - bpo-22721: An order of multiline pprint output of set or dict containing
24057 orderable and non-orderable elements no longer depends on iteration order
24060 - bpo-15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
24065 - bpo-10590: xml.sax.parseString() now supports string argument.
24067 - bpo-23338: Fixed formatting ctypes error messages on Cygwin. Patch by
24070 - bpo-15582: inspect.getdoc() now follows inheritance chains.
24072 - bpo-2175: SAX parsers now support a character stream of InputSource
24075 - bpo-16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
24078 - bpo-23834: Fix socket.sendto(), use the C Py_ssize_t type to store the
24081 - bpo-23618: :meth:`socket.socket.connect` now waits until the connection
24082 completes instead of raising :exc:`InterruptedError` if the connection is
24084 socket is blocking or has a timeout. :meth:`socket.socket.connect` still
24085 raise :exc:`InterruptedError` for non-blocking sockets.
24087 - bpo-21526: Tkinter now supports new boolean type in Tcl 8.5.
24089 - bpo-23836: Fix the faulthandler module to handle reentrant calls to its
24092 - bpo-23838: linecache now clears the cache and returns an empty result on
24095 - bpo-10395: Added os.path.commonpath(). Implemented in posixpath and
24098 - bpo-23611: Serializing more "lookupable" objects (such as unbound methods
24101 - bpo-13583: sqlite3.Row now supports slice indexing.
24103 - bpo-18473: Fixed 2to3 and 3to2 compatible pickle mappings. Fixed
24104 ambiguous reverse mappings. Added many new mappings. Import mapping is
24107 - bpo-23485: select.select() is now retried automatically with the
24109 handler raises an exception. This change is part of the :pep:`475`.
24111 - bpo-23752: When built from an existing file descriptor, io.FileIO() now
24115 - bpo-23704: collections.deque() objects now support __add__, __mul__, and
24118 - bpo-23171: csv.Writer.writerow() now supports arbitrary iterables.
24120 - bpo-23745: The new email header parser now handles duplicate MIME
24123 - bpo-22117: Fix os.utime(), it now rounds the timestamp towards minus
24124 infinity (-inf) instead of rounding towards zero.
24126 - bpo-23310: Fix MagicMock's initializer to work with __methods__, just like
24130 -----
24132 - bpo-23817: FreeBSD now uses "1.0" in the SOVERSION as other operating
24135 - bpo-23501: Argument Clinic now generates code into separate files by
24139 -----
24141 - bpo-23799: Added test.support.start_threads() for running and cleaning up
24144 - bpo-22390: test.regrtest now emits a warning if temporary files or
24148 -----------
24150 - bpo-18128: pygettext now uses standard +NNNN format in the
24151 POT-Creation-Date header.
24153 - bpo-23935: Argument Clinic's understanding of format units accepting
24154 bytes, bytearrays, and buffers is now consistent with both the
24157 - bpo-23944: Argument Clinic now wraps long impl prototypes at column 78.
24159 - bpo-20586: Argument Clinic now ensures that functions without docstrings
24162 - bpo-23492: Argument Clinic now generates argument parsing code with
24165 - bpo-23500: Argument Clinic is now smarter about generating the "#ifndef"
24172 -----
24174 - bpo-23998: PyImport_ReInitLock() now checks for lock allocation error
24180 *Release date: 2015-03-28*
24183 -----------------
24185 - bpo-23573: Increased performance of string search operations (str.find,
24189 - bpo-23753: Python doesn't support anymore platforms without stat() or
24192 - bpo-23681: The -b option now affects comparisons of bytes with int.
24194 - bpo-23632: Memoryviews now allow tuple indexing (including for
24195 multi-dimensional memoryviews).
24197 - bpo-23192: Fixed generator lambdas. Patch by Bruno Cauet.
24199 - bpo-23629: Fix the default __sizeof__ implementation for variable-sized
24203 -------
24205 - bpo-14260: The groupindex attribute of regular expression pattern object
24206 now is non-modifiable mapping.
24208 - bpo-23792: Ignore KeyboardInterrupt when the pydoc pager is active. This
24210 from shutting down while the pager itself is still running.
24212 - bpo-23775: pprint() of OrderedDict now outputs the same representation as
24215 - bpo-23765: Removed IsBadStringPtr calls in ctypes
24217 - bpo-22364: Improved some re error messages using regex for hints.
24219 - bpo-23742: ntpath.expandvars() no longer loses unbalanced single quotes.
24221 - bpo-21717: The zipfile.ZipFile.open function now supports 'x' (exclusive
24224 - bpo-21802: The reader in BufferedRWPair now is closed even when closing
24227 - bpo-23622: Unknown escapes in regular expressions that consist of ``'\'``
24231 - bpo-23671: string.Template now allows specifying the "self" parameter as a
24235 - bpo-23502: The pprint module now supports mapping proxies.
24237 - bpo-17530: pprint now wraps long bytes objects and bytearrays.
24239 - bpo-22687: Fixed some corner cases in breaking words in tetxtwrap. Got rid
24242 - bpo-4727: The copy module now uses pickle protocol 4 (PEP 3154) and
24244 keyword-only arguments.
24246 - bpo-23491: Added a zipapp module to support creating executable zip file
24250 - bpo-23657: Avoid explicit checks for str in zipapp, adding support for
24253 - bpo-23688: Added support of arbitrary bytes-like objects and avoided
24257 - bpo-23252: Added support for writing ZIP files to unseekable streams.
24259 - bpo-23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
24261 - bpo-23539: If body is None, http.client.HTTPConnection.request now sets
24262 Content-Length to 0 for PUT, POST, and PATCH headers to avoid 411 errors
24265 - bpo-22351: The nntplib.NNTP constructor no longer leaves the connection
24269 - bpo-23704: collections.deque() objects now support methods for index(),
24273 - bpo-23715: :func:`signal.sigwaitinfo` and :func:`signal.sigtimedwait` are
24276 recomputes the timeout with a monotonic clock when it is retried.
24278 - bpo-23001: Few functions in modules mmap, ossaudiodev, socket, ssl, and
24279 codecs, that accepted only read-only bytes-like object now accept writable
24280 bytes-like object too.
24282 - bpo-23646: If time.sleep() is interrupted by a signal, the sleep is now
24286 - bpo-23136: _strptime now uniformly handles all days in week 0, including
24289 - bpo-23700: Iterator of NamedTemporaryFile now keeps a reference to
24292 - bpo-22903: The fake test case created by unittest.loader when it fails
24293 importing a test module is now picklable.
24295 - bpo-22181: On Linux, os.urandom() now uses the new getrandom() syscall if
24296 available, syscall introduced in the Linux kernel 3.17. It is more
24300 - bpo-2211: Updated the implementation of the http.cookies.Morsel class.
24301 Setting attributes key, value and coded_value directly now is deprecated.
24308 - bpo-18983: Allow selection of output units in timeit. Patch by Julian
24311 - bpo-23631: Fix traceback.format_list when a traceback has been mutated.
24313 - bpo-23568: Add rdivmod support to MagicMock() objects. Patch by Håkan
24316 - bpo-2052: Add charset parameter to HtmlDiff.make_file().
24318 - bpo-23668: Support os.truncate and os.ftruncate on Windows.
24320 - bpo-23138: Fixed parsing cookies with absent keys or values in cookiejar.
24323 - bpo-23051: multiprocessing.Pool methods imap() and imap_unordered() now
24327 - bpo-23581: Add matmul support to MagicMock. Patch by Håkan Lövdahl.
24329 - bpo-23566: enable(), register(), dump_traceback() and
24333 - bpo-22928: Disabled HTTP header injections in http.client. Original patch
24336 - bpo-23615: Modules bz2, tarfile and tokenize now can be reloaded with
24339 - bpo-23605: os.walk() now calls os.scandir() instead of os.listdir(). The
24344 -----
24346 - bpo-23585: make patchcheck will ensure the interpreter is built.
24349 -----
24351 - bpo-23583: Added tests for standard IO streams in IDLE.
24353 - bpo-22289: Prevent test_urllib2net failures due to ftp connection timeout.
24356 -----------
24358 - bpo-22826: The result of open() in Tools/freeze/bkfile.py is now better
24366 *Release date: 2015-03-09*
24369 -----------------
24371 - bpo-23571: PyObject_Call() and PyCFunction_Call() now raise a SystemError
24372 if a function returns a result and raises an exception. The SystemError is
24376 -------
24378 - bpo-22524: New os.scandir() function, part of the :pep:`471`:
24379 "os.scandir() function -- a better and faster directory iterator". Patch
24382 - bpo-23103: Reduced the memory consumption of IPv4Address and IPv6Address.
24384 - bpo-21793: BaseHTTPRequestHandler again logs response code as numeric, not
24387 - bpo-23476: In the ssl module, enable OpenSSL's X509_V_FLAG_TRUSTED_FIRST
24388 flag on certificate stores when it is available.
24390 - bpo-23576: Avoid stalling in SSL reads when EOF has been reached in the
24393 - bpo-23504: Added an __all__ to the types module.
24395 - bpo-23563: Optimized utility functions in urllib.parse.
24397 - bpo-7830: Flatten nested functools.partial.
24399 - bpo-20204: Added the __module__ attribute to _tkinter classes.
24401 - bpo-19980: Improved help() for non-recognized strings. help('') now shows
24405 - bpo-23521: Corrected pure python implementation of timedelta division.
24409 - bpo-21619: Popen objects no longer leave a zombie after exit in the with
24412 - bpo-22936: Make it possible to show local variables in tracebacks for both
24415 - bpo-15955: Add an option to limit the output size in bz2.decompress().
24418 - bpo-6639: Module-level turtle functions no longer raise TclError after
24421 - bpo-814253: Group references and conditional group references now work in
24422 lookbehind assertions in regular expressions. (See also: bpo-9179)
24424 - bpo-23215: Multibyte codecs with custom error handlers that ignores errors
24428 - bpo-5700: io.FileIO() called flush() after closing the file. flush() was
24431 - bpo-23374: Fixed pydoc failure with non-ASCII files when stdout encoding
24434 - bpo-23481: Remove RC4 from the SSL module's default cipher list.
24436 - bpo-21548: Fix pydoc.synopsis() and pydoc.apropos() on modules with empty
24439 - bpo-22885: Fixed arbitrary code execution vulnerability in the dbm.dumb
24442 - bpo-23239: ssl.match_hostname() now supports matching of IP addresses.
24444 - bpo-23146: Fix mishandling of absolute Windows paths with forward slashes
24447 - bpo-23096: Pickle representation of floats with protocol 0 now is the same
24450 - bpo-19105: pprint now more efficiently uses free space at the right.
24452 - bpo-14910: Add allow_abbrev parameter to argparse.ArgumentParser. Patch by
24455 - bpo-21717: tarfile.open() now supports 'x' (exclusive creation) mode.
24457 - bpo-23344: marshal.dumps() is now 20-25% faster on average.
24459 - bpo-20416: marshal.dumps() with protocols 3 and 4 is now 40-50% faster on
24462 - bpo-23421: Fixed compression in tarfile CLI. Patch by wdv4758h.
24464 - bpo-23367: Fix possible overflows in the unicodedata module.
24466 - bpo-23361: Fix possible overflow in Windows subprocess creation code.
24468 - logging.handlers.QueueListener now takes a respect_handler_level keyword
24472 - bpo-19705: turtledemo now has a visual sorting algorithm demo. Original
24475 - bpo-23801: Fix issue where cgi.FieldStorage did not always ignore the
24479 -----
24481 - bpo-23445: pydebug builds now use "gcc -Og" where possible, to make the
24484 - bpo-23686: Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
24487 -----
24489 - bpo-20204: Deprecation warning is now raised for builtin types without the
24493 -------
24495 - bpo-23465: Implement :pep:`486` - Make the Python Launcher aware of
24498 - bpo-23437: Make user scripts directory versioned on Windows. Patch by Paul
24505 *Release date: 2015-02-08*
24508 -----------------
24510 - bpo-23285: PEP 475 - EINTR handling.
24512 - bpo-22735: Fix many edge cases (including crashes) involving custom mro()
24515 - bpo-22896: Avoid using PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
24518 - bpo-21295: Revert some changes (issue #16795) to AST line numbers and
24521 - bpo-22986: Allow changing an object's __class__ between a dynamic type and
24524 - bpo-15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and
24525 PyUnicode_EncodeCodePage() now raise an exception if the object is not a
24529 - bpo-21408: The default __ne__() now returns NotImplemented if __eq__()
24532 - bpo-23321: Fixed a crash in str.decode() when error handler returned
24535 - bpo-22286: The "backslashreplace" error handlers now works with decoding
24538 - bpo-23253: Delay-load ShellExecute[AW] in os.startfile for reduced startup
24541 - bpo-22038: pyatomic.h now uses stdatomic.h or GCC built-in functions for
24545 - bpo-20284: %-interpolation (aka printf) formatting added for bytes and
24548 - bpo-23048: Fix jumping out of an infinite while loop in the pdb.
24550 - bpo-20335: bytes constructor now raises TypeError when encoding or errors
24551 is specified with non-string argument. Based on patch by Renaud Blanch.
24553 - bpo-22834: If the current working directory ends up being set to a
24554 non-existent directory then import will no longer raise FileNotFoundError.
24556 - bpo-22869: Move the interpreter startup & shutdown code to a new dedicated
24559 - bpo-22847: Improve method cache efficiency.
24561 - bpo-22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff
24562 bytes on a 32-bit platform.
24564 - bpo-22653: Fix an assertion failure in debug mode when doing a reentrant
24567 - bpo-22643: Fix integer overflow in Unicode case operations (upper, lower,
24570 - bpo-17636: Circular imports involving relative imports are now supported.
24572 - bpo-22604: Fix assertion error in debug mode when dividing a complex
24575 - bpo-21052: Do not raise ImportWarning when sys.path_hooks or sys.meta_path
24578 - bpo-16518: Use 'bytes-like object required' in error messages that
24582 - bpo-22470: Fixed integer overflow issues in "backslashreplace",
24585 - bpo-22540: speed up `PyObject_IsInstance` and `PyObject_IsSubclass` in the
24586 common case that the second argument has metaclass `type`.
24588 - bpo-18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format`
24591 - bpo-22520: Fix overflow checking when generating the repr of a unicode
24594 - bpo-22519: Fix overflow checking in PyBytes_Repr.
24596 - bpo-22518: Fix integer overflow issues in latin-1 encoding.
24598 - bpo-16324: _charset parameter of MIMEText now also accepts
24601 - bpo-1764286: Fix inspect.getsource() to support decorated functions. Patch
24604 - bpo-18554: os.__all__ includes posix functions.
24606 - bpo-21391: Use os.path.abspath in the shutil module.
24608 - bpo-11471: avoid generating a JUMP_FORWARD instruction at the end of an
24609 if-block if there is no else-clause. Original patch by Eugene Toder.
24611 - bpo-22215: Now ValueError is raised instead of TypeError when str or bytes
24614 - bpo-22258: Fix the internal function set_inheritable() on Illumos. This
24616 with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable()
24620 - bpo-21389: Displaying the __qualname__ of the underlying function in the
24623 - bpo-22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM
24624 and returns -1 (error) on integer overflow.
24626 - bpo-20184: Argument Clinic based signature introspection added for 30 of
24629 - bpo-22116: C functions and methods (of the 'builtin_function_or_method'
24632 - bpo-22077: Improve index error messages for bytearrays, bytes, lists, and
24636 - bpo-20179: Apply Argument Clinic to bytes and bytearray. Patch by Tal
24639 - bpo-22082: Clear interned strings in slotdefs.
24641 - Upgrade Unicode database to Unicode 7.0.0.
24643 - bpo-21897: Fix a crash with the f_locals attribute with closure variables
24646 - bpo-21205: Add a new ``__qualname__`` attribute to generator, the
24649 attribute) is now get from the function instead of the code. Use
24652 - bpo-21669: With the aid of heuristics in SyntaxError.__init__, the parser
24656 - bpo-21642: In the conditional if-else expression, allow an integer written
24660 - bpo-21523: Fix over-pessimistic computation of the stack effect of some
24665 - bpo-21418: Fix a crash in the builtin function super() when called without
24668 - bpo-21425: Fix flushing of standard streams in the interactive
24671 - bpo-21435: In rare cases, when running finalizers on objects in cyclic
24675 - bpo-21377: PyBytes_Concat() now tries to concatenate in-place when the
24678 - bpo-20355: -W command line options now have higher priority than the
24681 - bpo-21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.
24683 - bpo-20904: Support setting FPU precision on m68k.
24685 - bpo-21209: Fix sending tuples to custom generator objects with the yield
24688 - bpo-21193: pow(a, b, c) now raises ValueError rather than TypeError when b
24689 is negative. Patch by Josh Rosenberg.
24691 - bpo-21176: PEP 465: Add the '@' operator for matrix multiplication.
24693 - bpo-21134: Fix segfault when str is called on an uninitialized
24696 - bpo-19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas
24699 - bpo-20929: Add a type cast to avoid shifting a negative number.
24701 - bpo-20731: Properly position in source code files even if they are opened
24704 - bpo-20637: Key-sharing now also works for instance dictionaries of
24707 - bpo-8297: Attributes missing from modules now include the module name in
24710 - bpo-19995: %c, %o, %x, and %X now raise TypeError on non-integer input.
24712 - bpo-19655: The ASDL parser - used by the build process to generate code
24713 for managing the Python AST in C - was rewritten. The new parser is self
24714 contained and does not require to carry long the spark.py parser-generator
24717 - bpo-12546: Allow ``\x00`` to be used as a fill character when using str,
24720 - bpo-20480: Add ipaddress.reverse_pointer. Patch by Leon Weber.
24722 - bpo-13598: Modify string.Formatter to support auto-numbering of
24726 - bpo-8931: Make alternate formatting ('#') for type 'c' raise an exception.
24727 In versions prior to 3.5, '#' with 'c' had no effect. Now specifying it is
24730 - bpo-23165: Perform overflow checks before allocating memory in the
24734 -------
24736 - bpo-23399: pyvenv creates relative symlinks where possible.
24738 - bpo-20289: cgi.FieldStorage() now supports the context management
24741 - bpo-13128: Print response headers for CONNECT requests when debuglevel >
24744 - bpo-15381: Optimized io.BytesIO to make less allocations and copyings.
24746 - bpo-22818: Splitting on a pattern that could match an empty string now
24750 - bpo-23099: Closing io.BytesIO with exported buffer is rejected now to
24753 - bpo-23326: Removed __ne__ implementations. Since fixing default __ne__
24756 - bpo-23363: Fix possible overflow in itertools.permutations.
24758 - bpo-23364: Fix possible overflow in itertools.product.
24760 - bpo-23366: Fixed possible integer overflow in itertools.combinations.
24762 - bpo-23369: Fixed possible integer overflow in
24765 - bpo-23353: Fix the exception handling of generators in
24767 PyEval_EvalFrameEx() is called with throwflag=0. At exit, the exception
24768 state is now always restored or swapped, not only if why is WHY_YIELD or
24769 WHY_RETURN. Patch co-written with Antoine Pitrou.
24771 - bpo-14099: Restored support of writing ZIP files to tellable but
24772 non-seekable streams.
24774 - bpo-14099: Writing to ZipFile and reading multiple ZipExtFiles is
24777 - bpo-19361: JSON decoder now raises JSONDecodeError instead of ValueError.
24779 - bpo-18518: timeit now rejects statements which can't be compiled outside a
24782 - bpo-23094: Fixed readline with frames in Python implementation of pickle.
24784 - bpo-23268: Fixed bugs in the comparison of ipaddress classes.
24786 - bpo-21408: Removed incorrect implementations of __ne__() which didn't
24790 - bpo-19996: :class:`email.feedparser.FeedParser` now handles (malformed)
24793 - bpo-20188: Support Application-Layer Protocol Negotiation (ALPN) in the
24796 - bpo-23133: Pickling of ipaddress objects now produces more compact and
24799 - bpo-23248: Update ssl error codes from latest OpenSSL git master.
24801 - bpo-23266: Much faster implementation of ipaddress.collapse_addresses()
24802 when there are many non-consecutive addresses.
24804 - bpo-23098: 64-bit dev_t is now supported in the os module.
24806 - bpo-21817: When an exception is raised in a task submitted to a
24807 ProcessPoolExecutor, the remote traceback is now displayed in the parent
24810 - bpo-15955: Add an option to limit output size when decompressing LZMA
24813 - bpo-23250: In the http.cookies module, capitalize "HttpOnly" and "Secure"
24816 - bpo-23063: In the distutils' check command, fix parsing of reST with code
24817 or code-block directives.
24819 - bpo-23209: selectors.BaseSelector.get_key() now raises a RuntimeError if
24820 the selector is closed. And selectors.BaseSelector.close() now clears its
24822 Initial patch written by Martin Richard. (See also: bpo-23225)
24824 - bpo-17911: Provide a way to seed the linecache for a PEP-302 module
24827 - bpo-17911: Provide a new object API for traceback, including the ability
24828 to not lookup lines at all until the traceback is actually rendered,
24831 - bpo-19777: Provide a home() classmethod on Path objects. Contributed by
24834 - bpo-23206: Make ``json.dumps(..., ensure_ascii=False)`` as fast as the
24837 - bpo-23185: Add math.inf and math.nan constants.
24839 - bpo-23186: Add ssl.SSLObject.shared_ciphers() and
24843 - bpo-23143: Remove compatibility with OpenSSLs older than 0.9.8.
24845 - bpo-23132: Improve performance and introspection support of comparison
24848 - bpo-19776: Add an expanduser() method on Path objects.
24850 - bpo-23112: Fix SimpleHTTPServer to correctly carry the query string and
24853 - bpo-21793: Added http.HTTPStatus enums (i.e. HTTPStatus.OK,
24856 - bpo-23093: In the io, module allow more operations to work on detached
24859 - bpo-23111: In the ftplib, make ssl.PROTOCOL_SSLv23 the default protocol
24862 - bpo-22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
24863 instead of reading /dev/urandom, to get pseudo-random bytes.
24865 - bpo-19104: pprint now produces evaluable output for wrapped strings.
24867 - bpo-23071: Added missing names to codecs.__all__. Patch by Martin Panter.
24869 - bpo-22783: Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX
24872 - bpo-15513: Added a __sizeof__ implementation for pickle classes.
24874 - bpo-19858: pickletools.optimize() now aware of the MEMOIZE opcode, can
24878 - bpo-22095: Fixed HTTPConnection.set_tunnel with default port. The port
24881 - bpo-23016: A warning no longer produces an AttributeError when the program
24882 is run with pythonw.exe.
24884 - bpo-21775: shutil.copytree(): fix crash when copying to VFAT. An exception
24886 That is not the case, so the exception handler itself raised
24887 AttributeError when run on Linux (and, presumably, any other non-Windows
24890 - bpo-1218234: Fix inspect.getsource() to load updated source of reloaded
24893 - bpo-21740: Support wrapped callables in doctest. Patch by Claudiu Popa.
24895 - bpo-23009: Make sure selectors.EpollSelector.select() works when no FD is
24898 - bpo-22959: In the constructor of http.client.HTTPSConnection, prefer the
24901 - bpo-22696: Add function :func:`sys.is_finalizing` to know about
24904 - bpo-16043: Add a default limit for the amount of data
24905 xmlrpclib.gzip_decode will return. This resolves CVE-2013-1753.
24907 - bpo-14099: ZipFile.open() no longer reopen the underlying file. Objects
24909 even if the ZipFile was created by passing in a file-like object as the
24912 - bpo-22966: Fix __pycache__ pyc file name clobber when pyc_compile is asked
24915 - bpo-21971: Update turtledemo doc and add module to the index.
24917 - bpo-21032: Fixed socket leak if HTTPConnection.getresponse() fails.
24920 - bpo-22407: Deprecated the use of re.LOCALE flag with str patterns or
24923 - bpo-22902: The "ip" command is now used on Linux to determine MAC address
24926 - bpo-22960: Add a context argument to xmlrpclib.ServerProxy constructor.
24928 - bpo-22389: Add contextlib.redirect_stderr().
24930 - bpo-21356: Make ssl.RAND_egd() optional to support LibreSSL. The
24931 availability of the function is checked during the compilation. Patch
24934 - bpo-22915: SAX parser now supports files opened with file descriptor or
24937 - bpo-22609: Constructors and update methods of mapping classes in the
24940 - bpo-22940: Add readline.append_history_file.
24942 - bpo-19676: Added the "namereplace" error handler.
24944 - bpo-22788: Add *context* parameter to logging.handlers.HTTPHandler.
24946 - bpo-22921: Allow SSLContext to take the *hostname* parameter even if
24949 - bpo-22894: TestCase.subTest() would cause the test suite to be stopped
24952 - bpo-22796: HTTP cookie parsing is now stricter, in order to protect
24955 - bpo-22370: Windows detection in pathlib is now more robust.
24957 - bpo-22841: Reject coroutines in asyncio add_signal_handler(). Patch by
24960 - bpo-19494: Added urllib.request.HTTPBasicPriorAuthHandler. Patch by Matej
24963 - bpo-22578: Added attributes to the re.error class.
24965 - bpo-22849: Fix possible double free in the io.TextIOWrapper constructor.
24967 - bpo-12728: Different Unicode characters having the same uppercase but
24968 different lowercase are now matched in case-insensitive regular
24971 - bpo-22821: Fixed fcntl() with integer argument on 64-bit big-endian
24974 - bpo-21650: Add an `--sort-keys` option to json.tool CLI.
24976 - bpo-22824: Updated reprlib output format for sets to use set literals.
24979 - bpo-22824: Updated reprlib output format for arrays to display empty
24982 - bpo-22406: Fixed the uu_codec codec incorrectly ported to 3.x. Based on
24985 - bpo-17293: uuid.getnode() now determines MAC address on AIX using netstat.
24988 - bpo-22769: Fixed ttk.Treeview.tag_has() when called without arguments.
24990 - bpo-22417: Verify certificates by default in httplib (PEP 476).
24992 - bpo-22775: Fixed unpickling of http.cookies.SimpleCookie with protocol 2
24995 - bpo-22776: Brought excluded code into the scope of a try block in
24998 - bpo-22665: Add missing get_terminal_size and SameFileError to
25001 - bpo-6623: Remove deprecated Netrc class in the ftplib module. Patch by
25004 - bpo-17381: Fixed handling of case-insensitive ranges in regular
25007 - bpo-22410: Module level functions in the re module now cache compiled
25008 locale-dependent regular expressions taking into account the locale.
25010 - bpo-22759: Query methods on pathlib.Path() (exists(), is_dir(), etc.) now
25013 - bpo-8876: distutils now falls back to copying files when hard linking
25017 - bpo-22217: Implemented reprs of classes in the zipfile module.
25019 - bpo-22457: Honour load_tests in the start_dir of discovery.
25021 - bpo-18216: gettext now raises an error when a .mo file has an unsupported
25024 - bpo-13918: Provide a locale.delocalize() function which can remove
25025 locale-specific number formatting from a string representing a number,
25028 - bpo-22676: Make the pickling of global objects which don't have a
25031 - bpo-18853: Fixed ResourceWarning in shlex.__nain__.
25033 - bpo-9351: Defaults set with set_defaults on an argparse subparser are no
25036 - bpo-7559: unittest test loading ImportErrors are reported as import errors
25040 - bpo-19746: Make it possible to examine the errors from unittest discovery
25042 exposes these non-fatal errors encountered during discovery.
25044 - bpo-21991: Make email.headerregistry's header 'params' attributes be
25045 read-only (MappingProxyType). Previously the dictionary was modifiable
25048 - bpo-22638: SSLv3 is now disabled throughout the standard library. It can
25051 - bpo-22641: In asyncio, the default SSL context for client connections is
25054 - bpo-17401: Include closefd in io.FileIO repr.
25056 - bpo-21338: Add silent mode for compileall. quiet parameters of
25057 compile_{dir, file, path} functions now have a multilevel value. Also, -q
25060 - bpo-20152: Convert the array and cmath modules to Argument Clinic.
25062 - bpo-18643: Add socket.socketpair() on Windows.
25064 - bpo-22435: Fix a file descriptor leak when socketserver bind fails.
25066 - bpo-13096: Fixed segfault in CTypes POINTER handling of large values.
25068 - bpo-11694: Raise ConversionError in xdrlib as documented. Patch by Filip
25071 - bpo-19380: Optimized parsing of regular expressions.
25073 - bpo-1519638: Now unmatched groups are replaced with empty strings in
25076 - bpo-18615: sndhdr.what/whathdr now return a namedtuple.
25078 - bpo-22462: Fix pyexpat's creation of a dummy frame to make it appear in
25081 - bpo-21965: Add support for in-memory SSL to the ssl module. Patch by
25084 - bpo-21173: Fix len() on a WeakKeyDictionary when .clear() was called with
25087 - bpo-11866: Eliminated race condition in the computation of names for new
25090 - bpo-21905: Avoid RuntimeError in pickle.whichmodule() when sys.modules is
25093 - bpo-11271: concurrent.futures.Executor.map() now takes a *chunksize*
25097 - bpo-21883: os.path.join() and os.path.relpath() now raise a TypeError with
25101 - bpo-22219: The zipfile module CLI now adds entries for directories
25104 - bpo-22449: In the ssl.SSLContext.load_default_certs, consult the
25107 - bpo-22508: The email.__version__ variable has been removed; the email code
25108 is no longer shipped separately from the stdlib, and __version__ hasn't
25111 - bpo-20076: Added non derived UTF-8 aliases to locale aliases table.
25113 - bpo-20079: Added locales supported in glibc 2.18 to locale alias table.
25115 - bpo-20218: Added convenience methods read_text/write_text and read_bytes/
25118 - bpo-22396: On 32-bit AIX platform, don't expose os.posix_fadvise() nor
25121 - bpo-22517: When an io.BufferedRWPair object is deallocated, clear its
25124 - bpo-22437: Number of capturing groups in regular expression is no longer
25127 - bpo-17442: InteractiveInterpreter now displays the full chained traceback
25131 - bpo-23392: Added tests for marshal C API that works with FILE*.
25133 - bpo-10510: distutils register and upload methods now use HTML standards
25136 - bpo-9850: Fixed macpath.join() for empty first component. Patch by Oleg
25139 - bpo-5309: distutils' build and build_ext commands now accept a ``-j``
25142 - bpo-22448: Improve canceled timer handles cleanup to prevent unbound
25143 memory usage. Patch by Joshua Moore-Oliva.
25145 - bpo-22427: TemporaryDirectory no longer attempts to clean up twice when
25148 - bpo-22362: Forbidden ambiguous octal escapes out of range 0-0o377 in
25151 - bpo-20912: Now directories added to ZIP file have correct Unix and MS-DOS
25154 - bpo-21866: ZipFile.close() no longer writes ZIP64 central directory
25155 records if allowZip64 is false.
25157 - bpo-22278: Fix urljoin problem with relative urls, a regression observed
25160 - bpo-22415: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
25163 - bpo-22423: Unhandled exception in thread no longer causes unhandled
25164 AttributeError when sys.stderr is None.
25166 - bpo-21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects line
25169 - bpo-21091: Fix API bug: email.message.EmailMessage.is_attachment is now a
25172 - bpo-21079: Fix email.message.EmailMessage.is_attachment to return the
25175 - bpo-22247: Add NNTPError to nntplib.__all__.
25177 - bpo-22366: urllib.request.urlopen will accept a context object
25181 - bpo-4180: The warnings registries are now reset when the filters are
25184 - bpo-22419: Limit the length of incoming HTTP request in wsgiref server to
25188 - Lax cookie parsing in http.cookies could be a security issue when combined
25189 with non-standard cookie handling in some Web browsers. Reported by
25192 - bpo-20537: logging methods now accept an exception instance as well as a
25195 - bpo-22384: An exception in Tkinter callback no longer crashes the program
25196 when it is run with pythonw.exe.
25198 - bpo-22168: Prevent turtle AttributeError with non-default Canvas on OS X.
25200 - bpo-21147: sqlite3 now raises an exception if the request contains a null
25203 - bpo-13968: The glob module now supports recursive search in subdirectories
25206 - bpo-21951: Fixed a crash in Tkinter on AIX when called Tcl command with
25209 - bpo-21951: Tkinter now most likely raises MemoryError instead of crash if
25212 - bpo-22338: Fix a crash in the json module on memory allocation failure.
25214 - bpo-12410: imaplib.IMAP4 now supports the context management protocol.
25217 - bpo-21270: We now override tuple methods in mock.call objects so that they
25220 - bpo-16662: load_tests() is now unconditionally run when it is present in a
25222 use_load_tests, but it is deprecated and ignored. A new keyword-only
25223 attribute `pattern` is added and documented. Patch given by Robert
25226 - bpo-22226: First letter no longer is stripped from the "status" key in the
25229 - bpo-19524: Fixed resource leak in the HTTP connection when an invalid
25230 response is received. Patch by Martin Panter.
25232 - bpo-20421: Add a .version() method to SSL sockets exposing the actual
25235 - bpo-19546: configparser exceptions no longer expose implementation
25239 - bpo-22051: turtledemo no longer reloads examples to re-run them.
25241 is called each time a demo is run, but not on import.
25243 - bpo-21933: Turtledemo users can change the code font size with a menu
25244 selection or control(command) '-' or '+' or control-mousewheel. Original
25247 - bpo-21597: The separator between the turtledemo text pane and the drawing
25253 - bpo-18132: Turtledemo buttons no longer disappear when the window is
25256 - bpo-22043: time.monotonic() is now always available.
25259 timeout is used.
25261 - bpo-21527: Add a default number of workers to ThreadPoolExecutor equal to
25264 - bpo-22216: smtplib now resets its state more completely after a quit. The
25268 - bpo-22098: ctypes' BigEndianStructure and LittleEndianStructure now define
25272 - bpo-22185: Fix an occasional RuntimeError in threading.Condition.wait()
25276 - bpo-22287: On UNIX, _PyTime_gettimeofday() now uses
25281 - bpo-22182: Use e.args to unpack exceptions correctly in
25284 - The webbrowser module now uses subprocess's start_new_session=True rather
25287 - bpo-22042: signal.set_wakeup_fd(fd) now raises an exception if the file
25288 descriptor is in blocking mode.
25290 - bpo-16808: inspect.stack() now returns a named tuple instead of a tuple.
25293 - bpo-22236: Fixed Tkinter images copying operations in NoDefaultRoot mode.
25295 - bpo-2527: Add a *globals* argument to timeit functions, in order to
25296 override the globals namespace in which the timed code is executed. Patch
25299 - bpo-22118: Switch urllib.parse to use RFC 3986 semantics for the
25303 - bpo-21549: Added the "members" parameter to TarFile.list().
25305 - bpo-19628: Allow compileall recursion depth to be specified with a -r
25308 - bpo-15696: Add a __sizeof__ implementation for mmap objects on Windows.
25310 - bpo-22068: Avoided reference loops with Variables and Fonts in Tkinter.
25312 - bpo-22165: SimpleHTTPRequestHandler now supports undecodable file names.
25314 - bpo-15381: Optimized line reading in io.BytesIO.
25316 - bpo-8797: Raise HTTPError on failed Basic Authentication immediately.
25319 - bpo-20729: Restored the use of lazy iterkeys()/itervalues()/iteritems() in
25322 - bpo-21448: Changed FeedParser feed() to avoid O(N**2) behavior when
25325 - bpo-22184: The functools LRU Cache decorator factory now gives an earlier
25328 - bpo-17923: glob() patterns ending with a slash no longer match non-dirs on
25331 - bpo-21725: Added support for RFC 6531 (SMTPUTF8) in smtpd.
25333 - bpo-22176: Update the ctypes module's libffi to v3.1. This release adds
25337 - bpo-5411: Added support for the "xztar" format in the shutil module.
25339 - bpo-21121: Don't force 3rd party C extensions to be built with
25340 -Werror=declaration-after-statement.
25342 - bpo-21975: Fixed crash when using uninitialized sqlite3.Row (in particular
25343 when unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in
25346 - bpo-20170: Convert posixmodule to use Argument Clinic.
25348 - bpo-21539: Add an *exists_ok* argument to `Pathlib.mkdir()` to mimic
25349 `mkdir -p` and `os.makedirs()` functionality. When true, ignore
25352 - bpo-22127: Bypass IDNA for pure-ASCII host names in the socket module (in
25355 - bpo-21047: set the default value for the *convert_charrefs* argument of
25358 - Add an __all__ to html.entities.
25360 - bpo-15114: the strict mode and argument of HTMLParser, HTMLParser.error,
25363 - bpo-22085: Dropped support of Tk 8.3 in Tkinter.
25365 - bpo-21580: Now Tkinter correctly handles bytes arguments passed to Tk. In
25368 - bpo-22003: When initialized from a bytes object, io.BytesIO() now defers
25369 making a copy until it is mutated, improving performance and memory use on
25372 - bpo-22018: On Windows, signal.set_wakeup_fd() now also supports sockets. A
25373 side effect is that Python depends to the WinSock library.
25375 - bpo-22054: Add os.get_blocking() and os.set_blocking() functions to get
25377 flag is set, True otherwise). These functions are not available on
25380 - bpo-17172: Make turtledemo start as active on OS X even when run with
25383 - bpo-21704: Fix build error for _multiprocessing when semaphores are not
25386 - bpo-20173: Convert sha1, sha256, sha512 and md5 to ArgumentClinic. Patch
25389 - Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
25392 - bpo-22033: Reprs of most Python implemented classes now contain actual
25395 - bpo-21947: The dis module can now disassemble generator-iterator objects
25398 - bpo-16133: The asynchat.async_chat.handle_read() method now ignores
25401 - bpo-22044: Fixed premature DECREF in call_tzinfo_method. Patch by Tom
25404 - bpo-19884: readline: Disable the meta modifier key if stdout is not a
25406 sequence is used on some terminal (ex: TERM=xterm-256color") to enable
25409 - bpo-4350: Removed a number of out-of-dated and non-working for a long time
25412 - bpo-6167: Scrollbar.activate() now returns the name of active element if
25413 the argument is not specified. Scrollbar.set() now always accepts only 2
25416 - bpo-15275: Clean up and speed up the ntpath module.
25418 - bpo-21888: plistlib's load() and loads() now work if the fmt parameter is
25421 - bpo-22032: __qualname__ instead of __name__ is now always used to format
25424 - bpo-22031: Reprs now always use hexadecimal format with the "0x" prefix
25427 - bpo-22018: signal.set_wakeup_fd() now raises an OSError instead of a
25430 - bpo-21044: tarfile.open() now handles fileobj with an integer 'name'
25433 - bpo-21966: Respect -q command-line option when code module is ran.
25435 - bpo-19076: Don't pass the redundant 'file' argument to self.error().
25437 - bpo-16382: Improve exception message of warnings.warn() for bad category.
25440 - bpo-21932: os.read() now uses a :c:func:`Py_ssize_t` type instead of
25442 Windows, the size is truncated to INT_MAX. As any call to os.read(), the
25445 - bpo-21942: Fixed source file viewing in pydoc's server mode on Windows.
25447 - bpo-11259: asynchat.async_chat().set_terminator() now raises a ValueError
25448 if the number of received bytes is negative.
25450 - bpo-12523: asynchat.async_chat.push() now raises a TypeError if it doesn't
25453 - bpo-21707: Add missing kwonlyargcount argument to
25456 - bpo-20639: calling Path.with_suffix('') allows removing the suffix again.
25459 - bpo-21714: Disallow the construction of invalid paths using
25462 - bpo-15014: Added 'auth' method to smtplib to make implementing auth
25465 - bpo-21151: Fixed a segfault in the winreg module when ``None`` is passed
25468 - bpo-21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
25471 - bpo-5800: headers parameter of wsgiref.headers.Headers is now optional.
25474 - bpo-21781: ssl.RAND_add() now supports strings longer than 2 GB.
25476 - bpo-21679: Prevent extraneous fstat() calls during open(). Patch by
25479 - bpo-21863: cProfile now displays the module name of C extension functions,
25482 - bpo-11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
25483 object is destroyed. The destructor now closes the file if needed. The
25484 close() method can now be called twice: the second call does nothing.
25486 - bpo-21858: Better handling of Python exceptions in the sqlite3 module.
25488 - bpo-21476: Make sure the email.parser.BytesParser TextIOWrapper is
25491 - bpo-20295: imghdr now recognizes OpenEXR format images.
25493 - bpo-21729: Used the "with" statement in the dbm.dumb module to ensure
25496 - bpo-21491: socketserver: Fix a race condition in child processes reaping.
25498 - bpo-21719: Added the ``st_file_attributes`` field to os.stat_result on
25501 - bpo-21832: Require named tuple inputs to be exact strings.
25503 - bpo-21722: The distutils "upload" command now exits with a non-zero return
25506 - bpo-21723: asyncio.Queue: support any type of number (ex: float) for the
25509 - bpo-21711: support for "site-python" directories has now been removed from
25512 - bpo-17552: new socket.sendfile() method allowing a file to be sent over a
25513 socket by using high-performance os.sendfile() on UNIX. Patch by Giampaolo
25516 - bpo-18039: dbm.dump.open() now always creates a new database when the flag
25519 - bpo-21326: Add a new is_closed() method to asyncio.BaseEventLoop.
25523 - bpo-21766: Prevent a security hole in CGIHTTPServer by URL unquoting paths
25526 - bpo-21310: Fixed possible resource leak in failed open().
25528 - bpo-21256: Printout of keyword args should be in deterministic order in a
25531 - bpo-21677: Fixed chaining nonnormalized exceptions in io close() methods.
25533 - bpo-11709: Fix the pydoc.help function to not fail when sys.stdin is not a
25536 - bpo-21515: tempfile.TemporaryFile now uses os.O_TMPFILE flag is available.
25538 - bpo-13223: Fix pydoc.writedoc so that the HTML documentation for methods
25539 that use 'self' in the example code is generated correctly.
25541 - bpo-21463: In urllib.request, fix pruning of the FTP cache.
25543 - bpo-21618: The subprocess module could fail to close open fds that were
25546 or /dev/fd interface the max is now ignored and all fds are closed.
25548 - bpo-20383: Introduce importlib.util.module_from_spec() as the preferred
25551 - bpo-21552: Fixed possible integer overflow of too long string lengths in
25552 the tkinter module on 64-bit platforms.
25554 - bpo-14315: The zipfile module now ignores extra fields in the central
25557 world zip files in the wild and is ignored by other zip tools.
25559 - bpo-13742: Added "key" and "reverse" parameters to heapq.merge(). (First
25562 - bpo-21402: tkinter.ttk now works when default root window is not set.
25564 - bpo-3015: _tkinter.create() now creates tkapp object with wantobject=1 by
25567 - bpo-10203: sqlite3.Row now truly supports sequence protocol. In
25571 - bpo-18807: If copying (no symlinks) specified for a venv, then the python
25575 - bpo-20197: Added support for the WebP image type in the imghdr module.
25578 - bpo-21513: Speedup some properties of IP addresses (IPv4Address,
25581 - bpo-21137: Improve the repr for threading.Lock() and its variants by
25584 - bpo-21538: The plistlib module now supports loading of binary plist files
25585 when reference or offset size is not a power of two.
25587 - bpo-21455: Add a default backlog to socket.listen().
25589 - bpo-21525: Most Tkinter methods which accepted tuples now accept lists
25592 - bpo-22166: With the assistance of a new internal _codecs._forget_codec
25596 - bpo-22236: Tkinter tests now don't reuse default root window. New root
25597 window is created for every test class.
25599 - bpo-10744: Fix :pep:`3118` format strings on ctypes objects with a
25602 - bpo-20826: Optimize ipaddress.collapse_addresses().
25604 - bpo-21487: Optimize ipaddress.summarize_address_range() and
25607 - bpo-21486: Optimize parsing of netmasks in ipaddress.IPv4Network and
25610 - bpo-13916: Disallowed the surrogatepass error handler for non UTF-\*
25613 - bpo-20998: Fixed re.fullmatch() of repeated single character pattern with
25616 - bpo-21075: fileinput.FileInput now reads bytes from standard stream if
25617 binary mode is specified. Patch by Sam Kimbrel.
25619 - bpo-19775: Add a samefile() method to pathlib Path objects. Initial patch
25622 - bpo-21226: Set up modules properly in PyImport_ExecCodeModuleObject (and
25625 - bpo-21398: Fix a unicode error in the pydoc pager when the documentation
25628 - bpo-16531: ipaddress.IPv4Network and ipaddress.IPv6Network now accept an
25632 - bpo-21156: importlib.abc.InspectLoader.source_to_code() is now a
25635 - bpo-21424: Simplified and optimized heaqp.nlargest() and nmsmallest() to
25638 - bpo-21396: Fix TextIOWrapper(..., write_through=True) to not force a
25641 - bpo-18314: Unlink now removes junctions on Windows. Patch by Kim Gräsman
25643 - bpo-21088: Bugfix for curses.window.addch() regression in 3.4.0. In
25646 - bpo-21407: _decimal: The module now supports function signatures.
25648 - bpo-10650: Remove the non-standard 'watchexp' parameter from the
25652 - bpo-21469: Reduced the risk of false positives in robotparser by checking
25656 - bpo-19414: Have the OrderedDict mark deleted links as unusable. This gives
25657 an early failure if the link is deleted during iteration.
25659 - bpo-21421: Add __slots__ to the MappingViews ABC. Patch by Josh Rosenberg.
25661 - bpo-21101: Eliminate double hashing in the C speed-up code for
25664 - bpo-21321: itertools.islice() now releases the reference to the source
25665 iterator when the slice is exhausted. Patch by Anton Afanasyev.
25667 - bpo-21057: TextIOWrapper now allows the underlying binary stream's read()
25668 or read1() method to return an arbitrary bytes-like object (such as a
25671 - bpo-20951: SSLSocket.send() now raises either SSLWantReadError or
25672 SSLWantWriteError on a non-blocking socket if the operation would block.
25675 - bpo-13248: removed previously deprecated asyncore.dispatcher __getattr__
25678 - bpo-9815: assertRaises now tries to clear references to local variables in
25681 - bpo-19940: ssl.cert_time_to_seconds() now interprets the given time string
25684 - bpo-13204: Calling sys.flags.__new__ would crash the interpreter, now it
25687 - bpo-19385: Make operations on a closed dbm.dumb database always raise the
25690 - bpo-21207: Detect when the os.urandom cached fd has been closed or
25693 - bpo-21291: subprocess's Popen.wait() is now thread safe so that multiple
25697 - bpo-21127: Path objects can now be instantiated from str subclass
25700 - bpo-15002: urllib.response object to use _TemporaryFileWrapper (and
25704 - bpo-12220: mindom now raises a custom ValueError indicating it doesn't
25707 - bpo-21068: The ssl.PROTOCOL* constants are now enum members.
25709 - bpo-21276: posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd.
25711 - bpo-21262: New method assert_not_called for Mock. It raises AssertionError
25714 - bpo-21238: New keyword argument `unsafe` to Mock. It raises
25717 - bpo-20896: ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not
25720 - bpo-21239: patch.stopall() didn't work deterministically when the same
25723 - bpo-21203: Updated fileConfig and dictConfig to remove inconsistencies.
25726 - bpo-21222: Passing name keyword argument to mock.create_autospec now
25729 - bpo-21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
25731 - bpo-17498: Some SMTP servers disconnect after certain errors, violating
25734 the SMTPServerDisconnected error until the next command is issued.
25736 - bpo-17826: setting an iterable side_effect on a mock function created by
25739 - bpo-7776: Fix ``Host:`` header and reconnection when using
25742 - bpo-20968: unittest.mock.MagicMock now supports division. Patch by
25745 - bpo-21529: Fix arbitrary memory access in JSONDecoder.raw_decode with a
25746 negative second parameter. Bug reported by Guido Vranken. (See also:
25747 CVE-2014-4616)
25749 - bpo-21169: getpass now handles non-ascii characters that the input stream
25750 encoding cannot encode by re-encoding using the replace error handler.
25752 - bpo-21171: Fixed undocumented filter API of the rot13 codec. Patch by
25755 - bpo-20539: Improved math.factorial error message for large positive inputs
25756 and changed exception type (OverflowError -> ValueError) for large
25759 - bpo-21172: isinstance check relaxed from dict to collections.Mapping.
25761 - bpo-21155: asyncio.EventLoop.create_unix_server() now raises a ValueError
25764 - bpo-21136: Avoid unnecessary normalization of Fractions resulting from
25767 - bpo-17621: Introduce importlib.util.LazyLoader.
25769 - bpo-21076: signal module constants were turned into enums. Patch by
25772 - bpo-20636: Improved the repr of Tkinter widgets.
25774 - bpo-19505: The items, keys, and values views of OrderedDict now support
25777 - bpo-21149: Improved thread-safety in logging cleanup during interpreter
25780 - bpo-21058: Fix a leak of file descriptor in
25784 - bpo-21200: Return None from pkgutil.get_loader() when __spec__ is missing.
25786 - bpo-21013: Enhance ssl.create_default_context() when used for server side
25789 - bpo-20145: `assertRaisesRegex` and `assertWarnsRegex` now raise a
25790 TypeError if the second argument is not a string or compiled regex.
25792 - bpo-20633: Replace relative import by absolute import.
25794 - bpo-20980: Stop wrapping exception when using ThreadPool.
25796 - bpo-21082: In os.makedirs, do not set the process-wide umask. Note this
25799 - bpo-20990: Fix issues found by pyflakes for multiprocessing.
25801 - bpo-21015: SSL contexts will now automatically select an elliptic curve
25805 - bpo-21000: Improve the command-line interface of json.tool.
25807 - bpo-20995: Enhance default ciphers used by the ssl module to enable better
25810 - bpo-20884: Don't assume that __file__ is defined on importlib.__init__.
25812 - bpo-21499: Ignore __builtins__ in several test_importlib.test_api tests.
25814 - bpo-20627: xmlrpc.client.ServerProxy is now a context manager.
25816 - bpo-19165: The formatter module now raises DeprecationWarning instead of
25819 - bpo-13936: Remove the ability of datetime.time instances to be considered
25822 - bpo-18931: selectors module now supports /dev/poll on Solaris. Patch by
25825 - bpo-19977: When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale),
25830 - bpo-20574: Implement incremental decoder for cp65001 code (Windows code
25831 page 65001, Microsoft UTF-8).
25833 - bpo-20879: Delay the initialization of encoding and decoding tables for
25838 - bpo-19157: Include the broadcast address in the usuable hosts for IPv6 in
25841 - bpo-11599: When an external command (e.g. compiler) fails, distutils now
25843 the environment variable DISTUTILS_DEBUG is set.
25845 - bpo-4931: distutils should not produce unhelpful "error: None" messages
25846 anymore. distutils.util.grok_environment_error is kept but doc-deprecated.
25848 - bpo-20875: Prevent possible gzip "'read' is not defined" NameError. Patch
25851 - bpo-11558: ``email.message.Message.attach`` now returns a more useful
25852 error message if ``attach`` is called on a message for which
25853 ``is_multipart`` is False.
25855 - bpo-20283: RE pattern methods now accept the string keyword parameters as
25859 - bpo-20778: Fix modulefinder to work with bytecode-only modules.
25861 - bpo-20791: copy.copy() now doesn't make a copy when the input is a bytes
25864 - bpo-19748: On AIX, time.mktime() now raises an OverflowError for year
25867 - bpo-19573: inspect.signature: Use enum for parameter kind constants.
25869 - bpo-20726: inspect.signature: Make Signature and Parameter picklable.
25871 - bpo-17373: Add inspect.Signature.from_callable method.
25873 - bpo-20378: Improve repr of inspect.Signature and inspect.Parameter.
25875 - bpo-20816: Fix inspect.getcallargs() to raise correct TypeError for
25876 missing keyword-only arguments. Patch by Jeremiah Lowin.
25878 - bpo-20817: Fix inspect.getcallargs() to fail correctly if more than 3
25881 - bpo-6676: Ensure a meaningful exception is raised when attempting to parse
25886 - bpo-21117: Fix inspect.signature to better support functools.partial. Due
25888 positional-or-keyword arguments passed as keyword arguments become
25889 keyword-only.
25891 - bpo-20334: inspect.Signature and inspect.Parameter are now hashable.
25894 - bpo-15916: doctest.DocTestSuite returns an empty unittest.TestSuite
25897 - bpo-21209: Fix asyncio.tasks.CoroWrapper to workaround a bug in yield-from
25900 - asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream
25903 - bpo-21311: Avoid exception in _osx_support with non-standard compiler
25906 - bpo-11571: Ensure that the turtle window becomes the topmost window when
25909 - bpo-21801: Validate that __signature__ is None or an instance of
25912 - bpo-21923: Prevent AttributeError in
25916 - bpo-21323: Fix http.server to again handle scripts in CGI subdirectories,
25919 - bpo-22733: Fix ffi_prep_args not zero-extending argument values correctly
25920 on 64-bit Windows.
25922 - bpo-23302: Default to TCP_NODELAY=1 upon establishing an HTTPConnection.
25923 Removed use of hard-coded MSS as it's an optimization that's no longer
25927 ----
25929 - bpo-20577: Configuration of the max line length for the FormatParagraph
25934 - bpo-16893: Update Idle doc chapter to match current Idle and add new
25937 - bpo-3068: Add Idle extension configuration dialog to Options menu. Changes
25938 are written to HOME/.idlerc/config-extensions.cfg. Original patch by Tal
25941 - bpo-16233: A module browser (File : Class Browser, Alt+C) requires an
25942 editor window with a filename. When Class Browser is requested otherwise,
25945 is entered and a module is opened, a corresponding browser is also opened.
25947 - bpo-4832: Save As to type Python files automatically adds .py to the name
25949 automatically add .txt when type is Text files.
25951 - bpo-21986: Code objects are not normally pickled by the pickle module. To
25954 - bpo-17390: Adjust Editor window title; remove 'Python', move version to
25957 - bpo-14105: Idle debugger breakpoints no longer disappear when inserting or
25960 - bpo-17172: Turtledemo can now be run from Idle. Currently, the entry is on
25964 - bpo-21765: Add support for non-ascii identifiers to HyperParser.
25966 - bpo-21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav
25969 - bpo-18592: Add unittest for SearchDialogBase. Patch by Phil Webster.
25971 - bpo-21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar.
25973 - bpo-21686: add unittest for HyperParser. Original patch by Saimadhav
25976 - bpo-12387: Add missing upper(lower)case versions of default Windows key
25980 - bpo-21695: Closing a Find-in-files output window while the search is still
25983 - bpo-18910: Add unittest for textView. Patch by Phil Webster.
25985 - bpo-18292: Add unittest for AutoExpand. Patch by Saihadhav Heblikar.
25987 - bpo-18409: Add unittest for AutoComplete. Patch by Phil Webster.
25989 - bpo-21477: htest.py - Improve framework, complete set of tests. Patches by
25992 - bpo-18104: Add idlelib/idle_test/htest.py with a few sample tests to begin
25993 consolidating and improving human-validated tests of Idle. Change other
25997 - bpo-21139: Change default paragraph width to 72, the :pep:`8`
26000 - bpo-21284: Paragraph reformat test passes after user changes reformat
26003 - bpo-17654: Ensure IDLE menus are customized properly on OS X for
26004 non-framework builds and for all variants of Tk.
26006 - bpo-23180: Rename IDLE "Windows" menu item to "Window". Patch by Al
26010 -----
26012 - bpo-15506: Use standard PKG_PROG_PKG_CONFIG autoconf macro in the
26015 - bpo-22935: Allow the ssl module to be compiled if openssl doesn't support
26018 - bpo-22592: Drop support of the Borland C compiler to build Python. The
26021 - bpo-22591: Drop support of MS-DOS, especially of the DJGPP compiler
26022 (MS-DOS port of GCC).
26024 - bpo-16537: Check whether self.extensions is empty in setup.py. Patch by
26027 - bpo-22359: Remove incorrect uses of recursive make. Patch by Jonas
26030 - bpo-21958: Define HAVE_ROUND when building with Visual Studio 2013 and
26033 - bpo-18093: the programs that embed the CPython runtime are now in a
26037 - bpo-15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
26040 - bpo-21141: The Windows build process no longer attempts to find Perl,
26042 The ``PCbuild\build_ssl.py`` script has been re-written and re-named to
26045 svn.python.org will always be pre-configured and ready to build.
26047 - bpo-21037: Add a build option to enable AddressSanitizer support.
26049 - bpo-19962: The Windows build process now creates "python.bat" in the root
26053 - bpo-21285: Refactor and fix curses configure check to always search in a
26056 - bpo-15234: For BerkeleyDB and Sqlite, only add the found library and
26060 - bpo-17861: Tools/scripts/generate_opcode_h.py automatically regenerates
26063 - bpo-20644: OS X installer build support for documentation build changes in
26064 3.4.1: assume externally supplied sphinx-build is available in /usr/bin.
26066 - bpo-20022: Eliminate use of deprecated bundlebuilder in OS X builds.
26068 - bpo-15968: Incorporated Tcl, Tk, and Tix builds into the Windows build
26071 - bpo-17095: Fix Modules/Setup *shared* support.
26073 - bpo-21811: Anticipated fixes to support OS X versions > 10.9.
26075 - bpo-21166: Prevent possible segfaults and other random failures of python
26076 --generate-posix-vars in pybuilddir.txt build target.
26078 - bpo-18096: Fix library order returned by python-config.
26080 - bpo-17219: Add library build dir for Python extension cross-builds.
26082 - bpo-22919: Windows build updated to support VC 14.0 (Visual Studio 2015),
26085 - bpo-21236: Build _msi.pyd with cabinet.lib instead of fci.lib
26087 - bpo-17128: Use private version of OpenSSL for OS X 10.5+ installer.
26090 -----
26092 - bpo-14203: Remove obsolete support for view==NULL in PyBuffer_FillInfo(),
26096 - bpo-22445: PyBuffer_IsContiguous() now implements precise contiguity
26100 - bpo-22079: PyType_Ready() now checks that statically allocated type has no
26103 - bpo-22453: Removed non-documented macro PyObject_REPR().
26105 - bpo-18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`,
26109 - bpo-21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
26110 PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) is now using
26111 ``calloc()`` instead of ``malloc()`` for large objects which is faster and
26114 - bpo-20942: PyImport_ImportFrozenModuleObject() no longer sets __file__ to
26119 -------------
26121 - bpo-19548: Update the codecs module documentation to better cover the
26125 - bpo-22394: Doc/Makefile now supports ``make venv PYTHON=../python`` to
26129 - bpo-21514: The documentation of the json module now refers to new JSON RFC
26132 - bpo-21777: The binary sequence methods on bytes and bytearray are now
26137 - bpo-6916: undocument deprecated asynchat.fifo class.
26139 - bpo-17386: Expanded functionality of the ``Doc/make.bat`` script to make
26142 - bpo-21312: Update the thread_foobar.h template file to include newer
26145 - bpo-21043: Remove the recommendation for specific CA organizations and to
26148 - bpo-20765: Add missing documentation for PurePath.with_name() and
26151 - bpo-19407: New package installation and distribution guides based on the
26156 - bpo-19697: Document cases where __main__.__spec__ is None.
26159 -----
26161 - bpo-18982: Add tests for CLI of the calendar module.
26163 - bpo-19548: Added some additional checks to test_codecs to ensure that
26167 - bpo-22838: All test_re tests now work with unittest test discovery.
26169 - bpo-22173: Update lib2to3 tests to use unittest test discovery.
26171 - bpo-16000: Convert test_curses to use unittest.
26173 - bpo-21456: Skip two tests in test_urllib2net.py if _ssl module not
26176 - bpo-20746: Fix test_pdb to run in refleak mode (-R). Patch by Xavier de
26179 - bpo-22060: test_ctypes has been somewhat cleaned up and simplified; it now
26182 - bpo-22104: regrtest.py no longer holds a reference to the suite of tests
26185 - bpo-22111: Assorted cleanups in test_imaplib. Patch by Milan Oberkirch.
26187 - bpo-22002: Added ``load_package_tests`` function to test.support and used
26191 - bpo-21976: Fix test_ssl to accept LibreSSL version strings. Thanks to
26194 - bpo-21918: Converted test_tools from a module to a package containing
26197 - bpo-9554: Use modern unittest features in test_argparse. Initial patch by
26200 - bpo-20155: Changed HTTP method names in failing tests in test_httpservers
26205 - bpo-19493: Refactored the ctypes test package to skip tests explicitly
26208 - bpo-18492: All resources are now allowed when tests are not run by
26211 - bpo-21634: Fix pystone micro-benchmark: use floor division instead of true
26215 - bpo-21605: Added tests for Tkinter images.
26217 - bpo-21493: Added test for ntpath.expanduser(). Original patch by Claudiu
26220 - bpo-19925: Added tests for the spwd module. Original patch by Vajrasky
26223 - bpo-21522: Added Tkinter tests for Listbox.itemconfigure(),
26226 - bpo-17756: Fix test_code test when run from the installed location.
26228 - bpo-17752: Fix distutils tests when run from the installed location.
26230 - bpo-18604: Consolidated checks for GUI availability. All platforms now at
26231 least check whether Tk can be instantiated when the GUI resource is
26234 - bpo-21275: Fix a socket test on KFreeBSD.
26236 - bpo-21223: Pass test_site/test_startup_imports when some of the extensions
26239 - bpo-20635: Added tests for Tk geometry managers.
26241 - Add test case for freeze.
26243 - bpo-20743: Fix a reference leak in test_tcl.
26245 - bpo-21097: Move test_namespace_pkgs into test_importlib.
26247 - bpo-21503: Use test_both() consistently in test_importlib.
26249 - bpo-20939: Avoid various network test failures due to new redirect of
26253 - bpo-20668: asyncio tests no longer rely on tests.txt file. (Patch by
26256 - bpo-21093: Prevent failures of ctypes test_macholib on OS X if a copy of
26259 - bpo-22770: Prevent some Tk segfaults on OS X when running gui tests.
26261 - bpo-23211: Workaround test_logging failure on some OS X 10.6 systems.
26263 - bpo-23345: Prevent test_ssl failures with large OpenSSL patch level values
26267 -----------
26269 - bpo-22314: pydoc now works when the LINES environment variable is set.
26271 - bpo-22615: Argument Clinic now supports the "type" argument for the int
26274 - bpo-20076: The makelocalealias.py script no longer ignores UTF-8 mapping.
26276 - bpo-20079: The makelocalealias.py script now can parse the SUPPORTED file
26279 - bpo-22201: Command-line interface of the zipfile module now correctly
26282 - bpo-22120: For functions using an unsigned integer return converter,
26283 Argument Clinic now generates a cast to that type for the comparison to -1
26286 - bpo-18974: Tools/scripts/diff.py now uses argparse instead of optparse.
26288 - bpo-21906: Make Tools/scripts/md5sum.py work in Python 3. Patch by Zachary
26291 - bpo-21629: Fix Argument Clinic's "--converters" feature.
26293 - Add support for ``yield from`` to 2to3.
26295 - Add support for the :pep:`465` matrix multiplication operator to 2to3.
26297 - bpo-16047: Fix module exception list and __file__ handling in freeze.
26300 - bpo-11824: Consider ABI tags in freeze. Patch by Meador Inge.
26302 - bpo-20535: PYTHONWARNING no longer affects the run_tests.py script. Patch
26306 -------
26308 - bpo-23260: Update Windows installer
26310 - The bundled version of Tcl/Tk has been updated to 8.6.3. The most visible
26311 result of this change is the addition of new native file dialogs when
26316 - bpo-17896: The Windows build scripts now expect external library sources
26319 - bpo-17717: The Windows build scripts now use a copy of NASM pulled from
26322 - bpo-21907: Improved the batch scripts provided for building Python.
26324 - bpo-22644: The bundled version of OpenSSL has been updated to 1.0.1j.
26326 - bpo-10747: Use versioned labels in the Windows start menu. Patch by Olive
26329 - bpo-22980: .pyd files with a version and platform tag (for example,
26330 ".cp35-win32.pyd") will now be loaded in preference to those without tags.