Re: [IronPython] Is it possible to set a maximum loop size for scripts?

2009-04-18 Thread Alex News
In the general case this isn't possible: http://en.wikipedia.org/wiki/Halting_problem Perhaps some sort of timeout logic would work for you? I.e. kill the script if it is still running after some predetermined amount of time. I do not know if IronPython has any such functionality built in, but

[IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Alex News
I would like to write some functions and classes in csharp that interact nicely python. I would like to write a function that can respond to keyword arguments, and a class that can dynamically resolve __getattr__. For the function I tried creating a function that takes a

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Alex News
class and override TryGetMember.  Then it'll work not only w/ Python but w/ other DLR based languages as well (e.g. C#, VB.NET, IronRuby, etc...). -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Alex News Sent

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Alex News
this naming discrepancy today, and I think we should probably move it to at least Microsoft.Dynamic for the 2.6 release.) On Tue, Apr 14, 2009 at 8:31 AM, Alex News anlee...@gmail.com wrote: Much appreciated, I will give that a try.  In what namespace is DynamicObject declared?  (I assume

Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes?

2009-04-14 Thread Alex News
To: Discussion of IronPython Subject: Re: [IronPython] **kwargs and __getattr__ handling in csharp functions and classes? It should be Microsoft.Scripting.DynamicObject in 2.0. On Tue, Apr 14, 2009 at 11:02 AM, Alex News anlee...@gmail.com wrote: Current IronPython = 2.01?  I have

Re: [IronPython] IronPython in Action Out!

2009-04-11 Thread Alex News
Some proportion comes back - god knows no-one writes technical books to get rich though! I do slightly better if you buy it through one of the links on http://www.ironpythoninaction.com/ Done. I look forward to reading it! Alex On 4/10/09, Michael Foord fuzzy...@voidspace.org.uk wrote:

[IronPython] RuntimeType from PythonType in C# code

2009-04-09 Thread Alex News
I have embedded IronPython 2.01 into my C# application, and am extremely impressed by the ease of integration and the interoperability with the .NET types. However I am a bit stumped by something that probably is quite simple. 1) In a python script, I import one of my application types. 2) From

Re: [IronPython] RuntimeType from PythonType in C# code

2009-04-09 Thread Alex News
and the conversion will happen automatically. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Alex News Sent: Thursday, April 09, 2009 9:14 AM To: users@lists.ironpython.com Subject: [IronPython] RuntimeType from