Skip to content

Commit 301eb4b

Browse files
Remove more mentions of other signs being ASCII from docs
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent 3c2e361 commit 301eb4b

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Doc/library/functions.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ are always available. They are listed here in alphabetical order.
785785

786786
If the argument is a string, it should contain a decimal number, optionally
787787
preceded by a sign, and optionally embedded in whitespace. The optional
788-
sign may be ``'+'`` (ASCII plus sign), ``'-'`` (ASCII hyphen minus) or ````
788+
sign may be ``'+'``, ``'-'`` or ````
789789
(Unicode minus sign, U+2212); a ``'+'`` sign has no effect on the value
790790
produced. The argument may also be a string representing a NaN
791791
(not-a-number), or positive or negative infinity.
@@ -834,8 +834,7 @@ are always available. They are listed here in alphabetical order.
834834

835835
.. versionchanged:: next
836836
``'−'`` (Unicode minus sign, U+2212) can be now used as an
837-
alternative to ``'-'`` (ASCII hyphen minus) for denoting
838-
negative sign.
837+
alternative to ``'-'`` for denoting negative sign.
839838

840839

841840
.. index::
@@ -1047,7 +1046,7 @@ are always available. They are listed here in alphabetical order.
10471046
If the argument is not a number or if *base* is given, then it must be a string,
10481047
:class:`bytes`, or :class:`bytearray` instance representing an integer
10491048
in radix *base*. Optionally, the string can be directly preceded (with no whitespaces
1050-
in between) by ``+`` (ASCII plus sign), ``-`` (ASCII hyphen minus) or ```` (Unicode
1049+
in between) by ``+``, ``-`` or ```` (Unicode
10511050
minus sign, U+2212), have leading zeros, be surrounded by whitespace,
10521051
and have single underscores interspersed between digits.
10531052

@@ -1093,8 +1092,7 @@ are always available. They are listed here in alphabetical order.
10931092

10941093
.. versionchanged:: next
10951094
:func:`int` now supports ```` (Unicode minus sign, U+2212)
1096-
as an alternative to ``-`` (ASCII hyphen minus) for denoting
1097-
negative integers.
1095+
as an alternative to ``-`` for denoting negative integers.
10981096

10991097
.. function:: isinstance(object, classinfo, /)
11001098

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ Notes:
360360
alternative conversions.
361361

362362
(4)
363-
float also accepts the strings "nan" and "inf" with an optional prefix ASCII plus
364-
sign "+" or ASCII hyphen minus "-" or Unicode minus sign "−" (U+2212) for Not a Number
363+
float also accepts the strings "nan" and "inf" with an optional prefix
364+
sign "+" or "-" or Unicode minus sign "−" (U+2212) for Not a Number
365365
(NaN) and positive or negative infinity.
366366

367367
(5)

0 commit comments

Comments
 (0)