8000 Support zero-dimensional arrays in __format__ (Trac #1784) · Issue #2377 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Support zero-dimensional arrays in __format__ (Trac #1784) #2377

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

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 2 comments
Closed

Support zero-dimensional arrays in __format__ (Trac #1784) #2377

numpy-gitbot opened this issue Oct 19, 2012 · 2 comments

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/1784 on 2011-03-25 by @mwiebe, assigned to unknown.

For #2271, support was added for the format() function in numpy scalars. It would be useful for zero-dimensional arrays to support this as well.

@ddasilva
Copy link
Contributor

It this still an issue?

>>> '{}'.format(np.array(0))
'0'

@charris
Copy link
Member
charris commented Mar 15, 2014

That looks good to me. There is no example of what the failure looked like... Closing this also, thanks for checking.

@charris charris closed this as completed Mar 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0