Closed smola closed 4 years ago
Ack. I think the __repr__
should be used for those nodes to let them stringify themselves. What do you think? (Sorry for the slow response, I somehow missed this issue).
@timtadh Yes, I think that would make sense. In my case I just got around the issue by not relying on Operation.repr at all.
I agree that printing operation is useful to get an idee what's being operated on. Perhaps it's better to just save the nodes themselves instead of their (possibly non-existant) .label
.
When using custom nodes without a label attribute, Operationrepr will fail: