Thanks much for the answers. The own implementation of copy is the best solution for me. It works. <br><br>But allow me one question regarding the usage of "standard" CPython modules.<br><br>Who can i use them when using the IronPython-Studio? Haven't found any config-items inside yet.<br>
<br><br>Thank you and regards<br><br> Bernd<br><br><br><div><span class="gmail_quote">2008/3/27, Dave Fugate <<a href="mailto:dfugate@microsoft.com">dfugate@microsoft.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">If you replace 'deepcopy(x)' with 'copy(x)'
below it should work</span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);">J</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users-bounces@lists.ironpython.com</a>] <b>On
Behalf Of </b>Dave Fugate<br>
<b>Sent:</b> Thursday, March 27, 2008 9:56 AM<div><span class="e" id="q_118f1b748643e442_1"><br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] deepcopy() in IRONPY</span></div></span></p>
</div>
</div><div><span class="e" id="q_118f1b748643e442_3">
<p> </p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">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:</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">def copy(y):</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> if
type(y)!=list:</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">
return y</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> ret_val =
list(y)</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> return
[deepcopy(x) for x in ret_val]</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hope that helps!</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users-bounces@lists.ironpython.com</a>] <b>On
Behalf Of </b>Bernd Viehmann<br>
<b>Sent:</b> Wednesday, March 26, 2008 10:21 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] deepcopy() in IRONPY</span></p>
</div>
<p> </p>
<p style="margin-bottom: 12pt;">Hi Curt,<br>
<br>
thanks, but I am not allowed to install FePy on the Production-Server. So I
need a solution with pure IronPython ;-).<br>
<br>
Regards<br>
<br>
Bernd</p>
<div>
<p><span>2008/3/26, Curt Hagenlocher <<a href="mailto:curt@hagenlocher.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">curt@hagenlocher.org</a>>:</span></p>
<p>On Wed, Mar 26, 2008 at 8:04 AM, Bernd Viehmann<br>
<<a href="mailto:bernd.viehmann@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bernd.viehmann@googlemail.com</a>>
wrote:<br>
><br>
> How can i use the copy-module-functionality in ipy?<br>
<br>
<br>
Have you tried just using the py files that ship with CPython?<br>
<br>
You can get a distribution of IronPython that incorporates these files<br>
from Seo's FePy project at <a href="http://fepy.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://fepy.sourceforge.net</a><br>
<br>
<br>
--<br>
Curt Hagenlocher<br>
<a href="mailto:curt@hagenlocher.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">curt@hagenlocher.org</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></p>
</div>
<p> </p>
</span></div></div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>