Commit daa57a3e authored by Jason Rhinelander's avatar Jason Rhinelander

Removed debugging

parent 843d1179
......@@ -50,13 +50,8 @@ void bind_bundles(py::module &m) {
.def("abort_transaction", &BundleNegative::abortTransaction, "Aborts a transaction; any changes made since the transaction started are discarded.")
.def("begin_encompassing", &BundleNegative::beginEncompassing, "Stop handling transactions until a matching end_encompassing() is called. This effectively disables transaction support for performance reasons, but should only be used when it is known that any partial value changes (for example, from an exception raised for a negative value) will result in the destruction of the object")
.def("end_encompassing", &BundleNegative::endEncompassing, "Ends the transaction disabling caused by the previous begin_encompassing() call.")
.def("__str__", [](const BundleNegative &bundle) -> std::string {
std::cerr << "stringing\n";
std::ostringstream s;
s << bundle;
std::cerr << "stringed\n";
return s.str();
}, "Returns a string representation of the bundle, such as 'Bundle([4]=12, [6]=0)', 'Bundle()', 'BundleNegative([3]=-3.75, [2]=0, [1]=4.2e-24)'")
.def("__str__", [](const BundleNegative &bundle) -> std::string { std::ostringstream s; s << bundle; return s.str(); },
"Returns a string representation of the bundle, such as 'Bundle([4]=12, [6]=0)', 'Bundle()', 'BundleNegative([3]=-3.75, [2]=0, [1]=4.2e-24)'")
;
py::class_<Bundle> bundle(m, "Bundle", bundle_neg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment