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

rs -- execute Python source code from a string

Synopsis

Description

This function a is wrapper around the function PyRun_String from the Python C API. It is also available as runPythonString.

i1 : rs "2 + 2"

o1 = 4

o1 : PythonObject of class int

See also

For the programmer

The object rs is a function closure.