Box
Box copied to clipboard
Unexpected attributes "size" and "compute"
Is it correct?
In [1]: from box import Box
In [2]: test = Box(default_box=True)
In [3]: test Out[3]: Box({'size': {'compute': {}}})
In [4]: test.keys() Out[4]: dict_keys(['size'])
Python 3.11.6 Box 7.1.1
That seems like it was added by the interpreter you are using. Are you using ipython or something other than standard cpython console?
Thank you, you are right. It's from iPython in Spyder IDE. I checked in regular python and it does not occur. Interestingly, these attributes are not only printed, but they have actually been added to the object,