question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

np.iinfo('ulong') fails

See original GitHub issue
>>> np.iinfo('intc')
iinfo(min=-2147483648, max=2147483647, dtype=int32)
>>> np.iinfo('uintc')
iinfo(min=0, max=4294967295, dtype=uint32)
>>> np.iinfo('longlong')
iinfo(min=-9223372036854775808, max=9223372036854775807, dtype=int64)
>>> np.iinfo('ulonglong')
iinfo(min=0, max=18446744073709551615, dtype=uint64)
>>> np.iinfo('long')
iinfo(min=-9223372036854775808, max=9223372036854775807, dtype=int64)
>>> np.iinfo('ulong')
Traceback (most recent call last):
  File "<ipython-input-20-e783aa7ef3c1>", line 1, in <module>
    np.iinfo('ulong')
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.6/site-packages/numpy/core/getlimits.py", line 516, in __init__
    raise ValueError("Invalid integer data type.")
ValueError: Invalid integer data type.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
eric-wiesercommented, Sep 10, 2018

Thanks for finding this @ax3l

1reaction
ax3lcommented, Sep 11, 2018

You are welcome, can only forward the thanks to @C0nsultant we pointed me here 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python RuntimeWarning: overflow encountered in long scalars
Here's an example which issues the same warning: import numpy as np np.seterr(all='warn') A = np.array([10]) a=A[-1] a**a. yields
Read more >
numpy.iinfo — NumPy v1.24 Manual
Machine limits for integer types. Parameters: int_typeinteger type, dtype, or instance. The kind of integer data type to get information ...
Read more >
Understanding Data Types in Python
This section outlines and contrasts how arrays of data are handled in the Python language itself, and how NumPy improves on this.
Read more >
struct — Interpret bytes as packed binary data — Python 3.11 ...
When packing a value x using one of the integer formats ( 'b' , 'B' , 'h' , 'H' , 'i' , 'I'...
Read more >
Aros/Developer/Scalos - Wikibooks, open books for an open ...
This means if the library-open fails Scalos isn't running. For information about NodeList see ... SCA_Stacksize (ULONG) - stack size if no icon...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found