[IronPython] Fix for 29928
Hi All, I tried to apply the fix as suggested by Dino for 29928. I have submitted a pull request, kindly review. Per my test, it took less than 1 sec (0.01 sec) for a 40 Or expression. Prior to the changes, 3 hours is not enough to complete the statement on a reasonably fast machine. #Haniti# ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Non-English Version of Win XP needed
On Sun, Feb 13, 2011 at 10:15 PM, Simon Dahlbacka simon.dahlba...@gmail.com wrote: Works for me also. Swedish xp(sv-FI) On Feb 14, 2011 7:11 AM, Jeff Hardy jdha...@gmail.com wrote: I'd like one other person to confirm this is fixed before I close - Spanish or German preferably, since they are mentioned in the bug. - Jeff On Sun, Feb 13, 2011 at 12:20 AM, Jörgen Stenarson jorgen.stenar...@bostream.nu wrote: Jeff Hardy skrev 2011-02-13 06:25: It looks like http://ironpython.codeplex.com/workitem/14022 will only repro on non-english versions of XP that use , as the decimal separator instead of . If you have one of those, can you see if the issue is still present in 2.7B2. From the notes, it looks like just changing the locale is not enough - it has to be a non-english version. - Jeff ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com Hi, I could not reproduce the problem on my machine (swedish windows xp) IronPython 2.7 Beta 2 (2.7.0.20) on .NET 4.0.30319.1 Type help, copyright, credits or license for more information. 3.14 3.14 3,14 (3, 14) import math 3.14159265359 3.14159265359 float(repr(float(repr(math.pi 3.141592653589793 /Jörgen ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com I installed a German version of Windows in a VM and it behaves the same as CPython 2.7 Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. 3.14 3.14 3,14 (3, 14) import math math.pi 3.141592653589793 float(repr(float(repr(math.pi 3.141592653589793 ^Z IronPython 2.7 Beta 2 (2.7.0.20) on .NET 4.0.30319.1 Type help, copyright, credits or license for more information. 3.14 3.14 3,14 (3, 14) import math math.pi 3.141592653589793 float(repr(float(repr(math.pi 3.141592653589793 ^Z -- slide-o-blog http://slide-o-blog.blogspot.com/ ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Non-English Version of Win XP needed
Thanks, guys! I'll close it off now. - Jeff On Mon, Feb 14, 2011 at 7:03 AM, Slide slide.o@gmail.com wrote: On Sun, Feb 13, 2011 at 10:15 PM, Simon Dahlbacka simon.dahlba...@gmail.com wrote: Works for me also. Swedish xp(sv-FI) On Feb 14, 2011 7:11 AM, Jeff Hardy jdha...@gmail.com wrote: I'd like one other person to confirm this is fixed before I close - Spanish or German preferably, since they are mentioned in the bug. - Jeff On Sun, Feb 13, 2011 at 12:20 AM, Jörgen Stenarson jorgen.stenar...@bostream.nu wrote: Jeff Hardy skrev 2011-02-13 06:25: It looks like http://ironpython.codeplex.com/workitem/14022 will only repro on non-english versions of XP that use , as the decimal separator instead of . If you have one of those, can you see if the issue is still present in 2.7B2. From the notes, it looks like just changing the locale is not enough - it has to be a non-english version. - Jeff ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com Hi, I could not reproduce the problem on my machine (swedish windows xp) IronPython 2.7 Beta 2 (2.7.0.20) on .NET 4.0.30319.1 Type help, copyright, credits or license for more information. 3.14 3.14 3,14 (3, 14) import math 3.14159265359 3.14159265359 float(repr(float(repr(math.pi 3.141592653589793 /Jörgen ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com I installed a German version of Windows in a VM and it behaves the same as CPython 2.7 Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. 3.14 3.14 3,14 (3, 14) import math math.pi 3.141592653589793 float(repr(float(repr(math.pi 3.141592653589793 ^Z IronPython 2.7 Beta 2 (2.7.0.20) on .NET 4.0.30319.1 Type help, copyright, credits or license for more information. 3.14 3.14 3,14 (3, 14) import math math.pi 3.141592653589793 float(repr(float(repr(math.pi 3.141592653589793 ^Z -- slide-o-blog http://slide-o-blog.blogspot.com/ ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
[IronPython] Compiling with MonoDevelop on OSX
Has anybody managed to get the IronPython solution to compile using Mono/MonoDevelop on a platform other than Windows? My efforts quickly led me to make more changes to the sources than I'd prefer. Given that a number of bugs are OSX specific, it's much easier to fix them on OSX rather than go back and forth between OSs just to use Visual Studio. Best, Tristan ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
[IronPython] sqlite3 + IP 2.7
Hello all, I've managed to get the sqlite3 module ( https://bitbucket.org/jdhardy/ironpython.sqlite/src) working under IronPython 2.6, but it doesn't seem to work with 2.7. I couldn't find any info about compatibility with 2.7, so I'd like to know whether this is a known issue or maybe the installation instructions for 2.7 are different? The specific error I'm getting is that IronPython can't import the _sqlite3 module. Regards, Guillermo ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] sqlite3 + IP 2.7
Hi Guillermo, I haven't tried that module against 2.7 in a while, but it should mostly work. You'll have to build from source and adjust the references to point to 2.7B2 - the downloadable packages are 2.6 only. I'll update the downloads to 2.7 shortly after it's released. - Jeff On Mon, Feb 14, 2011 at 3:46 PM, Guillermo López guillermo.listas+ironpyt...@googlemail.com wrote: Hello all, I've managed to get the sqlite3 module (https://bitbucket.org/jdhardy/ironpython.sqlite/src) working under IronPython 2.6, but it doesn't seem to work with 2.7. I couldn't find any info about compatibility with 2.7, so I'd like to know whether this is a known issue or maybe the installation instructions for 2.7 are different? The specific error I'm getting is that IronPython can't import the _sqlite3 module. Regards, Guillermo ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
[IronPython] ScriptScope.SetVariable tip
Just sharing something I discovered today that surprised me a little. I use ScriptScopes extensively throughout my hosted code to try and prevent interaction between separate scripts. In most cases, since I'm dealing with user-provided keys, I don't cast them to dynamic but access their contents through GetVariable() and SetVariable(). Dynamic lookup is still available though, and appears to be applied partway through overload resolution: 1. Non-dynamic members with exact parameter match - eg. scope.SetVariable(string, object) 2. Dynamic members 3. Non-dynamic members with casts required - eg. scope.SetVariable(string, something castable to object) The result of this being that if you set a variable with a value that derives from object, you pay for a dynamic lookup (which includes an exception, which is how I noticed this). Casting the value to object (ie. scope.SetVariable(value, (object)value)) avoids this, and you only get the penalty for failing to find the existing variable (unless it already exists, obviously). Now, to see if I can reduce those endless StopIteration exceptions... ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com