[IronPython] Unum problem
Sanghyeon Seo
sanxiyn at gmail.com
Fri Oct 13 20:18:51 CEST 2006
2006/10/14, Sanghyeon Seo <sanxiyn at gmail.com>:
> unum/__init__.py line 174 has:
> "if conv is 0"
>
> This is bad and no-no. It is an undefined behaviour to compare numbers
> by reference.
And it is documented in IronPython Differences. So no execuse.
"Small integer caching in IronPython is different than in standard
CPython. If you set i = 2 and then test "i is 2", the code produces
different results in IronPython and CPython."
--
Seo Sanghyeon
More information about the Ironpython-users
mailing list