mirror of https://github.com/python/cpython.git
use the classmethod directive
This commit is contained in:
parent
3fe61d5282
commit
97d3aa50b7
|
@ -95,12 +95,12 @@ find and load modules.
|
||||||
Only class methods are defined by this class to alleviate the need for
|
Only class methods are defined by this class to alleviate the need for
|
||||||
instantiation.
|
instantiation.
|
||||||
|
|
||||||
.. method:: find_module(fullname, path=None)
|
.. classmethod:: find_module(fullname, path=None)
|
||||||
|
|
||||||
Class method that allows this class to be a :term:`finder` for built-in
|
Class method that allows this class to be a :term:`finder` for built-in
|
||||||
modules.
|
modules.
|
||||||
|
|
||||||
.. method:: load_module(fullname)
|
.. classmethod:: load_module(fullname)
|
||||||
|
|
||||||
Class method that allows this class to be a :term:`loader` for built-in
|
Class method that allows this class to be a :term:`loader` for built-in
|
||||||
modules.
|
modules.
|
||||||
|
@ -113,12 +113,12 @@ find and load modules.
|
||||||
Only class methods are defined by this class to alleviate the need for
|
Only class methods are defined by this class to alleviate the need for
|
||||||
instantiation.
|
instantiation.
|
||||||
|
|
||||||
.. method:: find_module(fullname, path=None)
|
.. classmethod:: find_module(fullname, path=None)
|
||||||
|
|
||||||
Class method that allows this class to be a :term:`finder` for frozen
|
Class method that allows this class to be a :term:`finder` for frozen
|
||||||
modules.
|
modules.
|
||||||
|
|
||||||
.. method:: load_module(fullname)
|
.. classmethod:: load_module(fullname)
|
||||||
|
|
||||||
Class method that allows this class to be a :term:`loader` for frozen
|
Class method that allows this class to be a :term:`loader` for frozen
|
||||||
modules.
|
modules.
|
||||||
|
|
Loading…
Reference in New Issue