It appears to be because int is a very large long. This is probably the core issue:
In IronPython: >>> a=143098242404177361603877621312831893704 Traceback (most recent call last): OverflowError: Number overflow. >>> a=143098242404177361603877621312831893704L >>> a 143098242404177361603877621312831893704L In Python: >>> a=143098242404177361603877621312831893704 >>> a 143098242404177361603877621312831893704L >>> a=143098242404177361603877621312831893704L >>> a 143098242404177361603877621312831893704L >>> Tristan On Tue, Feb 22, 2011 at 1:39 PM, Tristan Zajonc <trist...@gmail.com> wrote: > >>> 1<<128 > 340282366920938463463374607431768211456L > > Thomas: Hadn't tried that and it works. (At some point it might be nice to > try to get it working with MonoDevelop GUI. When I load it it's targeting > .NET 2.0 and has a bunch of issues.) > > Tristan > > On Tue, Feb 22, 2011 at 12:34 PM, Jeff Hardy <jdha...@gmail.com> wrote: > >> On Tue, Feb 22, 2011 at 12:42 AM, Tristan Zajonc <trist...@gmail.com> >> wrote: >> > IronPython 2.7 RC 1 (2.7.0.30) on .NET 4.0.30319.1 >> > Type "help", "copyright", "credits" or "license" for more information. >> >>>> import uuid >> > Number overflow. >> > at System.Numerics.BigInteger.op_Explicit (System.Numerics.BigInteger) >> > <0x000aa> >> > at Microsoft.Scripting.Utils.MathUtils.AsInt32 >> > (System.Numerics.BigInteger,int&) <0x00067> >> > at IronPython.Runtime.Operations.BigIntegerOps.Compare >> > (System.Numerics.BigInteger,int) <0x00028> >> > at (wrapper dynamic-method) object.CallSite.Target >> > >> (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) >> > <0x0011d> >> > at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, object, >> object> >> > (System.Runtime.CompilerServices.CallSite,object,object) <0x00382> >> > at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, object, >> > object>.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x000bc> >> > at Microsoft.Scripting.Interpreter.Interpreter.Run >> > (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00077> >> > OverflowError: Number overflow. >> >> This *looks* like an issue in Mono, especially since it works on .NET. >> >> Can you try computing '1<<128' on Mono? That seems to be the failing >> expression. >> >> - Jeff >> > >
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com