← 返回首页
[3.11] gh-100428: Make int documentation more accurate (GH-100436) by miss-islington · Pull Request #100674 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

Merged
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-edfbf56-3.11
Jan 2, 2023
Merged

[3.11] gh-100428: Make int documentation more accurate (GH-100436)#100674
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-edfbf56-3.11

Conversation

miss-islington commented Jan 2, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor
  • 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 merged commit af136e9 into python:3.11 Jan 2, 2023
miss-islington deleted the backport-edfbf56-3.11 branch January 2, 2023 03:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.