]> 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:50 +0000 (19:21 -0800)
committerGitHub <noreply@github.com>
Mon, 2 Jan 2023 03:21:50 +0000 (19:21 -0800)
commitc92c5513b3e9b9cadd3e337bb9b4141cae09ec1d
treef8a00f202cc686459efa87b83609852fc39bc90c
parent8e386deee9919a10a4604eaa54f620cd7eef022d
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