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

I discovered this when I first ran ```py s: str s = " " print(s.lstrip()) ``` and it gave me this error ``` String index: 4 is out of Bounds...

bug

I thought this would be a good one to get started with LPython implementations. Reference: https://docs.python.org/3/library/operator.html#operator.lshift

Till now, LPython's math module has sqrt() and cbrt() functions that work only for f64 types. In this PR, I have added support for i32, i64, f32 and f64 datatypes,...

Relates to #2356 I also noticed that these methods don't work with constant strings ``` semantic error: 'str' object has no attribute 'split' --> test.py:2:7 | 2 | print("1 2...

I often make the following stupid mistake: ```python from lpython import (i32, dataclass) @dataclass class FullFormValue: list_i32 : list[i32] string : str foo : dict[str, FullFormValue] DEAD_LIST : list[i32] =...

good first issue
usability

fix issue #2475. I create `parse_python_source` to accept source code literal input to avoid additional file read. Note that there are still mutiple codes sharing the similar logic, like https://github.com/lcompilers/lpython/blob/main/src/bin/lpython.cpp#L254...