Skip to content

BUG: fix string truncation bug in loadtxt#19042

Closed
DFEvans wants to merge 1 commit intonumpy:mainfrom
DFEvans:loadtxt_string_type
Closed

BUG: fix string truncation bug in loadtxt#19042
DFEvans wants to merge 1 commit intonumpy:mainfrom
DFEvans:loadtxt_string_type

Conversation

@DFEvans
Copy link
Copy Markdown
Contributor

@DFEvans DFEvans commented May 19, 2021

Closes #17277. If loadtxt is passed an unsized string or byte dtype,
the size is set automatically from the longest entry in the first
50000 lines. If longer entries appeared later, they were silently
truncated.

Closes numpy#17277. If loadtxt is passed an unsized string or byte dtype,
the size is set automatically from the longest entry in the first
50000 lines. If longer entries appeared later, they were silently
truncated.
@seberg
Copy link
Copy Markdown
Member

seberg commented Feb 8, 2022

Sorry, that we never pushed this through. The bug is now fixed by gh-20580 though.

@seberg seberg closed this Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug triage review Issue/PR to be discussed at the next triage meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

loadtxt() changes numbers if integers are read as strings

4 participants