Macaulay2 » Documentation
Packages » Python :: runSimpleString
next | previous | forward | backward | up | index | toc

runSimpleString -- execute Python source code from a string in __main__



This function a is wrapper around the function PyRun_SimpleString from the Python C API. Note that, unlike pythonValue, it has no return value.

i1 : runSimpleString "print('Hello, world!')"

See also

For the programmer

The object runSimpleString is a compiled function.