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
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.7k
(2.7k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
test
test_import
data
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 28, 2026
gh-145334: Make lazy import tests discoverable (#145336)
johnslavik
authored
a66d518
View commit details
Copy full SHA for a66d518
View code at this point
Browse repository at this point
Commits on Feb 25, 2026
Fix compileall in lazy imports test data with bad syntax (#145221)
FFY00
authored
56b7dc4
View commit details
Copy full SHA for 56b7dc4
View code at this point
Browse repository at this point
Fix "lazy from (...) import (...)" tests (#145213)
FFY00
authored
80b2b88
View commit details
Copy full SHA for 80b2b88
View code at this point
Browse repository at this point
Commits on Feb 12, 2026
gh-142349: Implement PEP 810 - Explicit lazy imports (#142351)
Show description for 46d5106
4 people
authored
46d5106
View commit details
Copy full SHA for 46d5106
View code at this point
Browse repository at this point
Commits on Dec 11, 2025
GH-65961: Stop setting `__cached__` on modules (GH-142165)
brettcannon
authored
af18572
View commit details
Copy full SHA for af18572
View code at this point
Browse repository at this point
Commits on Oct 30, 2025
gh-135801: Improve filtering by module in warn_explicit() without module argument (GH-140151)
Show description for 6826166
serhiy-storchaka
authored
6826166
View commit details
Copy full SHA for 6826166
View code at this point
Browse repository at this point
Commits on Sep 20, 2024
gh-123880: Allow recursive import of single-phase-init modules (GH-123950)
Show description for aee219f
3 people
authored
aee219f
View commit details
Copy full SHA for aee219f
View code at this point
Browse repository at this point
Commits on Apr 30, 2024
gh-117860: Add tests for resolving names when import rebind names (GH-118176)
Show description for c0eaa23
serhiy-storchaka
authored
c0eaa23
View commit details
Copy full SHA for c0eaa23
View code at this point
Browse repository at this point
Commits on Dec 21, 2023
gh-95754: Better AttributeError on partially initialised module (#112577)
Show description for 61e8184
hauntsaninja
and
serhiy-storchaka
authored
61e8184
View commit details
Copy full SHA for 61e8184
View code at this point
Browse repository at this point
Commits on Dec 11, 2023
gh-108303: Move `double_const` to `test_import` where it belongs (#112108)
sobolevn
authored
0738b9a
View commit details
Copy full SHA for 0738b9a
View code at this point
Browse repository at this point
Commits on Jul 24, 2021
bpo-44717: improve AttributeError on circular imports of submodules (GH-27338)
FFY00
authored
0a8ae8a
View commit details
Copy full SHA for 0a8ae8a
View code at this point
Browse repository at this point
Revert "bpo-44717: improve AttributeError on circular imports of submodules (GH-27299)" (GH-27331)
Show description for 3eae8f2
pablogsal
authored
3eae8f2
View commit details
Copy full SHA for 3eae8f2
View code at this point
Browse repository at this point
bpo-44717: improve AttributeError on circular imports of submodules (GH-27299)
Show description for 8072a11
FFY00
and
ambv
authored
8072a11
View commit details
Copy full SHA for 8072a11
View code at this point
Browse repository at this point
Commits on Jan 23, 2020
bpo-39336: Allow packages to not let their child modules be set on them (#18006)
Show description for 9b6fec4
DinoV
authored
9b6fec4
View commit details
Copy full SHA for 9b6fec4
View code at this point
Browse repository at this point
Commits on Sep 9, 2019
bpo-20490: Improve circular import error message (GH-15308)
asottile
authored and
zooba
committed
65366bc
View commit details
Copy full SHA for 65366bc
View code at this point
Browse repository at this point
Commits on Oct 30, 2018
bpo-33237: Improve AttributeError message for partially initialized module. (GH-6398)
serhiy-storchaka
authored
3e429dc
View commit details
Copy full SHA for 3e429dc
View code at this point
Browse repository at this point
Commits on Jul 12, 2017
bpo-30876: Relative import from unloaded package now reimports the package (#2639)
Show description for 8a9cd20
serhiy-storchaka
authored
8a9cd20
View commit details
Copy full SHA for 8a9cd20
View code at this point
Browse repository at this point
Commits on Jul 6, 2017
bpo-30814: Fixed a race condition when import a submodule from a package. (#2580)
serhiy-storchaka
authored
b4baace
View commit details
Copy full SHA for b4baace
View code at this point
Browse repository at this point
Commits on May 9, 2017
bpo-30024: Circular imports involving absolute imports with binding (#1264)
Show description for f93234b
serhiy-storchaka
authored
f93234b
View commit details
Copy full SHA for f93234b
View code at this point
Browse repository at this point
Commits on Oct 13, 2014
Whitespace
pitrou
committed
44fff77
View commit details
Copy full SHA for 44fff77
View code at this point
Browse repository at this point
Issue #17636: Circular imports involving relative imports are now supported.
pitrou
committed
0373a10
View commit details
Copy full SHA for 0373a10
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.