<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi there,<br><br>part of this question was posted by one of my co-workers in SO, but I thought it wouldnt hurt making it here too and more specific.<br><br>We wanted to use deepcopy in an IronPython 2.6 asp.net webforms project. We abandoned the idea because it brought<br>as conflict with a dll we use (cooperator.framework.web.dll) . It said an attribute was ambiguos in the namespace (sort of)<br><br>We went back to IronPython 2.0, there we dont have that problem. So I took the copy.py and type.py modules from<br>the IronPython 2.6 installation and moved them to the app_script folder of an IronPython asp.net project to see if they worked. <br><br>They would seem to be working (the import didnt trigger any error and the copy.deepcopy didnt trigger any error either),<br>but when we deepcopy a custom class object, the problem we have it's it seems it copies the attributes (that's 
what it shows the object inspector) but not everything in the object. 

<br><BR>When we try to do getattr(object, attribute) we get "  object has no 
attribute '<strong>getitem</strong>'" . But the object it's there and it
 has set its attributes. <BR>

<br><BR>Now in the copy module it says <BR>

"This version does not copy types like module, class, function, 
method,
nor stack trace, stack frame, nor file, socket, window, nor array, nor
any similar types."<BR>

Does that mean the deepcopy we are making of the object it's not copying 
its methods (methods like <strong>getitem</strong> ) ? or simply the copy.py and type.py modules dont work well in IronPython 2.0? Or is it something else? <br><BR><br><BR>Greetings, Pablo<br><BR><br><BR><br><BR><br>                                               <br /><hr />Tu vida no tiene límites, ahora Hotmail tampoco. 25 GB para organizar y compartir todo. <a href='http://www.descubrehotmail.com/almacenamiento.asp ' target='_new'>Ver más</a></body>
</html>