You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom Comment class inheriting from NodeMixin.
This class has a custom __repr__ implementation producing a string with two newline characters:
I have a custom
Comment
class inheriting fromNodeMixin
.This class has a custom
__repr__
implementation producing a string with two newline characters:When I print the root node using
print(RenderTree(root))
I get the following (undesired) output:However, when I print the root node using
print(RenderTree(root).by_attr(lambda x: x))
I get the following (desired) output:The lambda function should not have any effect. Why do the two outputs look different?
The text was updated successfully, but these errors were encountered: