mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #27138: Fix the doc comment for FileFinder.find_spec().
This commit is contained in:
parent
c618ae8ed7
commit
fc36e66af4
2 changed files with 4 additions and 2 deletions
|
@ -1213,8 +1213,8 @@ class FileFinder:
|
||||||
submodule_search_locations=smsl)
|
submodule_search_locations=smsl)
|
||||||
|
|
||||||
def find_spec(self, fullname, target=None):
|
def find_spec(self, fullname, target=None):
|
||||||
"""Try to find a loader for the specified module, or the namespace
|
"""Try to find a spec for the specified module. Returns the
|
||||||
package portions. Returns (loader, list-of-portions)."""
|
matching spec, or None if not found."""
|
||||||
is_namespace = False
|
is_namespace = False
|
||||||
tail_module = fullname.rpartition('.')[2]
|
tail_module = fullname.rpartition('.')[2]
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -61,6 +61,8 @@ Core and Builtins
|
||||||
(*) unpacking in function calls. Based on patch by Hagen Fürstenau and
|
(*) unpacking in function calls. Based on patch by Hagen Fürstenau and
|
||||||
Daniel Urban.
|
Daniel Urban.
|
||||||
|
|
||||||
|
- Issue #27138: Fix the doc comment for FileFinder.find_spec().
|
||||||
|
|
||||||
- Issue #26154: Add a new private _PyThreadState_UncheckedGet() function to get
|
- Issue #26154: Add a new private _PyThreadState_UncheckedGet() function to get
|
||||||
the current Python thread state, but don't issue a fatal error if it is NULL.
|
the current Python thread state, but don't issue a fatal error if it is NULL.
|
||||||
This new function must be used instead of accessing directly the
|
This new function must be used instead of accessing directly the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue