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 &quot;standard&quot; CPython modules.<br><br>Who can i use them when using the IronPython-Studio? Haven&#39;t found any config-items inside yet.<br>
<br><br>Thank you and regards<br><br>&nbsp;Bernd<br><br><br><div><span class="gmail_quote">2008/3/27, Dave Fugate &lt;<a href="mailto:dfugate@microsoft.com">dfugate@microsoft.com</a>&gt;:</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);">&nbsp;</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>&nbsp;</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.&nbsp; What we did for the case of the
'copy' module was to reimplement the functionality needed in pure
Python.&nbsp; 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);">&nbsp;&nbsp;&nbsp; if
type(y)!=list:</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
return y</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;&nbsp;&nbsp; ret_val =
list(y)</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;&nbsp;&nbsp; return
[deepcopy(x) for x in ret_val]</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</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);">&nbsp;</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>&nbsp;</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>
&nbsp; Bernd</p>

<div>

<p><span>2008/3/26, Curt Hagenlocher &lt;<a href="mailto:curt@hagenlocher.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">curt@hagenlocher.org</a>&gt;:</span></p>

<p>On Wed, Mar 26, 2008 at 8:04 AM, Bernd Viehmann<br>
&lt;<a href="mailto:bernd.viehmann@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bernd.viehmann@googlemail.com</a>&gt;
wrote:<br>
&gt;<br>
&gt; 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&#39;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>&nbsp;</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>