Re: [IronPython] Getting function argument names from hosting

2009-07-24 Thread Dino Viehland
ObjectOperations.GetCallSignatures: import clr clr.AddReference('IronPython') from IronPython.Hosting import Python x = Python.CreateEngine() def f(a, b, c): pass x.Operations.GetCallSignatures(f) prints: Array[str](('f(a, b, c)')) > -Original Message- > From: users-boun...@lists.ironp

[IronPython] Getting function argument names from hosting

2009-07-24 Thread Jeff Hardy
Hi all, >From the hosting side, is there a way to get the names of a function's arguments? The DLR equivalent of MethodInfo.GetParamters(), essentially, is what I'm looking for (or a way to get an actual MethodInfo would be nice as well). - Jeff ___ User

Re: [IronPython] [ANN]: IronPython 2.6 Beta 2

2009-07-24 Thread Count László de Almásy
i hadn't really considered that to be honest. i found this page on the Mono runtime which is pretty interesting- http://mono-project.com/Mono:Runtime it mentions ngen: "When an assembly (a Mono/.NET executable) is installed in the system, it is then be possible to pre-compile the code, and have t

Re: [IronPython] [ANN]: IronPython 2.6 Beta 2

2009-07-24 Thread Dino Viehland
YMMV on Mono - their 64-bit could have different performance characteristics than our 64-bit JIT. On Windows it's a big win because the 32-bit JIT is much, much faster than the 64-bit JIT. Also does Mono have something like ngen? If so you should definitely use it and you'll get much improved st

Re: [IronPython] [ANN]: IronPython 2.6 Beta 2

2009-07-24 Thread Count László de Almásy
On Thu, Jul 23, 2009 at 10:07 AM, Dave Fugate wrote: > Quite simply put IronPython users with 64-bit OSes will see around a 33% > improvement to > IronPython startup time under ipy.exe! Great news. I am on 64-bit Linux, and startup time is significantly slower than CPython. -- Cheers, László __

Re: [IronPython] how to use Predicates in IPy?

2009-07-24 Thread Count László de Almásy
Thanks Dino, i got it working. Good thread for the archive too. On Fri, Jul 24, 2009 at 2:24 PM, Dino Viehland wrote: > Is this actually a List or something that just happens > to have a similar FindAll method?  It looks like List only > has a single overload so it works there. > > In this case yo

Re: [IronPython] sympy on IP 2.6B2

2009-07-24 Thread Michael Foord
Dino Viehland wrote: -X:FullFrames promotes all local variables into the heap. So you can always crawl the stack and look/change them for all methods. -X:Frames only creates the frame objects and if something happens to make us promote local variables (e.g. a closure, or a call to locals(), exe

Re: [IronPython] sympy on IP 2.6B2

2009-07-24 Thread Dino Viehland
-X:FullFrames promotes all local variables into the heap. So you can always crawl the stack and look/change them for all methods. -X:Frames only creates the frame objects and if something happens to make us promote local variables (e.g. a closure, or a call to locals(), exec, eval, dir(), vars())

Re: [IronPython] Problem with Creating Executable using SharpDevelop

2009-07-24 Thread Kelie
> On Jul 17, 10:07 am, Bruce Bromberek > > Make sure the Target machine has been upgraded to .Net 3.5 SP1.  Don't take > > any flack - make them upgrade.* This fixed the problem. Works on both XP and Vista. Thanks again Bruce! ___ Users mailing list Use

Re: [IronPython] sympy on IP 2.6B2

2009-07-24 Thread Michael Foord
Try running it with frames switched on: ipy.exe -X:Frames or: ipy.exe -X:FullFrames Perhaps Dino can explain what the difference is between these two modes... :-) Michael Jeffrey Sax wrote: According to the archives, some version of sympy worked on IP 1.x at some point in the distan

[IronPython] sympy on IP 2.6B2

2009-07-24 Thread Jeffrey Sax
According to the archives, some version of sympy worked on IP 1.x at some point in the distant past. Now, with the latest version of both (sympy 0.6.5 on IronPython 2.6.B2), I get this: PS C:\Program Files (x86)\IronPython 2.6> .\ipy.exe IronPython 2.6 Beta 2 (2.6.0.20) on .NET 2.0.50727.4918 Type

Re: [IronPython] [ANN]: IronPython 2.6 Beta 2

2009-07-24 Thread Dino Viehland
I'll take a look and see what we can do. I think we've largely been ignoring it because we don't directly own our own COM support (it comes from the DLR) but maybe there's something we can do here. On the tests we do generally include only passing tests. Sometimes we will add failing tests to

Re: [IronPython] how to use Predicates in IPy?

2009-07-24 Thread Dino Viehland
Is this actually a List or something that just happens to have a similar FindAll method? It looks like List only has a single overload so it works there. In this case you can do: Predicate[UInt32](lambda x: True) Or Predicate[Primitive](lambda x: True) To construct the delegate explicitly depen

Re: [IronPython] how to use Predicates in IPy?

2009-07-24 Thread Count László de Almásy
both attempts give a TypError: >>> sim.ObjectsPrimitives.FindAll(lambda inst:True) Traceback (most recent call last): File "", line 1, in TypeError: Multiple targets could match: FindAll(Predicate[UInt32]), FindAll(Predicate[Primitive]) On Fri, Jul 24, 2009 at 10:15 AM, Dino Viehland wrote: >

Re: [IronPython] how to use Predicates in IPy?

2009-07-24 Thread Dino Viehland
You can just do: x.FindAll(lambda inst:True) or: def MyPredicate(obj): return True x.FindAll(MyPredicate) > -Original Message- > From: users-boun...@lists.ironpython.com [mailto:users- > boun...@lists.ironpython.com] On Behalf Of Count László de Almásy > Sent: Friday, July 24,

[IronPython] IronPython 2.6 CodePlex Source Update

2009-07-24 Thread merllab
This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/57140. ADDED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/UnboundNameEx

[IronPython] how to use Predicates in IPy?

2009-07-24 Thread Count László de Almásy
I've been unable to find any examples of how to define/use Predicates in IPy, as for use with .NET's List(T).FindAll method. Specifically I'm trying to use http://lib.openmetaverse.org/docs/trunk/html/M_OpenMetaverse_InternalDictionary_2_FindAll_1.htm Anyway, if someone could help with an example