8000 Allow long numbers in numpy.rec.array formats string · numpy/numpy@d009f0f · GitHub
[go: up one dir, main page]

Skip to content

Commit d009f0f

Browse files
committed
Allow long numbers in numpy.rec.array formats string
1 parent fcdbcac commit d009f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/_internal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _reconstruct(subtype, shape, dtype):
133133

134134
format_re = re.compile(asbytes(
135135
r'(?P<order1>[<>|=]?)'
136-
r'(?P<repeats> *[(]?[ ,0-9]*[)]? *)'
136+
r'(?P<repeats> *[(]?[ ,0-9L]*[)]? *)'
137137
r'(?P<order2>[<>|=]?)'
138138
r'(?P<dtype>[A-Za-z0-9.]*(?:\[[a-zA-Z0-9,.]+\])?)'))
139139
sep_re = re.compile(asbytes(r'\s*,\s*'))

0 commit comments

Comments
 (0)
0