Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.10] gh-100428: Make int documentation more accurate (GH-100436) #100675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-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-islington miss-islington merged commit c92c551 into python:3.10 Jan 2, 2023
@miss-islington miss-islington deleted the backport-edfbf56-3.10 branch January 2, 2023 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.