Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48a0469

Browse files
Merge 3.5
2 parents 95e2cc5 + 35a361f commit 48a0469

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

Doc/whatsnew/3.5.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -683,13 +683,13 @@ Some smaller changes made to the core Python language are:
683683
* New Kazakh :ref:`codec <standard-encodings>` ``kz1048``. (Contributed by
684684
Serhiy Storchaka in :issue:`22682`.)
685685

686+
* New Tajik :ref:`codec <standard-encodings>` ``koi8_t``. (Contributed by
687+
Serhiy Storchaka in :issue:`22681`.)
688+
686689
* Property docstrings are now writable. This is especially useful for
687690
:func:`collections.namedtuple` docstrings.
688691
(Contributed by Berker Peksag in :issue:`24064`.)
689692

690-
* New Tajik :ref:`codec <standard-encodings>` ``koi8_t``. (Contributed by
691-
Serhiy Storchaka in :issue:`22681`.)
692-
693693
* Circular imports involving relative imports are now supported.
694694
(Contributed by Brett Cannon and Antoine Pitrou in :issue:`17636`.)
695695

@@ -802,14 +802,14 @@ size of decompressed data. (Contributed by Nikolaus Rath in :issue:`15955`.)
802802
cgi
803803
---
804804

805-
The :class:`~cgi.FieldStorage` class now supports the context management
805+
The :class:`~cgi.FieldStorage` class now supports the :term:`context manager`
806806
protocol. (Contributed by Berker Peksag in :issue:`20289`.)
807807

808808

809809
csv
810810
---
811811

812-
:meth:`Writer.writerow <csv.Writer.writerow>` now supports arbitrary iterables,
812+
The :meth:`~csv.csvwriter.writerow` method now supports arbitrary iterables,
813813
not just sequences. (Contributed by Serhiy Storchaka in :issue:`23171`.)
814814

815815

@@ -885,7 +885,7 @@ New :class:`~collections.abc.Awaitable` :class:`~collections.abc.Coroutine`,
885885
compileall
886886
----------
887887

888-
A new :mod:`compileall` option, ``-j N``, allows to run ``N`` workers
888+
A new :mod:`compileall` option, :samp:`-j {N}`, allows to run *N* workers
889889
sumultaneously to perform parallel bytecode compilation.
890890
The :func:`~compileall.compile_dir` function has a corresponding ``workers``
891891
parameter. (Contributed by Claudiu Popa in :issue:`16104`.)
@@ -909,7 +909,7 @@ The :meth:`Executor.map <concurrent.futures.Executor.map>` method now accepts a
909909
:meth:`~concurrent.futures.ProcessPoolExecutor` is used.
910910
(Contributed by Dan O'Reilly in :issue:`11271`.)
911911

912-
A number of workers in :class:`~concurrent.futures.ThreadPoolExecutor` is
912+
A number of workers in :class:`~concurrent.futures.ThreadPoolExecutor` constructor is
913913
optional now. The default value equals to 5 times the number of CPUs.
914914
(Contributed by Claudiu Popa in :issue:`21527`.)
915915

@@ -943,7 +943,7 @@ Example::
943943
contextlib
944944
----------
945945

946-
The new :func:`~contextlib.redirect_stderr` context manager (similar to
946+
The new :func:`~contextlib.redirect_stderr` :term:`context manager` (similar to
947947
:func:`~contextlib.redirect_stdout`) makes it easier for utility scripts to
948948
handle inflexible APIs that write their output to :data:`sys.stderr` and
949949
don't provide any options to redirect it::
@@ -1031,7 +1031,7 @@ of using encoded words. This allows ``Messages`` to be formatted according to
10311031
``SMTPUTF8`` extension. (Contributed by R. David Murray in
10321032
:issue:`24211`.)
10331033

1034-
:class:`email.mime.text.MIMEText` constructor now accepts a
1034+
:class:`~email.mime.text.MIMEText` constructor now accepts a
10351035
:class:`~email.charset.Charset` instance.
10361036
(Contributed by Claude Paroz and Berker Peksag in :issue:`16324`.)
10371037

@@ -1143,13 +1143,13 @@ Since idlelib implements the IDLE shell and editor and is not intended for
11431143
import by other programs, it gets improvements with every release. See
11441144
:file:`Lib/idlelib/NEWS.txt` for a cumulative list of changes since 3.4.0,
11451145
as well as changes made in future 3.5.x releases. This file is also available
1146-
from the IDLE Help -> About Idle dialog.
1146+
from the IDLE :menuselection:`Help --> About IDLE` dialog.
11471147

11481148

11491149
imaplib
11501150
-------
11511151

1152-
The :class:`~imaplib.IMAP4` class now supports context manager protocol.
1152+
The :class:`~imaplib.IMAP4` class now supports :term:`context manager` protocol.
11531153
When used in a :keyword:`with` statement, the IMAP4 ``LOGOUT``
11541154
command will be called automatically at the end of the block.
11551155
(Contributed by Tarek Ziadé and Serhiy Storchaka in :issue:`4972`.)
@@ -1220,7 +1220,7 @@ A new class method
12201220
subclassing of :class:`~inspect.Signature` easier. (Contributed
12211221
by Yury Selivanov and Eric Snow in :issue:`17373`.)
12221222

1223-
The :func:`~inspect.signature` function now accepts a ``follow_wrapped``
1223+
The :func:`~inspect.signature` function now accepts a *follow_wrapped*
12241224
optional keyword argument, which, when set to ``False``, disables automatic
12251225
following of ``__wrapped__`` links.
12261226
(Contributed by Yury Selivanov in :issue:`20691`.)
@@ -1264,7 +1264,7 @@ network objects from existing addresses::
12641264

12651265
(Contributed by Peter Moody and Antoine Pitrou in :issue:`16531`.)
12661266

1267-
A new :attr:`~ipaddress.IPv4Network.reverse_pointer>` attribute for
1267+
A new :attr:`~ipaddress.IPv4Network.reverse_pointer` attribute for
12681268
:class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` classes
12691269
returns the name of the reverse DNS PTR record::
12701270

@@ -1287,7 +1287,7 @@ JSON objects passed in input. The new ``--sort-keys`` option can be used
12871287
to sort the keys alphabetically. (Contributed by Berker Peksag
12881288
in :issue:`21650`.)
12891289

1290-
JSON decoder now raises :exc:`json.JSONDecodeError` instead of
1290+
JSON decoder now raises :exc:`~json.JSONDecodeError` instead of
12911291
:exc:`ValueError` to provide better context information about the error.
12921292
(Contributed by Serhiy Storchaka in :issue:`19361`.)
12931293

@@ -1327,7 +1327,7 @@ logging
13271327
All logging methods (:class:`~logging.Logger` :meth:`~logging.Logger.log`,
13281328
:meth:`~logging.Logger.exception`, :meth:`~logging.Logger.critical`,
13291329
:meth:`~logging.Logger.debug`, etc.), now accept exception instances
1330-
as an ``exc_info`` argument, in addition to boolean values and exception
1330+
as an *exc_info* argument, in addition to boolean values and exception
13311331
tuples::
13321332

13331333
>>> import logging
@@ -1451,7 +1451,7 @@ either an another :class:`~pathlib.Path` object, or a string::
14511451
(Contributed by Vajrasky Kok and Antoine Pitrou in :issue:`19775`.)
14521452

14531453
The :meth:`Path.mkdir <pathlib.Path.mkdir>` method how accepts a new optional
1454-
``exist_ok`` argument to match ``mkdir -p`` and :func:`os.makrdirs`
1454+
*exist_ok* argument to match ``mkdir -p`` and :func:`os.makrdirs`
14551455
functionality. (Contributed by Berker Peksag in :issue:`21539`.)
14561456

14571457
There is a new :meth:`Path.expanduser <pathlib.Path.expanduser>` method to
@@ -1595,14 +1595,14 @@ The :class:`~smtpd.SMTPServer` class now advertises the ``8BITMIME`` extension
15951595
(:rfc:`6152`) if *decode_data* has been set ``True``. If the client
15961596
specifies ``BODY=8BITMIME`` on the ``MAIL`` command, it is passed to
15971597
:meth:`SMTPServer.process_message <smtpd.SMTPServer.process_message>`
1598-
via the ``mail_options`` keyword.
1598+
via the *mail_options* keyword.
15991599
(Contributed by Milan Oberkirch and R. David Murray in :issue:`21795`.)
16001600

16011601
The :class:`~smtpd.SMTPServer` class now also supports the ``SMTPUTF8``
16021602
extension (:rfc:`6531`: Internationalized Email). If the client specified
16031603
``SMTPUTF8 BODY=8BITMIME`` on the ``MAIL`` command, they are passed to
16041604
:meth:`SMTPServer.process_message <smtpd.SMTPServer.process_message>`
1605-
via the ``mail_options`` keyword. It is the responsibility of the
1605+
via the *mail_options* keyword. It is the responsibility of the
16061606
:meth:`~smtpd.SMTPServer.process_message` method to correctly handle the
16071607
``SMTPUTF8`` data. (Contributed by Milan Oberkirch in :issue:`21725`.)
16081608

@@ -1840,7 +1840,7 @@ The :func:`~time.monotonic` function is now always available.
18401840
timeit
18411841
------
18421842

1843-
A new command line option ``-u`` or ``--unit=U`` can be used to specify the time
1843+
A new command line option ``-u`` or :samp:`--unit={U}` can be used to specify the time
18441844
unit for the timer output. Supported options are ``usec``, ``msec``,
18451845
or ``sec``. (Contributed by Julian Gindi in :issue:`18983`.)
18461846

@@ -1868,7 +1868,7 @@ functions to conveniently traverse frame and traceback objects.
18681868
(Contributed by Robert Collins in :issue:`17911`.)
18691869

18701870
New lightweight classes: :class:`~traceback.TracebackException`,
1871-
:class:`~traceback.StackSummary`, and :class:`traceback.FrameSummary`.
1871+
:class:`~traceback.StackSummary`, and :class:`~traceback.FrameSummary`.
18721872
(Contributed by Robert Collins in :issue:`17911`.)
18731873

18741874
Both :func:`~traceback.print_tb` and :func:`~traceback.print_stack` functions
@@ -1978,8 +1978,8 @@ class constructor is now optional.
19781978
xmlrpc
19791979
------
19801980

1981-
The :class:`client.ServerProxy <xmlrpc.client.ServerProxy>` class is now a
1982-
:term:`context manager`.
1981+
The :class:`client.ServerProxy <xmlrpc.client.ServerProxy>` class now supports
1982+
:term:`context manager` protocol.
19831983
(Contributed by Claudiu Popa in :issue:`20627`.)
19841984

19851985
:class:`client.ServerProxy <xmlrpc.client.ServerProxy>` constructor now accepts
@@ -2252,7 +2252,7 @@ The :mod:`inspect` :func:`~inspect.getfullargspec`,
22522252
:func:`inspect.signature` API.
22532253
(Contributed by Yury Selivanov in :issue:`20438`.)
22542254

2255-
Use of ``re.LOCALE`` flag with str patterns or ``re.ASCII`` is now
2255+
Use of :const:`re.LOCALE` flag with str patterns or :const:`re.ASCII` is now
22562256
deprecated. (Contributed by Serhiy Storchaka in :issue:`22407`.)
22572257

22582258
Use of unrecognized special sequences consisting of ``'\'`` and an ASCII letter

0 commit comments

Comments
 (0)