Hello,
I noticed two small typos on the Wiki page Types of Boxes:
Support for traversing box lists as well!
my_box = Box({'data': [ {'rabbit': 'hole'} ] }, box_dots=True)
print(data.data[0].rabbit)
# hole
To change
my_box = Box({'data': [ {'rabbit': 'hole'} ] }, box_dots=True)
- print(data.data[0].rabbit)
+ print(my_box.data[0].rabbit)
# hole
If it cannot be converted, it will raise a BoxValueError (catachable with either BoxError or ValueError as well)
To change
- If it cannot be converted, it will raise a `BoxValueError` (catachable with either `BoxError` or `ValueError` as well)
+ If it cannot be converted, it will raise a `BoxValueError` (catchable with either `BoxError` or `ValueError` as well)
Thank you for your work on the Box library and kind regards
Martin
Hello,
I noticed two small typos on the Wiki page
Types of Boxes:Types of Boxes/Box DotsTo change
my_box = Box({'data': [ {'rabbit': 'hole'} ] }, box_dots=True) - print(data.data[0].rabbit) + print(my_box.data[0].rabbit) # holeTypes of Boxes/Box Recast ValuesTo change
Thank you for your work on the
Boxlibrary and kind regardsMartin