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

So the case overall from sympy's gruntz.py looks like ``` elif e.is_Pow and e.base != S.Exp1: e1 = S.One while e.is_Pow: b1 = e.base e1 *= e.exp e = b1...

symbolic

``` from sympy import pi from lpython import S def main0(): l: list[S] = [pi] print(l) main0() (lp) C:\Users\kunni\lpython>src\bin\lpython --enable-symengine try.py [94581235565888] ```

symbolic

passes CPython but not lpython ```python import numpy from numpy import empty from lpython import (i16) def main(): A_nm: i16[15, 3] = empty((15, 3), dtype=numpy.int16) print ("hello, world!") if __name__...

bug

We need to implement ASR->ASR passes that implement vectorization. It seems we write a pragma (comment) which will direct the optimizer to apply a given transformation and specify exactly which...

asr
asr_pass
optimization

The Python standard library has a lot of modules: https://docs.python.org/3/library/index.html, but many of them are rarely used. First we should concentrate on the most commonly used modules, probably: * `sys`...

Example: ```python from numpy import empty, int16 from lpython import i16, i32, Const def spot_print_lpython_array(a: i16[:]) -> None: print(a) def main() -> i32: n : Const[i32] = 15 m :...

This is more of a work-tracking issue than a bug. ```python VR_SIZE: i32 = 32_768 k: i32 A_ik: i16 jj: i32 ii: i32 i: i32 for jj in range(0, l,...

numpy

Repro case and result ```python import numpy from lpython import (i16, i32, ccallback, c_p_pointer, Pointer, u64, CPtr, i64) ######## ALL THE LINES WITH EIGHT COMMENT MARKS ARE THE ONES WE...

bug

(different but similar to #2479 ) ```python import numpy from lpython import (i16, i32, ccallback, c_p_pointer, Pointer, u64, CPtr, i64) ######## ALL THE LINES WITH EIGHT COMMENT MARKS ARE THE...

bug

So far as I can tell, the semantics are identical. I believe we ought to use a popular, existing type rather than inventing our own type, if we can. https://numpy.org/devdocs/reference/typing.html

numpy
dcr