py
Python namespace proxy.
📝Syntax
p = py()
p.module.function(...)
📤Output Arguments
Parameter Description
p Python namespace proxy object.
pyValue Python object returned by the called function.
📄Description

py returns a proxy object used to access Python builtins and modules from Nelson.

Use attribute access on the returned object to import modules or call Python functions.

💡Examples
Call a Python built-in through the namespace proxy.
p = py();
pyValue = p.int(42)
🔗See Also
pyenvpyrunpyrunfile
Used Functions
pyenv
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub