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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
pkgutil.py
on
3.6
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 8, 2016
Issue #17211: Yield a namedtuple in pkgutil.
Show description for d5f9223
ericsnowcurrently
committed
d5f9223
View commit details
Copy full SHA for d5f9223
View code at this point
Browse repository at this point
Commits on Sep 6, 2016
[merge from 3.5] - Update pkgutil docs to reference appropriate finder and loader object documentation.
Show description for 56b4872
orsenthil
committed
56b4872
View commit details
Copy full SHA for 56b4872
View code at this point
Browse repository at this point
Update pkgutil docs to reference appropriate finder and loader object documentation.
Show description for 4672060
orsenthil
committed
4672060
View commit details
Copy full SHA for 4672060
View code at this point
Browse repository at this point
Commits on Jul 8, 2016
Issue #26896: Disambiguate uses of "importer" with "finder".
Show description for fdcdd9e
brettcannon
committed
fdcdd9e
View commit details
Copy full SHA for fdcdd9e
View code at this point
Browse repository at this point
Commits on Jun 12, 2016
Merge 3.5, issue #14209
ambv
committed
34ad2ef
View commit details
Copy full SHA for 34ad2ef
View code at this point
Browse repository at this point
Issue #14209: pkgutil.iter_zipimport_modules ignores the prefix for packages
Show description for 0d18c15
ambv
committed
0d18c15
View commit details
Copy full SHA for 0d18c15
View code at this point
Browse repository at this point
Commits on Oct 16, 2015
Upgrade the imp module's deprecation to DeprecationWarning.
brettcannon
committed
c0d91af
View commit details
Copy full SHA for c0d91af
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 May 23, 2014
Issue #14710: Fix both pkgutil.find_loader() and get_loader() to not
Show description for 8447c70
brettcannon
committed
8447c70
View commit details
Copy full SHA for 8447c70
View code at this point
Browse repository at this point
Commits on Apr 19, 2014
Issue #21200: Return None from pkgutil.get_loader() when __spec__ is missing.
ericsnowcurrently
committed
658af31
View commit details
Copy full SHA for 658af31
View code at this point
Browse repository at this point
Commits on Mar 4, 2014
Close #20839: pkgutil.find_loader now uses importlib.util.find_spec
ncoghlan
committed
62b4b9e
View commit details
Copy full SHA for 62b4b9e
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
Remove more usage of APIs deprecated by PEP 451.
ericsnowcurrently
committed
02b9f9d
View commit details
Copy full SHA for 02b9f9d
View code at this point
Browse repository at this point
Commits on Jan 4, 2014
Issue #19708: Update pkgutil to use the new importer APIs.
ericsnowcurrently
committed
37148b2
View commit details
Copy full SHA for 37148b2
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 Oct 26, 2013
Close #19409: add missing import in pkgutil
ncoghlan
committed
862542e
View commit details
Copy full SHA for 862542e
View code at this point
Browse repository at this point
Commits on Jun 16, 2013
Issue #17177: The imp module is pending deprecation.
Show description for e4f41de
brettcannon
committed
e4f41de
View commit details
Copy full SHA for e4f41de
View code at this point
Browse repository at this point
Commits on Jun 5, 2013
Add reference implementation for PEP 443
Show description for 6f69251
ambv
committed
6f69251
View commit details
Copy full SHA for 6f69251
View code at this point
Browse repository at this point
Commits on Apr 14, 2013
Merge fix for #16163 from 3.3
ncoghlan
committed
685bd4a
View commit details
Copy full SHA for 685bd4a
View code at this point
Browse repository at this point
Close issue #16163: handle submodules in pkgutil.iter_importers
ncoghlan
committed
c4e0d98
View commit details
Copy full SHA for c4e0d98
View code at this point
Browse repository at this point
Commits on Feb 12, 2013
modernize some modules' code by using with statement around open()
giampaolo
committed
2f50aaf
View commit details
Copy full SHA for 2f50aaf
View code at this point
Browse repository at this point
Commits on Dec 25, 2012
Replace IOError with OSError (#16715)
asvetlov
committed
f7a17b4
View commit details
Copy full SHA for f7a17b4
View code at this point
Browse repository at this point
Commits on Dec 19, 2012
replace threw with raised (#16714)
asvetlov
committed
fd43b4d
View commit details
Copy full SHA for fd43b4d
View code at this point
Browse repository at this point
replace threw with raised (#16714)
asvetlov
committed
1f415cf
View commit details
Copy full SHA for 1f415cf
View code at this point
Browse repository at this point
Commits on Dec 18, 2012
Issue #16714: use 'raise' exceptions, don't 'throw'.
Show description for a191959
asvetlov
committed
a191959
View commit details
Copy full SHA for a191959
View code at this point
Browse repository at this point
Issue #16714: use 'raise' exceptions, don't 'throw'.
Show description for 5b89840
asvetlov
committed
5b89840
View commit details
Copy full SHA for 5b89840
View code at this point
Browse repository at this point
Commits on Oct 7, 2012
Issue #16120: Use |yield from| in stdlib.
Show description for 2aa5f3c
asvetlov
committed
2aa5f3c
View commit details
Copy full SHA for 2aa5f3c
View code at this point
Browse repository at this point
Commits on Oct 1, 2012
utilize yield from
pjenvey
committed
4993cc0
View commit details
Copy full SHA for 4993cc0
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 15, 2012
Issue #15343: Handle importlib.machinery.FileFinder instances in pkgutil.walk_packages (et al)
ncoghlan
committed
8ecf504
View commit details
Copy full SHA for 8ecf504
View code at this point
Browse repository at this point
Take the first step in resolving the messy pkgutil vs importlib edge cases by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ corre…
Show description for 85e729e
ncoghlan
committed
85e729e
View commit details
Copy full SHA for 85e729e
View code at this point
Browse repository at this point
Commits on Jul 9, 2012
Issue #15294: Fix a regression in pkgutil.extend_path()'s handling of nested namespace packages.
pitrou
committed
b2dd880
View commit details
Copy full SHA for b2dd880
View code at this point
Browse repository at this point
Commits on May 25, 2012
issue 14660: Implement PEP 420, namespace packages.
ericvsmith
committed
984b11f
View commit details
Copy full SHA for 984b11f
View code at this point
Browse repository at this point
Commits on Apr 27, 2012
Issue #14605: Don't error out if get_importer() returns None.
brettcannon
committed
fea73ef
View commit details
Copy full SHA for fea73ef
View code at this point
Browse repository at this point
Commits on Apr 26, 2012
Issue #14605: Make explicit the entries on sys.path_hooks that used to
Show description for e0d88a1
brettcannon
committed
e0d88a1
View commit details
Copy full SHA for e0d88a1
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.