Skip to content

Copy function missing #8

@Waldorf-Techie

Description

@Waldorf-Techie

The following code

Web VPython 3.2 WASM
ball = sphere()
newball = copy(ball)

Throws the 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 3, in
NameError: name 'copy' is not defined. Did you forget to import 'copy'

This may be related to the error in Issue # 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions