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

Alternative solution for question 4 #157

Open
daviddoji opened this issue Aug 4, 2021 · 1 comment
Open

Alternative solution for question 4 #157

daviddoji opened this issue Aug 4, 2021 · 1 comment

Comments

@daviddoji
Copy link

One could use simply nbytes to get an alternative solution to question 4.

>>> Z = np.zeros((10,10))
>>> print(f"{Z.nbytes} bytes")
800 bytes
@rougier
Copy link
Owner

rougier commented Aug 19, 2021

You're right. Can you make a PR (maybe just adding s second argument in the print with the nbytes). I want to keep itemsize and size such that people can see these attributes exist.

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