You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: runtime error: makeslice: len out of range".
test.py
population = list(range(10))
gen = (-1 * population for w in range(10))
list(gen)
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: runtime error: makeslice: len out of range".
test.py
Output on go/wasm(https://gpython.org/?wasm):
output with gopherjs(https://gpython.org/):
The text was updated successfully, but these errors were encountered: