Open
Description
Here is some code that works in CPython but not in LPython:
from numpy import (empty, sqrt, float32, float64,
int8, int32, array, ndarray)
BITS_PER_BYTE : ndarray(16, dtype=int32) = \
array([ 0, 1, 1, 2,
1, 2, 2, 3,
1, 2, 2, 3,
2, 3, 3, 4])
(lp) ┌─(~/CLionProjects/lpython/lasr/LP-pycharm)─────────────────────────────────────────────────────────────────────────────────────────────────────────(brian@Golf37:s000)─┐
└─(14:45:05 on brian-lasr ✹)──> PYTHONPATH='../../src/runtime/lpython' python issue2090.py 2 ↵ ──(Mon,Jul03)─┘
(lp) ┌─(~/CLionProjects/lpython/lasr/LP-pycharm)─────────────────────────────────────────────────────────────────────────────────────────────────────────(brian@Golf37:s000)─┐
└─(14:45:13 on brian-lasr ✹)──> ~/CLionProjects/lpython/src/bin/lpython -I. issue2090.py ──(Mon,Jul03)─┘
semantic error: The symbol 'ndarray' not found in the module 'numpy'
--> issue2090.py:2:40
|
2 | int8, int32, array, ndarray)
| ^^^^^^^