I stumbled across the following problem copying System.Int64:

 C:\>ipy

IronPython 1.1 (1.1) on .NET 2.0.50727.832

Copyright (c) Microsoft Corporation. All rights reserved.

>>> import copy

>>> from System import Int64

>>> x = Int64(3)

>>> x

3L

>>> copy.copy(x)

0L

>>> copy.deepcopy(x)

0L


Has anyone else come across this problem? Are there other types that will
produce wrong copies?

 My current workaround is to convert the Int64 to a long.

Some more notes:
I'm using IronPython 1.1 with CPython 2.4 standard library.
Doesn't happen with Int32

thanks
Ronnie
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to