Skip to content

Additional space in 0d array repr #9185

@lesteve

Description

@lesteve

Snippet:

import numpy as np
print(repr(np.array(1.)))

Output on 1.12.1:

array(1.0)

Output on master:

array( 1.0)

Note the space before 1.0.

git bisect gives that the commit introducing the change is d2b06fe.

Probably not such a big deal, but I guess it was not intentional. We noticed because it was breaking one of our doctest on scikit-learn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions