+ """Return the version of this Python interpreter. This is a
+ string that looks something like
+ "1.5 (\#67, Dec 31 1997, 22:34:28) [GCC 188.8.131.52]"
+ The first word (up to the first space character) is the current
+ Python version; the first three characters are the major and minor
+ version separated by a period. The returned string points into
+ static storage; the caller should not modify its value. The value
+ is available to Python code as sys.version."""
+ return space.fromcache(State).get_version()
@cpython_api([lltype.Ptr(lltype.FuncType(, lltype.Void))], rffi.INT_real, error=-1)
def Py_AtExit(space, func_ptr):
"""Register a cleanup function to be called by Py_Finalize(). The cleanup