◐ Shell
clean mode source ↗

[3.11] gh-100428: Make int documentation more accurate (GH-100436) by miss-islington · Pull Request #100674 · python/cpython

@hauntsaninja @miss-islington

- 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 edfbf56)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>