-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
In previous versions the Python range function was able to evaluate range steps with both int and float types. In the current WASM I get the following error:
Error:PythonError: Traceback (most recent call last):
File "/lib/python312.zip/_pyodide/_base.py", line 597, in eval_code_async
await CodeRunner(
File "/lib/python312.zip/_pyodide/_base.py", line 411, in run_async
coroutine = eval(self.code, globals, locals)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 7, in
TypeError: 'float' object cannot be interpreted as an integer
when running the following code:
`Web VPython 3.2 WASM
a = 1
b = 10
step = 0.9
for x in range(a, b, step):
print(x)`
The code works in the new RapydScript 3.2 testing version.
Metadata
Metadata
Assignees
Labels
No labels