gpython icon indicating copy to clipboard operation
gpython copied to clipboard

gpython is a python interpreter written in go "batteries not included"

Results 55 gpython issues
Sort by recently updated
recently updated
newest added

In gpython, if we define a nested set, it will lead to crashing. ` s = {('string', 1), ('string', 2), ('string', 3)}` Output on go/wasm(https://gpython.org/?wasm): ``` Gpython 3.4.0 running in ...

bug

In the following example, we initialize a 'population' with a list then we define a generator 'gen'. When we transform the generator into list, it crashes gpython with message "panic: ...

The following example takes large arguments and then crashes gpython. test.py ``` def f(*args, **kwargs): return (len(args), len(kwargs)) f(*[0] * (2 ** 32 + 1)) ``` Output on go/wasm(https://gpython.org/?wasm): ```...

Reassigning __getattr__ with getattr in a class and then using the attribute 'spam' triggers gpython crashing. See the following example. We test the example on the online gpython i.e., GO/wasm...

bug

'__import__' takes incorrect arguments and it crashes gpython. we test the following code on Gopherjs and Go/wasm online. test.py `__import__( 'pkg', {}, {}, [''] )` Output on GO/wasm(https://gpython.org/?wasm): ``` Gpython ...

bug

In the following program, we compare two tuples with "is", while tuple types are uncomparable crashing gpython. We test it on the online gpython GO/wasm and Gopherjs. test.py ``` e...

In the following, we define a class, in this class, we define a decorated function with annotated types "str" that is not consistent with "None. Then gpython crashes. We test...

bug
good first issue

Is there a way to access instance variables from Python. For example, say I have go struct: ```go type Point struct { X int Y int } ``` Is there...

``` >>> import builtins >>> builtins.id Traceback (most recent call last): File "", line 1, in AttributeError: "'module' has no attribute 'id'" >>> >>> builtins.dir Traceback (most recent call last):...

File "/opt/homebrew/Cellar/[email protected]/3.9.20/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 339, offset 80 raise TypeError(f'the JSON object must be str, bytes or bytearray, ' SyntaxError: 'invalid syntax'

enhancement