Commit 36e7df39 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Adding python __str__ to buffer class

Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <>
parent f9037a56
......@@ -335,6 +335,12 @@ PYBIND11_MODULE(_pyxacc, m) {
return s.str();
.def("__str__", [](const std::shared_ptr<AcceleratorBuffer> b) {
std::stringstream s;
return s.str();
xacc::AcceleratorBuffer::*)(const std::string, ExtraInfo)) &
Supports Markdown
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