-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it fails on import copy
#313
Comments
I tried also on docker, with the same result:
|
Hi, Unfortunately the 'copy' standard library is not yet supported by Transcrypt. TS mostly relies on JS libs: We strive to make a limited number of standard libs available, to ease the transition from CPython. Currently the following standard modules are available for Transcrypt: math, cmath, re, itertools, time, random (most important functions only), logging, warnings, turtle. There's also a port of a small part of Numpy called Numscrypt, available separately from PyPi. Kind regards |
Ok, thanks. |
There were no plans in that direction, but actually that may be a useful one to support. KR |
@JdeH I'm interested in a port of the collections module too. Where's a good place to discuss the design of it? |
Revisiting this. I know I'm trying to use deepcopy from the built-in copy module
In the mean time I've had some luck with using the lodash.clonedeep() JS library, but it seems to return dictionaries that have to be run through Python dict() to be valid. |
After getting a bit more experience with Transcrypt and re-reading this, I realized my previous post was already answered in that the Python Related to this though, I see there are |
|
this simple file
test.py
:transcrypt fails with:
Another project that also has
import copy
, it fails with:The text was updated successfully, but these errors were encountered: