Kaydet (Commit) 97d3aa50 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

use the classmethod directive

üst 3fe61d52
...@@ -95,12 +95,12 @@ find and load modules. ...@@ -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. ...@@ -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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment