Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
riplotus
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Doc
reference
import.rst
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 7, 2016
Issue #15767: Use ModuleNotFoundError.
ericsnowcurrently
committed
46f97b8
View commit details
Copy full SHA for 46f97b8
View code at this point
Browse repository at this point
Commits on Aug 12, 2016
Merge for issue #27712
brettcannon
committed
3f63483
View commit details
Copy full SHA for 3f63483
View code at this point
Browse repository at this point
Issue #27712: Fix some typos in the import docs.
Show description for 6336fb2
brettcannon
committed
6336fb2
View commit details
Copy full SHA for 6336fb2
View code at this point
Browse repository at this point
Commits on Jan 22, 2016
Issue #25791: Warn when __package__ != __spec__.parent.
Show description for 849113a
brettcannon
committed
849113a
View commit details
Copy full SHA for 849113a
View code at this point
Browse repository at this point
Commits on Jan 15, 2016
Issue #25791: Raise an ImportWarning when __spec__ or __package__ are
Show description for 63b8505
brettcannon
committed
63b8505
View commit details
Copy full SHA for 63b8505
View code at this point
Browse repository at this point
Commits on Dec 4, 2015
Issue #25500: Fix the language reference to not claim that import
Show description for f4f25fe
brettcannon
committed
f4f25fe
View commit details
Copy full SHA for f4f25fe
View code at this point
Browse repository at this point
Commits on Jul 25, 2015
Issue #24713: Use importlib.reload() in import reference document.
Show description for a1bddad
berkerpeksag
committed
a1bddad
View commit details
Copy full SHA for a1bddad
View code at this point
Browse repository at this point
Issue #24713: Use importlib.reload() in import reference document.
Show description for 7e732a7
berkerpeksag
committed
7e732a7
View commit details
Copy full SHA for 7e732a7
View code at this point
Browse repository at this point
Commits on Apr 22, 2015
Issue #24029: Document the name binding behavior for submodule imports.
warsaw
committed
b5a3d9b
View commit details
Copy full SHA for b5a3d9b
View code at this point
Browse repository at this point
Issue #24029: Document the name binding behavior for submodule imports.
warsaw
committed
2097f53
View commit details
Copy full SHA for 2097f53
View code at this point
Browse repository at this point
Commits on Apr 13, 2015
Issue #23731: Implement PEP 488.
Show description for f299abd
brettcannon
committed
f299abd
View commit details
Copy full SHA for f299abd
View code at this point
Browse repository at this point
Commits on Jan 9, 2015
Issue #23014: Make importlib.abc.Loader.create_module() required when
Show description for 02d8454
brettcannon
committed
02d8454
View commit details
Copy full SHA for 02d8454
View code at this point
Browse repository at this point
Commits on Nov 21, 2014
Issue #22834: Have import suppress FileNotFoundError when the current
Show description for b6e2556
brettcannon
committed
b6e2556
View commit details
Copy full SHA for b6e2556
View code at this point
Browse repository at this point
Commits on Nov 7, 2014
Issue #22242: Try to make some import-related loader details clearer.
Show description for d0c4ef1
brettcannon
committed
d0c4ef1
View commit details
Copy full SHA for d0c4ef1
View code at this point
Browse repository at this point
Commits on Oct 29, 2014
Fixing broken links in doc, part 3: the rest
birkenfeld
committed
525d355
View commit details
Copy full SHA for 525d355
View code at this point
Browse repository at this point
Use https:// URLs when referring to python.org hosts.
birkenfeld
committed
e73778c
View commit details
Copy full SHA for e73778c
View code at this point
Browse repository at this point
Commits on Mar 29, 2014
Issue #19697: document more __main__.__spec__ quirks
ncoghlan
committed
9aa00d1
View commit details
Copy full SHA for 9aa00d1
View code at this point
Browse repository at this point
Issue #19697: Document cases where __main__.__spec__ is None.
ericsnowcurrently
committed
e50f9aa
View commit details
Copy full SHA for e50f9aa
View code at this point
Browse repository at this point
Commits on Jan 5, 2014
Regenerated pydoc/topics.py, and fix a "suspicious" doc error.
larryhastings
committed
bfd715e
View commit details
Copy full SHA for bfd715e
View code at this point
Browse repository at this point
Commits on Dec 23, 2013
Removed spaces before commas and periods.
serhiy-storchaka
committed
2a61452
View commit details
Copy full SHA for 2a61452
View code at this point
Browse repository at this point
Commits on Dec 17, 2013
Issue #19713: Fix mistakes in the import page of language reference.
Show description for 7cff4cd
ericsnowcurrently
committed
7cff4cd
View commit details
Copy full SHA for 7cff4cd
View code at this point
Browse repository at this point
Commits on Nov 24, 2013
Fix a few markup problems in the new import doc.
birkenfeld
committed
472a65a
View commit details
Copy full SHA for 472a65a
View code at this point
Browse repository at this point
Commits on Nov 22, 2013
Implement PEP 451 (ModuleSpec).
ericsnowcurrently
committed
b523f84
View commit details
Copy full SHA for b523f84
View code at this point
Browse repository at this point
Commits on Jul 4, 2013
Issue #15767: Revert 3a50025f1900 for ModuleNotFoundError
brettcannon
committed
82da888
View commit details
Copy full SHA for 82da888
View code at this point
Browse repository at this point
Commits on Jun 13, 2013
Issue #15767: Touch up ModuleNotFoundError usage by import.
Show description for 8f5ac51
brettcannon
committed
8f5ac51
View commit details
Copy full SHA for 8f5ac51
View code at this point
Browse repository at this point
Commits on May 25, 2013
Mention __cached__ in the import ref.
brettcannon
committed
4b4e38e
View commit details
Copy full SHA for 4b4e38e
View code at this point
Browse repository at this point
merge
brettcannon
committed
b961955
View commit details
Copy full SHA for b961955
View code at this point
Browse repository at this point
Commits on May 4, 2013
#17115,17116: Have modules initialize the __package__ and __loader__
Show description for 4c14b5d
brettcannon
committed
4c14b5d
View commit details
Copy full SHA for 4c14b5d
View code at this point
Browse repository at this point
Commits on Mar 28, 2013
Merge with 3.3.
birkenfeld
committed
1bab713
View commit details
Copy full SHA for 1bab713
View code at this point
Browse repository at this point
Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text.
birkenfeld
committed
44ea77b
View commit details
Copy full SHA for 44ea77b
View code at this point
Browse repository at this point
Commits on Mar 13, 2013
Issue #17117: Have both import itself and importlib.util.set_loader()
Show description for 4802bec
brettcannon
committed
4802bec
View commit details
Copy full SHA for 4802bec
View code at this point
Browse repository at this point
Commits on Nov 20, 2012
- Issue #16514: Fix regression causing a traceback when sys.path[0] is None
Show description for 82c1c78
warsaw
committed
82c1c78
View commit details
Copy full SHA for 82c1c78
View code at this point
Browse repository at this point
Commits on Nov 15, 2012
Issue #16144: Fix misleading sentence in reference/import.
Show description for e2cf03e
asvetlov
committed
e2cf03e
View commit details
Copy full SHA for e2cf03e
View code at this point
Browse repository at this point
Commits on Aug 20, 2012
s/path importer/path based finder/ (because the path based finder is not an importer and the simpler 'path finder' is too ambiguous)
ncoghlan
committed
1685db0
View commit details
Copy full SHA for 1685db0
View code at this point
Browse repository at this point
Commits on Aug 11, 2012
Fix markup errors and update pydoc topics.
birkenfeld
committed
a81b481
View commit details
Copy full SHA for a81b481
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.