File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1561,15 +1561,15 @@ are always available. They are listed here in alphabetical order.
1561
1561
1562
1562
.. function :: ord(character, /)
1563
1563
1564
- The argument must be a one-character string or a :term : `bytes-like object `
1565
- of length 1.
1564
+ The argument must be a one-character string or a :class : `bytes ` or
1565
+ :class: ` bytearray ` object of length 1.
1566
1566
If it is a one-character string, return an integer
1567
1567
representing the Unicode code point of that character. For example,
1568
1568
``ord('a') `` returns the integer ``97 `` and ``ord('€') `` (Euro sign)
1569
1569
returns ``8364 ``. This is the inverse of :func: `chr `.
1570
1570
1571
- If the argument is a bytes-like object of length 1, return an integer value
1572
- of its element.
1571
+ If the argument is a :class: ` ! bytes` or :class: ` !bytearray ` object of
1572
+ length 1, return an integer value of its element.
1573
1573
1574
1574
1575
1575
.. function :: pow(base, exp, mod=None)
You can’t perform that action at this time.
0 commit comments