Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Oct 2, 2025

Basic requirements (all PEP Types)

  • Read and followed PEP 1 & PEP 12
  • File created from the latest PEP template
  • PEP has next available number, & set in filename (pep-NNNN.rst), PR title (PEP 123: <Title of PEP>) and PEP header
  • Title clearly, accurately and concisely describes the content in 79 characters or less
  • Core dev/PEP editor listed as Author or Sponsor, and formally confirmed their approval
  • Author, Status (Draft), Type and Created headers filled out correctly
  • PEP-Delegate, Topic, Requires and Replaces headers completed if appropriate
  • Required sections included
    • Abstract (first section)
    • Copyright (last section; exact wording from template required)
  • Code is well-formatted (PEP 7/PEP 8) and is in code blocks, with the right lexer names if non-Python
  • PEP builds with no warnings, pre-commit checks pass and content displays as intended in the rendered HTML
  • Authors/sponsor added to .github/CODEOWNERS for the PEP

Standards Track requirements

  • PEP topic discussed in a suitable venue with general agreement that a PEP is appropriate
  • Suggested sections included (unless not applicable)
    • Motivation
    • Rationale
    • Specification
    • Backwards Compatibility
    • Security Implications
    • How to Teach This
    • Reference Implementation
    • Rejected Ideas
    • Open Issues
  • Python-Version set to valid (pre-beta) future Python version, if relevant
  • Any project stated in the PEP as supporting/endorsing/benefiting from the PEP formally confirmed such
  • Right before or after initial merging, PEP discussion thread created and linked to in Discussions-To and Post-History

📚 Documentation preview 📚: https://pep-previews--4622.org.readthedocs.build/pep-0810/

@pablogsal pablogsal requested review from a team, DinoV and brettcannon as code owners October 2, 2025 20:55
@hugovk hugovk changed the title PEP 805: Explicit lazy imports PEP 810: Explicit lazy imports Oct 2, 2025
@python python deleted a comment from python-cla-bot bot Oct 2, 2025
@hugovk hugovk added the new-pep A new draft PEP submitted for initial review label Oct 2, 2025
Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a CODEOWNERS entry, and fill in the new PEP template.

I'll work on an initial review of the content this evening.

A

@pablogsal pablogsal requested a review from Yhg1s October 2, 2025 21:05
Copy link
Contributor

@willingc willingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a quick edit on the initial section before my flight was boarding. Will pick up the review in the next day or two.

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
@pablogsal
Copy link
Member Author

pablogsal commented Oct 2, 2025

I did a quick edit on the initial section before my flight was boarding. Will pick up the review in the next day or two.

Thanks a lot @willingc

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very exciting to see this! Left some clarifying questions.

Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seconding other comments, an exciting and very thorough PEP! I've left various comments, let me know if more detail is needed for any of them.

Finally on further formatting banalities, please wrap the text of the PEP to 79 characters at some point before we merge this, per PEPs 1/12.

A

Yhg1s and others added 4 commits October 3, 2025 21:15
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Yhg1s and others added 20 commits October 3, 2025 21:19
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@Yhg1s
Copy link
Member

Yhg1s commented Oct 3, 2025

Finally on further formatting banalities, please wrap the text of the PEP to 79 characters at some point before we merge this, per PEPs 1/12.

I've reflowed the entire thing (hopefully not breaking too much markup, but we'll see when the rebuild finishes.) I think some of your comments are proper discuss material or I'm not quite sure if I've addressed them adequately, so I've left them unresolved. Please resolve/remind as you see fit :)

@pablogsal
Copy link
Member Author

pablogsal commented Oct 3, 2025

I'm going to land the PEP because GitHub is crashing for me when addressing comments and suggestions. Additionally I want a final URL because some peeople are finding it confusing. PEP editors: please feel free to open a PR with your suggested changes (thanks a lot for them) if there are any of them missing or please feel free to comment here what we didn't address and we will make sure to update it.

Thanks for your understanding and thanks a lot for your excellent work ❤️

@pablogsal pablogsal enabled auto-merge (squash) October 3, 2025 20:36
@pablogsal pablogsal dismissed AA-Turner’s stale review October 3, 2025 20:36

Comments addressed

@pablogsal pablogsal merged commit fad5cd1 into python:main Oct 3, 2025
5 checks passed
@johnslavik
Copy link

johnslavik commented Oct 3, 2025

I added a PR with support for highlighting lazy imports in the REPL and I'll be investigating some confusing errors in the REPL I found

@pablogsal
Copy link
Member Author

pablogsal commented Oct 3, 2025

I added a PR with support for highlighting lazy imports in the REPL and I'll be investigating some confusing errors in the REPL I found

Thanks so much for your enthusiasm and the PR! Just to set expectations: the reference implementation is primarily for evaluating the proposal itself and isn't meant to be a finished product at this stage. If the PEP gets accepted, we'd love your help with the final implementation: that's when we'll be building it out properly. Appreciate your interest in this!

@johnslavik
Copy link

johnslavik commented Oct 4, 2025

I've reported a bunch of things that I found in the tracker. We can address them after the PEP is accepted. Thanks!

zklaus pushed a commit to zklaus/peps that referenced this pull request Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-pep A new draft PEP submitted for initial review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants