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

Skip to content

Commit ba5512f

Browse files
committed
More nits.
1 parent c136b04 commit ba5512f

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

Doc/whatsnew/3.2.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ For the first time, there is correct handling of inputs with mixed encodings.
597597
Throughout the standard library, there has been more careful attention to
598598
encodings and text versus bytes issues. In particular, interactions with the
599599
operating system are now better able to pass non-ASCII data using the Windows
600-
MCBS encoding, locale-aware encodings, or UTF-8.
600+
MBCS encoding, locale-aware encodings, or UTF-8.
601601

602602
Another significant win is the addition of substantially better support for
603603
*SSL* connections and security certificates.
@@ -1499,7 +1499,7 @@ The INI file structure accepted by config parsers can now be customized. Users
14991499
can specify alternative option/value delimiters and comment prefixes, change the
15001500
name of the *DEFAULT* section or switch the interpolation syntax.
15011501

1502-
The is support for pluggable interpolation including an additional interpolation
1502+
There is support for pluggable interpolation including an additional interpolation
15031503
handler :class:`~configparser.ExtendedInterpolation`::
15041504

15051505
>>> parser = ConfigParser(interpolation=ExtendedInterpolation())
@@ -1552,13 +1552,13 @@ Multi-threading
15521552
===============
15531553

15541554
* The mechanism for serializing execution of concurrently running Python threads
1555-
(generally known as the GIL or Global Interpreter Lock) has been rewritten.
1556-
Among the objectives were more predictable switching intervals and reduced
1557-
overhead due to lock contention and the number of ensuing system calls. The
1558-
notion of a "check interval" to allow thread switches has been abandoned and
1559-
replaced by an absolute duration expressed in seconds. This parameter is
1560-
tunable through :func:`sys.setswitchinterval()`. It currently defaults to 5
1561-
milliseconds.
1555+
(generally known as the :term:`GIL` or :term:`Global Interpreter Lock`) has
1556+
been rewritten. Among the objectives were more predictable switching
1557+
intervals and reduced overhead due to lock contention and the number of
1558+
ensuing system calls. The notion of a "check interval" to allow thread
1559+
switches has been abandoned and replaced by an absolute duration expressed in
1560+
seconds. This parameter is tunable through :func:`sys.setswitchinterval()`.
1561+
It currently defaults to 5 milliseconds.
15621562

15631563
Additional details about the implementation can be read from a `python-dev
15641564
mailing-list message
@@ -1569,7 +1569,8 @@ Multi-threading
15691569
(Contributed by Antoine Pitrou.)
15701570

15711571
* Regular and recursive locks now accept an optional *timeout* argument to their
1572-
:meth:`acquire` method. (Contributed by Antoine Pitrou; :issue:`7316`.)
1572+
:meth:`~threading.Lock.acquire` method. (Contributed by Antoine Pitrou;
1573+
:issue:`7316`.)
15731574

15741575
* Similarly, :meth:`threading.Semaphore.acquire` also gained a *timeout*
15751576
argument. (Contributed by Torsten Landschoff; :issue:`850728`.)
@@ -1798,7 +1799,7 @@ Changes to Python's build process and to the C API include:
17981799
detection of cases where the conversion won't fit (:issue:`7767`).
17991800

18001801
* The :c:func:`PyUnicode_CompareWithASCIIString` now returns *not equal*
1801-
if the Python string in *NUL* terminated.
1802+
if the Python string is *NUL* terminated.
18021803

18031804
* There is a new function :c:func:`PyErr_NewExceptionWithDoc` that is
18041805
like :c:func:`PyErr_NewException` but allows a docstring to be specified.

0 commit comments

Comments
 (0)