-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
I was attempting to build a "fluent" interface but had some trouble with using deepcopy()
>>> a = lacp_.lacp()
>>> b = copy.deepcopy(a)
...pyangbind/lib/yangtypes.py in __new__(self, *args, **kwargs)
1127 def __new__(self, *args, **kwargs):
1128 try:
-> 1129 obj = base_type.__new__(self, *args, **kwargs)
1130 except TypeError:
1131 obj = base_type.__new__(self)
...pyangbind/lib/yangtypes.py in __new__(self, *args, **kwargs)
469 break
470 if not passed:
--> 471 raise ValueError("%s does not match a restricted type" % val)
472
473 try:
ValueError: 0 does not match a restricted typeNot sure if its easy to solve this one, but I'm creating an issue to track it anyway :-)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels