Skip to content

infinite recursive when dictionary has array of dictionary refer to the parent. #278

@eric-zhu-2019

Description

@eric-zhu-2019

for example:

>>> import box
>>> a={'a': 1}
>>> a['b'] = [{'parent': a}]
>>> box.Box(a)
Traceback (most recent call last):
...
RecursionError: maximum recursion depth exceeded in __subclasscheck__

any idea? how to implement the data structure like this?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions