lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.5k stars 157 forks source link

? from foo import * not working ? #2466

Open rebcabin opened 7 months ago

rebcabin commented 7 months ago
└─(19:12:01 on brian-vector-back-end ✹ ✭)──> cat > i2463.py                                                                             ──(Tue,Jan30)─┘
from numpy import *

def main():
    pass
(ch_emulation) ┌─(~/tmp/copperhead-save/benchmarks/matmul/ISSUES)───────────────────────────────────────────────────────────────────────────(brian@MacBook-Pro:s000)─┐
└─(19:12:46 on brian-vector-back-end ✹ ✭)──> lpython i2463.py                                                                           ──(Tue,Jan30)─┘
semantic error: The symbol '*' not found in the module 'numpy'
 --> i2463.py:1:19
  |
1 | from numpy import *
  |                   ^ 

Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.
certik commented 7 months ago

I think it might work for user modules, but not for numpy.