| 7 | using boost::python::self; |
| 8 | #ifndef NOSTREAMIO |
| 9 | static boost::python::object CF_as_str(const CanonicalForm& f) |
| 10 | { |
| 11 | using boost::python::str; |
| 12 | std::basic_stringstream<char> s; |
| 13 | s<<f; |
| 14 | return boost::python::str(s.str()); |
| 15 | } |
| 16 | #endif |
| 17 | void export_CF(){ |
| 18 | boost::python::class_<CanonicalForm>("canonical_form") |