Is there a DBNull value somewhere in your object?  DBNull is a singleton and 
I'd guess we'd need to add some custom logic which says the way we deserialize 
it is by pulling the singleton from DBNull.Value.  You can probably use 
copy_reg.pickle to register something which will handle objects of type DBNull 
that just returns DBNull.Value.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Pablo Dalmazzo
Sent: Thursday, June 10, 2010 7:57 AM
To: IronPython Mailing list
Subject: [IronPython] deepcopy

Hi there,

Im getting this error in the copy module. I moved the copy module from the 
IronPython 2.6 installation to work with
IronPython 2.0 for some compatibility problem I had with IronPython 2.6 dll 
with another dll we use.

The only difference I see between the cases which works and those which doesnt 
are, in the succesful case it is a custom class object "alone", and in the 
error case is the deepcopy of a custom class object which contains a list with 
other instances of that object.
Could that have anything to do with the problem? Is that a limitation of the 
copy module in Python or it should work?

error description:

No se puede encontrar el método 'DBNull..ctor'.

Error de código fuente:

Línea 322:        args = deepcopy(args, memo)

Línea 323:

Línea 324:    y = callable(*args)

Línea 325:

Línea 326:    memo[id(x)] = y


Archivo de origen: /SistemaVentaBaseIP2/App_Script/copy.py
________________________________
Hotmail es más seguro. Con el Filtro Anti Spam tu cuenta está mucho más 
protegida. Ver más<http://www.descubrehotmail.com/anti-spam.asp%20>
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to