gpython
gpython copied to clipboard
gpython is a python interpreter written in go "batteries not included"
right now: ```python >>> import math >>> help(math) Traceback (most recent call last): File "", line 1, in FIXME line of source goes here NameError: NameError: "name 'help' is not...
Expected: ``` python Gpython 3.4.0 >>> a = [1,2,3] >>> a[0] = a >>> a [[...], 2, 3] ``` Actual behavior: ```python Gpython 3.4.0 >>> a = [1,2,3] >>> a[0]...
Builtin string type doesn't support `join`, `upper` and `lower` functions/attributes. ```python # fails with missing attribute ",".join(list) "hello world".upper() "HELLo".lower() ``` - [ ] `str.join` - [x] `str.upper` - [x]...
I failed to parse a file that includes "f-string" (string interpolation). Could you please implement this feature?
I have the small script below that I try to test: ```python import sys def pre_save(value, numb): if value == "value": return("accepted by Python script " + sys.version) else: return("refused...
https://github.com/micropython/micropython-lib/tree/c113611765278b2fc8dcf8b2f2c3513b35a69b39 It's micro python standard library, it does not have any c-runtime stuff, it should compatible with goython without problems.
When I use gpython as a plugin parser, I use reflect and recurrence to achieve a more general type conversion because of the trouble of type conversion. Support mutual conversion...
## Simple description I cannot find a way to access `globals()` within a bounded method in GoLang. I expose a type into module, like `moduleImpl.Globals["Foo"] = FooType`, and add methods...
Taking long operations as argument of compiler() leads that pointer gets access to unused region crashing gpython test.py `compile('1'+'
Transforming invalid types into a set with set() leads to crashing of gpython. For example: `x = set('abcde')` or ``` class A: pass set(A()) ``` Output on go/wasm(https://gpython.org/?wasm): ``` Gpython ...