Skip to content
Snippets Groups Projects
Unverified Commit 97fe9cfd authored by Łukasz Langa's avatar Łukasz Langa
Browse files

Python 3.9.0b1

parent a3ec3ad9
No related branches found
Tags v3.6.5
No related merge requests found
Showing
with 0 additions and 39 deletions
The ``isocalendar()`` methods of :class:`datetime.date` and
:class:`datetime.datetime` now return a :term:`named tuple`
instead of a :class:`tuple`.
In the argparse module, the repr for Namespace() and other argument holders
now displayed in the order attributes were added. Formerly, it displayed in
alphabetical order even though argument order is preserved the user visible
parts of the module.
Raise TypeError when _generate_next_value_ is defined after members. Patch by Ethan Onstott.
\ No newline at end of file
On AIX, :func:`~time.thread_time` is now implemented with ``thread_cputime()``
which has nanosecond resolution, rather than
``clock_gettime(CLOCK_THREAD_CPUTIME_ID)`` which has a resolution of 10 ms.
Patch by Batuhan Taskaya.
The repr for :class:`types.SimpleNamespace` is now insertion ordered rather
than alphabetical.
:class:`types.MappingProxyType` is now reversible.
Add support for CAN_J1939 sockets (available on Linux 5.4+)
``repr()`` now returns ``typing.Optional[T]`` when called for ``typing.Union`` of two types, one of which is ``NoneType``.
\ No newline at end of file
:meth:`imaplib.IMAP4.unselect` is added. Patch by Dong-hee Na.
Added ``files()`` function to importlib.resources with support for subdirectories in package data, matching backport in importlib_resources 1.5.
\ No newline at end of file
Revert bpo-25597. :class:`unittest.mock.MagicMock` with wraps' set uses
default return values for magic methods.
Add a new :meth:`~multiprocessing.SimpleQueue.close` method to the
:class:`~multiprocessing.SimpleQueue` class to explicitly close the queue.
``Process.shutdown(wait=True)`` of :mod:`concurrent.futures` now closes
explicitly the result queue.
Fix a race condition in concurrent.futures._ThreadWakeup: access to
_ThreadWakeup is now protected with the shutdown lock.
Added default arguments to :meth:`difflib.SequenceMatcher.find_longest_match()`.
\ No newline at end of file
Remove ``_random.Random.randbytes()``: the C implementation of
``randbytes()``. Implement the method in Python to ease subclassing:
``randbytes()`` now directly reuses ``getrandbits()``.
Add ``isolated=True`` keyword-only parameter to
``_xxsubinterpreters.create()``. An isolated subinterpreter cannot spawn
threads, spawn a child process or call ``os.fork()``.
Update :mod:`dbm.gnu` to use gdbm_count if possible when calling
:func:`len`. Patch by Dong-hee Na.
Update :mod:`nntplib` to merge :class:`nntplib.NNTP` and
:class:`nntplib._NNTPBase`. Patch by Dong-hee Na.
The first argument of :func:`pickle.loads` is now positional-only.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment