3
Je veux faire un deepcopy dans IronPython, mais quand j'écrisdeepcopy dans IronPython
import copy
je reçois no module named copy
.
Comment copier en profondeur dans IronPython?
Je veux faire un deepcopy dans IronPython, mais quand j'écrisdeepcopy dans IronPython
import copy
je reçois no module named copy
.
Comment copier en profondeur dans IronPython?
Utilisez IronPython version 2.6.1 et sélectionnez l'option de la bibliothèque standard dans l'installateur. Un exemple de mon installation:
IronPython 2.6.1 (2.6.10920.0) on .NET 2.0.50727.4927
Type "help", "copyright", "credits" or "license" for more information.
>>> import copy
>>> help(copy.deepcopy)
Help on function deepcopy in module copy:
deepcopy(x, memo=None, _nil=[])
Deep copy operation on arbitrary Python objects.
See the module's __doc__ string for more info.
>>> copy.deepcopy(range(5))
[0, 1, 2, 3, 4]
>>>