Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected attributes "size" and "compute" #262

Open
wtld opened this issue Dec 9, 2023 · 2 comments
Open

Unexpected attributes "size" and "compute" #262

wtld opened this issue Dec 9, 2023 · 2 comments

Comments

@wtld
Copy link

wtld commented Dec 9, 2023

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

@cdgriffith
Copy link
Owner

That seems like it was added by the interpreter you are using. Are you using ipython or something other than standard cpython console?

@wtld
Copy link
Author

wtld commented Dec 14, 2023

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants