diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-01-02 03:21:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 03:21:58 (GMT) |
commit | af136e987777a2e81b63a170a370667c48815ead (patch) | |
tree | 13d1c62f8ceb7bb160d82259994ccbffab28e2ae /Lib/contextlib.py | |
parent | e7a2659b4c8d4f7ac045cd5b4b813b4fde9f67c1 (diff) | |
download | cpython-af136e987777a2e81b63a170a370667c48815ead.zip cpython-af136e987777a2e81b63a170a370667c48815ead.tar.gz cpython-af136e987777a2e81b63a170a370667c48815ead.tar.bz2 |
gh-100428: Make int documentation more accurate (GH-100436)
- Remove first link to lexical definition of integer literal, since it
doesn't apply (differs in handling of leading zeros, base needs to be
explicitly specified, unicode digits are allowed)
- Better describe handling of leading zeros, unicode digits, underscores
- Base 0 does not work exactly as like a code literal, since it allows
Unicode digits. Link code literal to lexical definition of integer
literal.
(cherry picked from commit edfbf56f4ca6588dfd20b53f534a4465e43c82bd)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Lib/contextlib.py')
0 files changed, 0 insertions, 0 deletions