MCPcopy Create free account
hub / github.com/Singular/Singular / Number_as_str

Function Number_as_str

Singular/dyn_modules/python/number_wrap.cc:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "ring_wrap.h"
7using boost::python::self;
8static boost::python::object Number_as_str(const Number& n)
9{
10 using boost::python::str;
11 StringSetS("");
12 n.write();
13 char* out=StringEndS();
14 return boost::python::str(out,strlen(out));
15}
16static Ring Number_get_Ring(const Number & n){
17 return n.getRing();
18}

Callers

nothing calls this directly

Calls 4

StringSetSFunction · 0.85
StringEndSFunction · 0.85
strFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected