lpython icon indicating copy to clipboard operation
lpython copied to clipboard

Python compiler

Results 162 lpython issues
Sort by recently updated
recently updated
newest added

Ensure the `@cpythoncall` works with the LLVM backend by refactoring it into an ASR->ASR pass, similar to how the new symbolic ASR->ASR pass works

``` └─(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...

Consider the following example ``` (lf) anutosh491@spbhat68:~/lpython/lpython$ cat examples/expr2.py from lpython import i32 def main0(): x: i32 x = -1 if x < 0: raise Exception("Sorry, no numbers below zero")...

I noticed that originally Clang-17 was used with LLVM-16: ``` [ 75%] Building CXX object src/libasr/CMakeFiles/asr.dir/codegen/llvm_utils.cpp.o cd /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_lpython/lpython/work/build/src/libasr && /opt/local/bin/clang++-mp-17 -DHAVE_TARGET_AARCH64=1 -DHAVE_WHEREAMI=1 -DHAVE_ZLIB=1 -DLCOMPILERS_FAST_ALLOC=1 -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_lpython/lpython/work/build/src/libasr/.. -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_lpython/lpython/work/lpython-0.20.0/src/libasr/.. -isystem /opt/local/libexec/llvm-16/include -isystem /opt/local/include...

README lists Conda as a requirement: https://github.com/lcompilers/lpython/blob/0a79bf55d34a35d1d733e376c9c85301ae7b5b3f/README.md?plain=1#L28-L32 Why is that needed at all?

I came across some inconsistencies with python while using reverse operation, I am not sure what should be expected with `lpython` as a `None` type is not supported here. Snippet...

As per the title, we get the following warnings and errors: ```cpp /home/khushi/Documents/lpython/integration_tests/_lpython-tmp-test-c/array_01.c: In function ‘main0’: /home/khushi/Documents/lpython/integration_tests/_lpython-tmp-test-c/array_01.c:442:31: warning: format ‘%li’ expects argument of type ‘long int’, but argument 6 has...

I think we should enable tests for all the supported operations. Like here and so on... https://github.com/lcompilers/lpython/blob/2afa365f1aeb3d2291110451ae38ec0e9fc7d90c/integration_tests/CMakeLists.txt#L419-L425 wdyt? Thanks!

- [x] Resolves compilation failure for workaround mentioned here https://github.com/lcompilers/lpython/issues/2428#issuecomment-1817343501. - [x] When the class is imported from another module as an ``ExternalSymbol``, it should omit the same scope check...

With the following definitions: ```python from lpython import dataclass, i64 @dataclass class TransactionItem: account_idx: i64 commodity: str amount: i64 @dataclass class Transaction: date: str name: str cleared: bool comments: str...