]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100428: Make int documentation more accurate (GH-100436)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Jan 2023 03:21:58 +0000 (19:21 -0800)
committerGitHub <noreply@github.com>
Mon, 2 Jan 2023 03:21:58 +0000 (19:21 -0800)
commitaf136e987777a2e81b63a170a370667c48815ead
tree13d1c62f8ceb7bb160d82259994ccbffab28e2ae
parente7a2659b4c8d4f7ac045cd5b4b813b4fde9f67c1
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>
Doc/library/functions.rst