Skip to content

DOC: clarify that read_array_header requires prior read_magic call#31231

Open
agp19d wants to merge 1 commit intonumpy:mainfrom
agp19d:doc-fix-read-array-header-docstring
Open

DOC: clarify that read_array_header requires prior read_magic call#31231
agp19d wants to merge 1 commit intonumpy:mainfrom
agp19d:doc-fix-read-array-header-docstring

Conversation

@agp19d
Copy link
Copy Markdown
Contributor

@agp19d agp19d commented Apr 12, 2026

PR summary

Update the docstrings for read_array_header_1_0 and
read_array_header_2_0 to note that the file object must be positioned
after the magic string and version bytes, e.g. by calling read_magic
first.

Closes #29159

AI Disclosure

No AI tools used

Update docstrings for read_array_header_1_0 and read_array_header_2_0
to note that fp must be positioned after the magic string and version
bytes, e.g. by calling read_magic first.

Closes numpy#29159
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: read_array_header_1_0 errors if read_magic has not been called first

2 participants