next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Python :: runSimpleString

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

Synopsis

Description

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

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

See also

For the programmer

The object runSimpleString is a compiled function.