Skip to content

Implement PEP 786: Precision and modulo-precision flag format specifiers for integer fields #146436

Closed as not planned

Description

@jb2170

Feature or enhancement

Proposal:

Issue for PR to implement PEP 786 so I can link to this issue in blurb in the PR.

Has this already been discussed elsewhere?

Forum discussions:

Implementation discussions:

Actual implementation:

PEPs repo:

Linked PRs

Activity

  1. jb2170 commented on Mar 25, 2026

    @jb2170
    ContributorAuthor

    Addressed by https://github.com/jb2170/cpython/tree/pep-786

    I'll rebase soon.

  2. changed the title [-]Implement precision and modulo-precision in string formatting for integer fields[/-] [+]Implement PEP 786: Precision and modulo-precision flag format specifiers for integer fields[/+] on Mar 25, 2026
  3. picnixz commented on Mar 25, 2026

    @picnixz
    Member

    As I mentioned on the PR:

    Can we avoid creating reference implementations on the main repo please? use a fork please. In addition, issues should be created once it's been discussed and accepted, not before.

  4. added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    pendingThe issue will be closed if no feedback is provided
    on Mar 25, 2026
  5. skirpichev commented on Mar 25, 2026

    @skirpichev
    Member

    I think, that pr might be kept, as a draft. It's already opened.

    But lets close this issue. The PEP wasn't even discussed. We can reopen, if it will be accepted.

  6. removed
    pendingThe issue will be closed if no feedback is provided
    on Mar 25, 2026
  7. gvanrossum commented on Mar 26, 2026

    @gvanrossum
    Member

    @jb2170 A link to the Discourse thread would be appreciated.

  8. jb2170 commented on Mar 26, 2026

    @jb2170
    ContributorAuthor

    @jb2170 A link to the Discourse thread would be appreciated.

    I've updated the OP to include the discussion thread 😄

    Edit 2026/04/09: Added the new PEP discussion thread too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions