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

Skip to content

Commit e5e1a98

Browse files
committed
Nits and todos
1 parent 3ad4675 commit e5e1a98

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

Doc/whatsnew/3.2.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,12 @@ Some smaller changes made to the core Python language are:
317317

318318
(From multiple contributors in :issue:`7475`.)
319319

320-
* String formatting for :func:`format` and :meth:`str.format` gained a new format
321-
character **#**. For integers in binary, octal, or hexadecimal, it causes
322-
the output to be prefixed with '0b', '0o', or '0x' respectively. For floats,
323-
complex, and Decimal, it causes the output to always have a decimal point
324-
even when no digits follow it.
320+
* String formatting for :func:`format` and :meth:`str.format` gained new
321+
capabilities for the format character **#**. Previously, for integers in
322+
binary, octal, or hexadecimal, it caused the output to be prefixed with '0b',
323+
'0o', or '0x' respectively. Now it can also handle floats, complex, and
324+
Decimal, causing the output to always have a decimal point even when no digits
325+
follow it.
325326

326327
>>> format(20, '#o')
327328
'0o24'
@@ -429,7 +430,7 @@ Some smaller changes made to the core Python language are:
429430

430431
(Added by Antoine Pitrou and Georg Brandl in :issue:`10093` and :issue:`477863`.)
431432

432-
* :class:`range` objects now support and *index* and *count* methods. This is
433+
* :class:`range` objects now support *index* and *count* methods. This is
433434
part of an effort to make more objects fully implement the :class:`collections.Sequence`
434435
:term:`abstract base class`. As a result, the language will have a more
435436
uniform API.
@@ -735,6 +736,8 @@ New, Improved, and Deprecated Modules
735736

736737
(Contributed by Rodolpho Eckhardt and Nick Coghlan, :issue:`10220`.)
737738

739+
.. XXX: Create a new section for all changes relating to context managers.
740+
.. XXX: Various ConfigParser changes
738741
.. XXX: Mention inspect.getattr_static (Michael Foord)
739742
.. XXX: Mention urllib.parse changes
740743
Issue 9873 (Nick Coghlan):

0 commit comments

Comments
 (0)