Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_pkgutil.PkgutilPEP302Tests.MyTestLoader Class Reference
Inheritance diagram for test.test_pkgutil.PkgutilPEP302Tests.MyTestLoader:
Inheritance graph
Collaboration diagram for test.test_pkgutil.PkgutilPEP302Tests.MyTestLoader:
Collaboration graph

List of all members.

Public Member Functions

def load_module
def get_data

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 89 of file

Member Function Documentation

Definition at line 101 of file

00102         def get_data(self, path):
00103             return "Hello, world!"
    class MyTestImporter(object):

Here is the caller graph for this function:

Definition at line 90 of file

00091         def load_module(self, fullname):
00092             # Create an empty module
00093             mod = sys.modules.setdefault(fullname, imp.new_module(fullname))
00094             mod.__file__ = "<%s>" % self.__class__.__name__
00095             mod.__loader__ = self
00096             # Make it a package
00097             mod.__path__ = []
00098             # Count how many times the module is reloaded
00099             mod.__dict__['loads'] = mod.__dict__.get('loads',0) + 1
00100             return mod

Member Data Documentation

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

The documentation for this class was generated from the following file: