Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
36.8k
Star
77.3k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
gh-157757: Fix to make
lazy import a.b as c
import the module
a.b
- #158092
#158092
Merged
pablogsal
merged 7 commits into
python:main
python/cpython:main
from
brittanyrey:b-gh157757-lazy-dotted-as
brittanyrey/cpython:b-gh157757-lazy-dotted-as
Copy head branch name to clipboard
Sep 26, 2026
Conversation
Commits
7
(7)
Checks
Files changed
Merged
gh-157757: Fix to make
lazy import a.b as c
import the module
a.b
#158092
pablogsal
merged 7 commits into
python:main
python/cpython:main
from
brittanyrey:b-gh157757-lazy-dotted-as
brittanyrey/cpython:b-gh157757-lazy-dotted-as
Copy head branch name to clipboard
Commits
Commits on Sep 26, 2026
Import the module a lazy `import a.b as c` names
Show description for 0090e4b
brittanyrey
authored and
pablogsal
committed
0090e4b
View commit details
Copy full SHA for 0090e4b
Browse repository at this point
Stop excluding test_trace from the lazy-imports-all run
Show description for ba730e1
brittanyrey
authored and
pablogsal
committed
ba730e1
View commit details
Copy full SHA for ba730e1
Browse repository at this point
Rename lz_submodule to lz_dotted_as and trim the comments
Show description for 1226e44
brittanyrey
authored and
pablogsal
committed
1226e44
View commit details
Copy full SHA for 1226e44
Browse repository at this point
Chain lazy IMPORT_FROM placeholders instead of flagging dotted imports
Show description for 855d3f8
brittanyrey
authored and
pablogsal
committed
855d3f8
View commit details
Copy full SHA for 855d3f8
Browse repository at this point
Chain every deferred IMPORT_FROM onto the previous placeholder
Show description for 867e6ed
brittanyrey
authored and
pablogsal
committed
867e6ed
View commit details
Copy full SHA for 867e6ed
Browse repository at this point
Treat an empty fromlist on a lazy import placeholder as no fromlist
Show description for 5f48508
brittanyrey
authored and
pablogsal
committed
5f48508
View commit details
Copy full SHA for 5f48508
Browse repository at this point
gh-157757: Preserve empty fromlists for custom import hooks
pablogsal
committed
48244f1
View commit details
Copy full SHA for 48244f1
Browse repository at this point
You can’t perform that action at this time.