Skip to content

ENH: Allow np.fromregex to take os.PathLike implementations #19679

@BvB93

Description

@BvB93

np.fromregex is currently the only file-manipulation-function that does not accept path-like objects such as pathlib.Path.
The root of this issue stems from the np.DataSource class, which it uses for parsing path-like objects, assuming that the passed path is always a string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions