Skip to content

DOC: np.loadtxt's encoding argument docstring incorrectly states default is "bytes" #28156

@PinkShnack

Description

@PinkShnack

Issue with current documentation:

In the current stable docs, np.loadtxt's argument "encoding" incorrectly states its default is "bytes", when in fact is has been changed to "None". See this line. This states the opposite of the docstring note here. Perhaps this note is meant to be what the user looks at, but I guess they should just say the same thing.

"The default value is ‘bytes’." should instead be "The default value is ‘None’." I can make the changes, but I guess this change can be done elsewhere without making a new PR.

Also, the change to the argument default should have been written in the Numpy 2 Migration Guide. As far as I can see it isn't there. Is there another repo (maybe https://github.com/numpy/numpy.org) where this should be raised?

Idea or request for content:

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions