| 29 | return res; |
| 30 | } |
| 31 | static boost::python::object Module_as_str(const Module& p) |
| 32 | { |
| 33 | using boost::python::str; |
| 34 | //ring r=p.getRing(); |
| 35 | str helper; |
| 36 | list tojoin; |
| 37 | int i; |
| 38 | int s=p.size(); |
| 39 | //tojoin.append("["); |
| 40 | for(i=0;i<s;i++){ |
| 41 | tojoin.append(Vector_as_str(p[i])); |
| 42 | if (i<s-1) |
| 43 | tojoin.append(", "); |
| 44 | } |
| 45 | //tojoin.append("]"); |
| 46 | str res=helper.join(tojoin); |
| 47 | return res; |
| 48 | } |
| 49 | |
| 50 | static Ring Ideal_get_Ring(const Ideal & p){ |
| 51 | return p.getRing(); |
nothing calls this directly
no test coverage detected