close
Skip to content

Appending a list to a list causes recursion #251

@d00m514y3r

Description

@d00m514y3r

reproduce:

from box import Box
a = Box({"list_of_dicts": [[{"example1": 1}]]})
a.list_of_dicts.append([{"example2": 2}])
print(a)
# {'list_of_dicts': [[{'example1': 1}], [...]]}
# expected output
# {'list_of_dicts': [[{'example1': 1}], [{'example2': 2}]]}

Using python 3.10.9 and python-box 6.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions