Sitelet
https://github.com/python/cpython/commits/3.7/Lib/importlib/__init__.py
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.8k
(2.8k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
importlib
__init__.py
on
3.7
User selector
All users
Datepicker
All time
Commit history
Commits on May 24, 2017
bpo-29851: Have importlib.reload() raise ImportError if the module's spec is not found (GH-972)
Garvit Khatri
authored and
brettcannon
committed
9498782
View commit details
Copy full SHA for 9498782
View code at this point
Browse repository at this point
Commits on Mar 25, 2017
bpo-29862: Fix grammar in importlib.reload() exception (GH-809)
mandeep
authored and
Mariatta
committed
9f0aa48
View commit details
Copy full SHA for 9f0aa48
View code at this point
Browse repository at this point
Commits on Feb 16, 2017
bpo-29576: add explicit deprecation for importlib.abc.find_loader() and find_module() (GH-32)
Carreau
authored and
brettcannon
committed
1d4601c
View commit details
Copy full SHA for 1d4601c
View code at this point
Browse repository at this point
Commits on May 16, 2015
Issue #24192: Fix namespace package imports.
ericsnowcurrently
committed
183a941
View commit details
Copy full SHA for 183a941
View code at this point
Browse repository at this point
Commits on May 3, 2015
Issue #23911: Move path-based bootstrap code to a separate frozen module.
ericsnowcurrently
committed
32439d6
View commit details
Copy full SHA for 32439d6
View code at this point
Browse repository at this point
Commits on Nov 21, 2014
Issue #19720: Suppressed context for some exceptions in importlib.
serhiy-storchaka
committed
c446405
View commit details
Copy full SHA for c446405
View code at this point
Browse repository at this point
Commits on May 30, 2014
Issue #20383: Introduce importlib.util.module_from_spec().
Show description for 2a17bde
brettcannon
committed
2a17bde
View commit details
Copy full SHA for 2a17bde
View code at this point
Browse repository at this point
Commits on Mar 21, 2014
Issue #20884: Don't assume in importlib.__init__ that __file__ is
Show description for a00c240
brettcannon
committed
a00c240
View commit details
Copy full SHA for a00c240
View code at this point
Browse repository at this point
Commits on Jan 25, 2014
Issue 19944: Fix importlib.find_spec() so it imports parents as needed.
Show description for 6029e08
ericsnowcurrently
committed
6029e08
View commit details
Copy full SHA for 6029e08
View code at this point
Browse repository at this point
Commits on Jan 7, 2014
Issue 19713: Add PEP 451-related deprecations.
ericsnowcurrently
committed
1500d49
View commit details
Copy full SHA for 1500d49
View code at this point
Browse repository at this point
Commits on Dec 10, 2013
Issue 19851: Fix a regression in reloading submodules.
ericsnowcurrently
committed
c1e7c74
View commit details
Copy full SHA for c1e7c74
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 Nov 1, 2013
Issue #19413: Restore pre-3.3 reload() semantics of re-finding modules.
ericsnowcurrently
committed
cdf6012
View commit details
Copy full SHA for cdf6012
View code at this point
Browse repository at this point
Commits on Aug 15, 2013
Closes issue #18698: ensure importlib.reload() returns the module out of sys.modules.
ericsnowcurrently
committed
8e45540
View commit details
Copy full SHA for 8e45540
View code at this point
Browse repository at this point
Commits on Aug 12, 2013
Closes issue #18598: Have the exception message for
Show description for e1f1597
brettcannon
committed
e1f1597
View commit details
Copy full SHA for e1f1597
View code at this point
Browse repository at this point
Commits on Aug 10, 2013
#18681: merge with 3.3.
ezio-melotti
committed
fbcf4d7
View commit details
Copy full SHA for fbcf4d7
View code at this point
Browse repository at this point
Commits on Jul 4, 2013
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
brettcannon
committed
cd171c8
View commit details
Copy full SHA for cd171c8
View code at this point
Browse repository at this point
Commits on Jun 14, 2013
Issue #18193: Add importlib.reload(), documenting (but not
Show description for 3fe35e6
brettcannon
committed
3fe35e6
View commit details
Copy full SHA for 3fe35e6
View code at this point
Browse repository at this point
Issue #18200: Update the stdlib (except tests) to use
Show description for 0a14066
brettcannon
committed
0a14066
View commit details
Copy full SHA for 0a14066
View code at this point
Browse repository at this point
Commits on Mar 13, 2013
Issue #17099: Have importlib.find_loader() raise ValueError when
Show description for 3279923
brettcannon
committed
3279923
View commit details
Copy full SHA for 3279923
View code at this point
Browse repository at this point
Commits on Nov 17, 2012
Issue #16489: Make it clearer that importlib.find_loader() requires
Show description for 56b4ca7
brettcannon
committed
56b4ca7
View commit details
Copy full SHA for 56b4ca7
View code at this point
Browse repository at this point
Commits on Aug 10, 2012
Issue #15502: Finish bringing importlib.abc in line with the current
Show description for f4dc920
brettcannon
committed
f4dc920
View commit details
Copy full SHA for f4dc920
View code at this point
Browse repository at this point
Commits on Jul 20, 2012
Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap
ncoghlan
committed
be7e49f
View commit details
Copy full SHA for be7e49f
View code at this point
Browse repository at this point
Commits on Jul 4, 2012
Issue #15210: Greatly simplify the test for supporting importlib
Show description for 53089c6
brettcannon
committed
53089c6
View commit details
Copy full SHA for 53089c6
View code at this point
Browse repository at this point
Commits on Jul 2, 2012
Issue #15210: If _frozen_importlib is not found in sys.modules by
Show description for 8e2f556
brettcannon
committed
8e2f556
View commit details
Copy full SHA for 8e2f556
View code at this point
Browse repository at this point
Commits on Jun 17, 2012
Issue #14657: The frozen instance of importlib used for bootstrap is now also the module imported as importlib._bootstrap.
pitrou
committed
48114b9
View commit details
Copy full SHA for 48114b9
View code at this point
Browse repository at this point
Commits on May 12, 2012
Issue #13959: Introduce importlib.find_loader().
Show description for ee78a2b
brettcannon
committed
ee78a2b
View commit details
Copy full SHA for ee78a2b
View code at this point
Browse repository at this point
Commits on Feb 27, 2012
Update importlib.invalidate_caches() to be more general.
brettcannon
committed
b46a179
View commit details
Copy full SHA for b46a179
View code at this point
Browse repository at this point
Commits on Feb 20, 2012
Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function.
Show description for c541f8e
pitrou
committed
c541f8e
View commit details
Copy full SHA for c541f8e
View code at this point
Browse repository at this point
Commits on Feb 8, 2012
Move setup code from importlib.__init__ to
Show description for 354c26e
brettcannon
committed
354c26e
View commit details
Copy full SHA for 354c26e
View code at this point
Browse repository at this point
Commits on Jan 27, 2012
Relocate importlib._case_ok to importlib._bootstrap.
Show description for 51d14f8
brettcannon
committed
51d14f8
View commit details
Copy full SHA for 51d14f8
View code at this point
Browse repository at this point
Commits on Jan 25, 2012
Move some code from importlib.__init__ to importlib._bootstrap that
Show description for c264e3e
brettcannon
committed
c264e3e
View commit details
Copy full SHA for c264e3e
View code at this point
Browse repository at this point
Commits on Oct 28, 2011
Simplify and remove few dependencies on 'errno', thanks to PEP 3151.
florentx
committed
68f71a3
View commit details
Copy full SHA for 68f71a3
View code at this point
Browse repository at this point
Commits on Jul 3, 2010
Make importlib.abc.SourceLoader the primary mechanism for importlib.
Show description for 61b1425
brettcannon
committed
61b1425
View commit details
Copy full SHA for 61b1425
View code at this point
Browse repository at this point
Commits on Mar 15, 2009
A few more docstring/API cleanups for importlib.
brettcannon
committed
7aa21f7
View commit details
Copy full SHA for 7aa21f7
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.