Nerodia Reference Manual

8.6. PyModule🔗

🔗opaque
Nerodia.import (modName : String) : CPyIO PyObject
Nerodia.import (modName : String) : CPyIO PyObject

Imports the module named modName.

In Python, the import can be anything, so this may not return a PyModule.

🔗def

A Python module object. That is, an instance of types.ModuleType.

🔗def

The ultimate base class of Python modules, types.ModuleType.

🔗opaque
Nerodia.PyModule.addByString (name : String) (val : PyObject) (self : PyModule) : CPyUnitIO
Nerodia.PyModule.addByString (name : String) (val : PyObject) (self : PyModule) : CPyUnitIO

Adds an object val to the module self as name.