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

Skip to content

Commit 51e2107

Browse files
committed
Fix typos and markup.
1 parent 5fc850b commit 51e2107

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

Doc/whatsnew/3.2.rst

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ points:
393393
bytes to native strings using ``h.encode('utf-8').decode('latin-1')``.
394394

395395
* Values yielded by an application or sent using the :meth:`write` method
396-
must be byte strings. The :func:`start_response` function and environ
397-
must use native strings. The two cannot be mixed.
396+
must be byte strings. The :func:`start_response` function and environ
397+
must use native strings. The two cannot be mixed.
398398

399399
For server implementers writing CGI-to-WSGI pathways or other CGI-style
400400
protocols, the users must to be able access the environment using native strings
@@ -437,7 +437,7 @@ Some smaller changes made to the core Python language are:
437437
optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
438438
ignore_environment=0, verbose=0, bytes_warning=0, quiet=1)
439439

440-
(Contributed by Marcin Wojdyr in issue:`1772833`).
440+
(Contributed by Marcin Wojdyr in :issue:`1772833`).
441441

442442
* The :func:`hasattr` function works by calling :func:`getattr` and detecting
443443
whether an exception is raised. This technique allows it to detect methods
@@ -498,7 +498,7 @@ Some smaller changes made to the core Python language are:
498498
(See :issue:`4617`.)
499499

500500
* The internal :c:type:`structsequence` tool now creates subclasses of tuple.
501-
This means that C generated structures like those returned by :func:`os.stat`,
501+
This means that C structures like those returned by :func:`os.stat`,
502502
:func:`time.gmtime`, and :func:`sys.version_info` now work like a
503503
:term:`named tuple` and now work with functions and methods that
504504
expect a tuple as an argument. The is a big step forward in making the C
@@ -591,9 +591,8 @@ mcbs encoding, locale-aware encodings, or UTF-8.
591591
Another significant win is the addition of substantially better support for
592592
*SSL* connections and security certificates.
593593

594-
In addition, more functions and classes now have a :term:`context manager` to
595-
support convenient and reliable resource clean-up using the
596-
:keyword:`with`-statement.
594+
In addition, more classes now implement a :term:`context manager` to support
595+
convenient and reliable resource clean-up using the :keyword:`with`-statement.
597596

598597
email
599598
-----
@@ -1014,7 +1013,7 @@ zero-padded file objects.
10141013

10151014
The :mod:`gzip` module also gains the :func:`~gzip.compress` and
10161015
:func:`~gzip.decompress` functions for easier in-memory compression and
1017-
decompression. Keep in mind that text needs to be encoded in to :class:`bytes`
1016+
decompression. Keep in mind that text needs to be encoded as :class:`bytes`
10181017
before compressing and decompressing:
10191018

10201019
>>> s = 'Three shall be the number thou shalt count, '
@@ -1373,7 +1372,7 @@ The :mod:`pdb` debugger module gained a number of usability improvements:
13731372
* A :file:`.pdbrc` script file can contain ``continue`` and ``next`` commands
13741373
that continue debugging.
13751374
* The :class:`Pdb` class constructor now accepts a *nosigint* argument.
1376-
* New commands: ``l(list)``, ``ll(long list`` and ``source`` for
1375+
* New commands: ``l(list)``, ``ll(long list)`` and ``source`` for
13771376
listing source code.
13781377
* New commands: ``display`` and ``undisplay`` for showing or hiding
13791378
the value of an expression if it has changed.
@@ -1634,10 +1633,10 @@ A table of quick links has been added to the top of lengthy sections such as
16341633
accompanied by tables of cheatsheet-style summaries to provide an overview and
16351634
memory jog without having to read all of the docs.
16361635

1637-
In some cases, the pure Python source code can be helpful adjunct to the docs,
1638-
so now some modules feature quick links to the latest version of the source
1639-
code. For example, the :mod:`functools` module documentation has a quick link
1640-
at the top labeled: *Source code* :source:`Lib/functools.py`.
1636+
In some cases, the pure Python source code can be a helpful adjunct to the
1637+
documentation, so now many modules now feature quick links to the latest version
1638+
of the source code. For example, the :mod:`functools` module documentation has
1639+
a quick link at the top labeled: **Source code** :source:`Lib/functools.py`.
16411640

16421641
The docs now contain more examples and recipes. In particular, :mod:`re` module
16431642
has an extensive section, :ref:`re-examples`. Likewise, the :mod:`itertools`
@@ -1783,7 +1782,7 @@ require changes to your code:
17831782
* :class:`bytearray` objects can no longer be used as filenames; instead,
17841783
they should be converted to :class:`bytes`.
17851784

1786-
* PyArg_Parse*() functions:
1785+
* ``PyArg_Parse*()`` functions:
17871786

17881787
* "t#" format has been removed: use "s#" or "s*" instead
17891788
* "w" and "w#" formats has been removed: use "w*" instead
@@ -1802,7 +1801,7 @@ require changes to your code:
18021801
``random.seed(s, version=1)``.
18031802

18041803
* The previously deprecated :func:`string.maketrans` function has been removed
1805-
in favor of the static method :meth:`bytes.maketrans` and
1804+
in favor of the static methods :meth:`bytes.maketrans` and
18061805
:meth:`bytearray.maketrans`. This change solves the confusion around which
18071806
types were supported by the :mod:`string` module. Now, :class:`str`,
18081807
:class:`bytes`, and :class:`bytearray` each have their own **maketrans** and

0 commit comments

Comments
 (0)