Open roosephu opened 1 year ago
This might be related to #170.
>>> import box
>>> box.__version__
'7.0.0'
>>> box.Box({'a.b': 1}, default_box=True)
Box({'a.b': 1})
>>> box.Box({'a.b': 1}, default_box=True, box_dots=True)
Box({'a': {'b': 1}})
That is, we have to set default_box=True
to avoid BoxKeyError.
Found this is in the list of breaking changes which unfortunately I didn't read through. The examples in the wiki should be updated, though.
To reproduce:
It seems to work in v6.0.2:
Python 3.10.9.