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
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
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
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
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ó
__
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
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
-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())
> 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
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
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
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
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
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:
>
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,
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
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
17 matches
Mail list logo