lpython
lpython copied to clipboard
Python compiler
The released version in conda fails in `test_list_item_mixed_print.py`: ``` ../integration_tests/test_list_item_mixed_print.py * runtime The JSON metadata differs against reference results Reference JSON: tests/reference/runtime-test_list_item_mixed_print-a3fd49f.json Output JSON: tests/output/runtime-test_list_item_mixed_print-a3fd49f.json Omitting 9 identical items Differing...
On latest main, compiling using the following commands on Mac M1 ```bash ./build0.sh cmake -DWITH_FMT=yes -DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -funroll-loops -DNDEBUG" -DWITH_LLVM=yes . cmake --build . -j16 ``` I am experiencing...
``` >>> i: i32 = 5 1,11 ] >>> i 1,2 ] 5 >>> i + 6 1,6 ] 11 >>> i**2 1,5 ] 25 >>> from math import sin...
```py from lpython import i32 class test: y: i32 = 2 def __init__(self, x: i32 = 1): self.x: i32 = x t1: test = test() t2: test = test(3) print...
The following code snippet: ```py q: list[i32] = [] i: i32 for i in range(100000): q.append(i) for i in range(100000): q.pop(0) ``` takes >30s on my machine, while the C++...
In the example code here, ```py i: i32 for i in range(10): q: i32 = 10 j: i32 for j in range(5): p: i32 = i+1 ``` the following error...
When there is a recursive function, since there is no recursive limit, it is possible for a stack overflow and a segmentation fault. Considering how CPython has a recursion limit,...
Windows uses a carriage return (`\r`) and line feed (`\n`) character to represent a new line (i.e. `\r\n` is a new line). But in other systems, it is only a...
MRE: ```py from lpython import i32 class test: x: i32 = 4 print(test.x) ``` Error: ```console $ lpython examples/expr2.py ASR verify pass error: Var_t::m_v test does not point to a...
``` def main0(): s_var1: str = "Hello" s_var2: str = "LPython" print(s_var1 or s_var2) (lp) hank@MacBook-Pro lpython % ./src/bin/lpython test.py --backend=c expr2__tmp__generated__.c: In function ‘main0’: expr2__tmp__generated__.c:21:14: warning: format ‘%s’ expects...