Closed
Description
The following program causes a RecursionError due to a numpy bug(?) numpy/numpy#18548 :
import numpy as np
None + np.longdouble(0)
In plain python:
$ python ../zot.py
Traceback (most recent call last):
File "../zot.py", line 2, in <module>
None + np.longdouble(0)
RecursionError: maximum recursion depth exceeded while calling a Python object
In terminal ipython:
$ ipython
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.17.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: %run ../zot.py
Segmentation fault (core dumped)
Also if it helps
n [3]: numpy.version.version
Out[3]: '1.19.1'
The machine is
$ uname -a
Linux dop307 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels