-
-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Labels
component: "serialization"pickle, json, script_repr, etc etc - help me name this :)pickle, json, script_repr, etc etc - help me name this :)status: discussionDiscussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.Discussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.type-bugBug reportBug report
Milestone
Description
When there are circular references on a Parameterized object the pretty printing causes a recursion error:
class A(param.Parameterized):
b = param.Parameter()
class B(param.Parameterized):
a = param.Parameter()
a = A()
b = B(a=a)
a.b = b
a.pprint()
I'd suggest there should be a maximum depth for the pretty printer, anything more than 1 or two levels deep will become unreadable anyway.
Metadata
Metadata
Assignees
Labels
component: "serialization"pickle, json, script_repr, etc etc - help me name this :)pickle, json, script_repr, etc etc - help me name this :)status: discussionDiscussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.Discussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.type-bugBug reportBug report