Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
773468f3
Commit
773468f3
authored
Aug 02, 2012
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ditch the 'self' argument in importlib docs since it's implied.
parent
b3f55012
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Doc/library/importlib.rst
Doc/library/importlib.rst
+8
-8
No files found.
Doc/library/importlib.rst
View file @
773468f3
...
...
@@ -162,7 +162,7 @@ are also provided to help in implementing the core ABCs.
.. versionadded:: 3.3
.. method:: find_loader(
self,
fullname):
.. method:: find_loader(fullname):
An abstract method for finding a :term:`loader` for the specified
module. Returns a 2-tuple of ``(loader, portion)`` where portion is a
...
...
@@ -336,7 +336,7 @@ are also provided to help in implementing the core ABCs.
optimization to speed up loading by removing the parsing step of Python'
s
compiler
,
and
so
no
bytecode
-
specific
API
is
exposed
.
..
method
::
path_stats
(
self
,
path
)
..
method
::
path_stats
(
path
)
Optional
abstract
method
which
returns
a
:
class
:`
dict
`
containing
metadata
about
the
specifed
path
.
Supported
dictionary
keys
are
:
...
...
@@ -350,7 +350,7 @@ are also provided to help in implementing the core ABCs.
..
versionadded
::
3.3
..
method
::
path_mtime
(
self
,
path
)
..
method
::
path_mtime
(
path
)
Optional
abstract
method
which
returns
the
modification
time
for
the
specified
path
.
...
...
@@ -360,7 +360,7 @@ are also provided to help in implementing the core ABCs.
have to implement it, but it is still available for compatibility
purposes.
.. method:: set_data(
self,
path, data)
.. method:: set_data(path, data)
Optional abstract method which writes the specified bytes to a file
path. Any intermediate directories which do not exist are to be created
...
...
@@ -369,19 +369,19 @@ are also provided to help in implementing the core ABCs.
When writing to the path fails because the path is read-only
(:attr:`errno.EACCES`), do not propagate the exception.
.. method:: get_code(
self,
fullname)
.. method:: get_code(fullname)
Concrete implementation of :meth:`InspectLoader.get_code`.
.. method:: load_module(
self,
fullname)
.. method:: load_module(fullname)
Concrete implementation of :meth:`Loader.load_module`.
.. method:: get_source(
self,
fullname)
.. method:: get_source(fullname)
Concrete implementation of :meth:`InspectLoader.get_source`.
.. method:: is_package(
self,
fullname)
.. method:: is_package(fullname)
Concrete implementation of :meth:`InspectLoader.is_package`. A module
is determined to be a package if its file path (as provided by
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment