◐ Shell
clean mode source ↗

gh-100428: Make int documentation more accurate by hauntsaninja · Pull Request #100436 · python/cpython

- 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 and unicode digits
- 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.

@bedevere-bot mentioned this pull request

Dec 22, 2022

@hauntsaninja

mdickinson

mdickinson

@hauntsaninja

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jan 2, 2023
- 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>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jan 2, 2023
- 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>

miss-islington added a commit that referenced this pull request

Jan 2, 2023
- 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>

miss-islington added a commit that referenced this pull request

Jan 2, 2023
- 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>

hauntsaninja added a commit to hauntsaninja/cpython that referenced this pull request

Apr 30, 2023

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 1, 2023