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

New space prefixing string output of floating point array scalars #9384

Closed
matthew-brett opened this issue Jul 7, 2017 · 2 comments
Closed

Comments

@matthew-brett
Copy link
Contributor

I guess this is to do with the new numpy scalar formatting stuff, but this seems a bit odd - and broke our doctests:

In [5]: str(np.array(1/3.))
Out[5]: ' 0.33333333'

In [6]: np.__version__
Out[6]: '1.14.0.dev0+569c591'

Notice the space before the first 0 in the output string. This isn't present with released numpy:

In [3]: str(np.array(1/3.))
Out[3]: '0.333333333333'

In [4]: np.__version__
Out[4]: '1.13.1'

Is it intended?

@eric-wieser
Copy link
Member

Yep, 1.14dev is unstable in this regard - there are a bunch of PRs related to this can of worms, none of which have yet been merged.

@eric-wieser
Copy link
Member

All fixed now

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