Skip to content

BUG: error in string array generated with arange function #22055

@m-aguena

Description

@m-aguena

Describe the issue:

Arrays created with np.arange(n, dtype=str) for n>2 raise an error.

Reproduce the code example:

import numpy as np
np.arange(3, dtype=str)

Error message:

File "<stdin>", line 1, in <module>
ValueError: no fill-function for data-type.

NumPy/Python version information:

1.23.1, 3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions