[IronPython] deepcopy() in IRONPY
dfugate at microsoft.com
Thu Mar 27 17:56:29 CET 2008
We sort of have a similar problem with respect to IronPython tests - the tests we ship on CodePlex need to run without dependencies on standard CPython libraries. What we did for the case of the 'copy' module was to reimplement the functionality needed in pure Python. For example, a naive implementation of copy.deepcopy might look like the following:
ret_val = list(y)
return [deepcopy(x) for x in ret_val]
Hope that helps!
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Bernd Viehmann
Sent: Wednesday, March 26, 2008 10:21 PM
To: Discussion of IronPython
Subject: Re: [IronPython] deepcopy() in IRONPY
thanks, but I am not allowed to install FePy on the Production-Server. So I need a solution with pure IronPython ;-).
2008/3/26, Curt Hagenlocher <curt at hagenlocher.org<mailto:curt at hagenlocher.org>>:
On Wed, Mar 26, 2008 at 8:04 AM, Bernd Viehmann
<bernd.viehmann at googlemail.com<mailto:bernd.viehmann at googlemail.com>> wrote:
> How can i use the copy-module-functionality in ipy?
Have you tried just using the py files that ship with CPython?
You can get a distribution of IronPython that incorporates these files
from Seo's FePy project at http://fepy.sourceforge.net
curt at hagenlocher.org<mailto:curt at hagenlocher.org>
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users