Couldn't I use the [] syntax to tell IP what .Net type to use for each
parameter? (Where is there a good description of the []
syntax?)
At 01:05 PM 1/9/2006, Dino Viehland wrote
The
[] syntax is for generic types - not for method overloads.
Just for more info on method
overloads in genera
I very interest in developing some built-in module ,ex: _socketbecause of a exception,when I import a socket module (Standard Library of CPython)2006/1/6, dnguyen16 <
[EMAIL PROTECTED]>:Jim,Can I reply (with the resume) to this email thread or do you have a
different email that I can send it to?Tha
I have a unique module that I wrote that can either get to a Java API
(via Jython) or COM API (via Python +Win32). The scripts that access
this module generally don't know or care if they are running Java or
COM. Now, with IP 1.0 beta, I'm trying to make add a .Net API to the
module and am runni
Hi
Thanks for the reply!
I will look into the things you proposed, but just to let you all know - my project was referencing an older build IP and not the latest beta release. As soon as I realized that and changed it, the memory usage completely dropped down, event with creating a new instanc
I
wonder if this is the same problem I had a couple days ago (a bug with calling
multiple python methods). Turning GenerateDynamicMethods to false in
Options.cs and recompiling IronPython fixed my problem.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Beckiu
There is a syntax for
selecting the overload. However, I didn’t mention it because we want to
achieve state where the automatic binding we have satisfies most uses. More
importantly, the selection mechanism may change in the near future.
Having said that,
yes, it is possible to select t
There’s also the possibility of
using the new Compile & Execute APIs to pre-compile the script once and
then execute it over and over again. Those were added in beta 1 to help
improve this (I’m not sure if this will work in this specific scenario,
but it’s a thought).
The canonical hos
Hi,
I had
similar problems. I think major problem that I see with your code is that you
create a new PythonEngine object every time you execute new script. I suggest
caching the PythonEngine object or using object pooling. I also think the
setVariable might be not releasing the object.
I
The [] syntax is for generic types - not
for method overloads.
Just for more info on method overloads in
general – for those that have multiple method bindings we’ll hit our
ReflectedMethodBase.TryCall implementation. That will evaluate the
conversions for each argument and methods a
Isn't there a syntax (using []) by which you can tell IP explicitly which
one it should use? I was expecting you to say what you did, but to
add info about that as well.
At 12:48 AM 1/8/2006, Martin Maly wrote
Yes,
it will work on .NET. IronPython will try to find the best fit among the
overload
>>> l = [lambda x : x**2, lambda y : y**3, lambda z : z**4]>>> for x in l : print x(2)444
Matt B.-- Matt Beckius610.308.8827
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
11 matches
Mail list logo