<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 12/10/2010 15:29, Pablo Dalmazzo wrote:
<blockquote cite="mid:SNT104-W12DEBAB1E617EE3652F64BD0540@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<span class="Apple-style-span" style="font-family:
Tahoma,Verdana,Arial,sans-serif; color: rgb(42, 42, 42);">Hello
guys,
<div style="line-height: 17px;"><br style="line-height: 17px;">
</div>
<div style="line-height: 17px;">we've found a bug in the copy
module, but the real problem is we cant reproduce it. </div>
<div style="line-height: 17px;"><br style="line-height: 17px;">
</div>
<div style="line-height: 17px;">Sometimes when we try to
deepcopy an object of a custom object relation mapping type,
we get this error</div>
<div style="line-height: 17px;"><br style="line-height: 17px;">
</div>
<div style="line-height: 17px;">"name types is not defined"</div>
<div style="line-height: 17px;"><br style="line-height: 17px;">
</div>
<div style="line-height: 17px;">Line 55: </div>
<div style="line-height: 17px;">for t in
(type(None),int,long,float,bool,str,tuple),
frozenset,type,xrange,types.ClassType,types.BuiltinFunctionType,
type(Ellipsis),</div>
<div style="line-height: 17px;"><br style="line-height: 17px;">
</div>
</span></blockquote>
In my version of Python 2.6 this is line 102 of the copy module.
Line 51 is "import types", so a "name types is not defined" error is
most perplexing. Is it possible that you are using a custom version
of the copy module?<br>
<br>
All the best,<br>
<br>
Michael<br>
<br>
<br>
<blockquote cite="mid:SNT104-W12DEBAB1E617EE3652F64BD0540@phx.gbl"
type="cite"><span class="Apple-style-span" style="font-family:
Tahoma,Verdana,Arial,sans-serif; color: rgb(42, 42, 42);">
<div style="line-height: 17px;">the other problem is in
production server, where this error uses to happen
sporadically, most times we dont get this message but an error
message of the most outer module which calls the copy module,
which is a generic message which tells us nothing </div>
<div style="line-height: 17px;"><br style="line-height: 17px;">
</div>
<div style="line-height: 17px;">I know this is very little
information to find a bug but, do you know of any bugs related
to the module copy (aside it didnt copy System.DBnull which I
believe it's not the one for this case)</div>
<div style="line-height: 17px;"><br style="line-height: 17px;">
</div>
<div style="line-height: 17px;">Greetings, Pablo Dalmazzo</div>
</span>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/">http://www.voidspace.org.uk/</a>
READ CAREFULLY. By accepting and reading this email you agree,
on behalf of your employer, to release me from all obligations
and waivers arising from any and all NON-NEGOTIATED agreements,
licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap,
confidentiality, non-disclosure, non-compete and acceptable use
policies (”BOGUS AGREEMENTS”) that I have entered into with your
employer, its partners, licensors, agents and assigns, in
perpetuity, without prejudice to my ongoing rights and privileges.
You further represent that you have the authority to release me
from any BOGUS AGREEMENTS on behalf of your employer.
</pre>
</body>
</html>