Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commented 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

- 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-islingtonmiss-islington merged commit af136e9 into python:3.11Jan 2, 2023
@miss-islingtonmiss-islington deleted the backport-edfbf56-3.11 branch January 2, 2023 03:22
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@hauntsaninja@bedevere-bot