3 #include <boost/python.hpp> 7 using boost::python::self;
8 static boost::python::object Number_as_str(
const Number& n)
10 using boost::python::str;
14 return boost::python::str(out,strlen(out));
21 boost::python::class_<Number>(
"Number")
22 .def(boost::python::init <int>(
"creates a number in currRing by default, more complex constructs can be fetched from the interpreter"))
23 .def(
"__str__", Number_as_str)
48 .def(
"ring",Number_get_Ring);
void StringSetS(const char *st)