[IronPython] bug with copy.copy of System.Int64?
Ronnie Maor
ronnie.maor at gmail.com
Fri Oct 19 23:38:13 CEST 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20071019/c6d0b067/attachment.html>
More information about the Ironpython-users
mailing list