[IronPython] NUNIT 2.4.7 and IP

2008-08-25 Thread Kaveripakam, Sathish
Hi All, I am trying to get the integration of NUNIT and iron python running ( http://blog.bittercoder.com/PermaLink,guid,86b0df08-9bb5-4d3b-a365-fdc7b 5d57942.aspx http://blog.bittercoder.com/PermaLink,guid,86b0df08-9bb5-4d3b-a365-fdc7 b5d57942.aspx ). Here is my environment: VS 2008, .NEt

Re: [IronPython] How to call a function passing parameters

2008-08-25 Thread Fernando Correia
Christian, thanks for your help. It worked. I'm going to share my result with the community: ScriptEngine engine = ScriptRuntime.Create().GetEngine(py); ScriptScope scope = engine.CreateScope(); scope.Execute(@ def calculate(operand1, operand2, operator): if operator == '+': return operand1 +

Re: [IronPython] NUNIT 2.4.7 and IP

2008-08-25 Thread Curt Hagenlocher
I don't know if Alex Henderson reads this mailing list. You should probably try emailing him directly -- his email address is on his blog. On Mon, Aug 25, 2008 at 1:31 AM, Kaveripakam, Sathish [EMAIL PROTECTED] wrote: Hi All, I am trying to get the integration of NUNIT and iron python

Re: [IronPython] Performance of IronPython 2 Beta 4 and IronPython 1

2008-08-25 Thread Curt Hagenlocher
On Sun, Aug 24, 2008 at 8:23 AM, Dan Eloff [EMAIL PROTECTED] wrote: A common python optimization is to replace: if key in dict: dict[key] with try: dict[key] except KeyError: pass The reasoning is that the try/except method is faster if no exception is thrown, i.e. you expect

Re: [IronPython] Performance of IronPython 2 Beta 4 and IronPython 1

2008-08-25 Thread Michael Foord
Curt Hagenlocher wrote: On Sun, Aug 24, 2008 at 8:23 AM, Dan Eloff [EMAIL PROTECTED] wrote: A common python optimization is to replace: if key in dict: dict[key] with try: dict[key] except KeyError: pass The reasoning is that the try/except method is faster if no exception is

Re: [IronPython] Performance of IronPython 2 Beta 4 and IronPython 1

2008-08-25 Thread Curt Hagenlocher
On Mon, Aug 25, 2008 at 9:04 AM, Michael Foord [EMAIL PROTECTED] wrote: Curt Hagenlocher wrote: It's always irritated me that Python dictionaries don't have the equivalent of TryGetValue. Like the 'get' method? Doh! I don't think that existed in Python 1.5 -- which is the version for which

[IronPython] trying to run .exe on another computer

2008-08-25 Thread Vadim Khaskel
Hi all, I'm trying to run executive file (myapp.exe) of my application found in debug folder along with myapp.pdb, IronMath.dll, IronPython.dll. So I'm trying to run this .exe file on another PC. ...I can not do that - nothing happens, not even single error message pops up. Please advise.

Re: [IronPython] CodeContext

2008-08-25 Thread Tomas Matousek
I see. We probably should have a method on ExceptionOperations that returns a list of stack frame information given an exception. There is also a private method on PythonOps that creates the traceback object and doesn't require CodeContext: CreateTraceBack. We might consider making it public.

Re: [IronPython] Users Digest, Vol 49, Issue 74

2008-08-25 Thread Michael Foord
attachment was scrubbed... URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment-0001.htm -- Message: 2 Date: Mon, 25 Aug 2008 17:23:47 + From: Vadim Khaskel [EMAIL PROTECTED] Subject: [IronPython] trying to run

Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re: trying to run .exe on another computer (Michael Foord))

2008-08-25 Thread Vadim Khaskel
://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment-0001.htm -- Message: 2 Date

Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re: trying to run .exe on another computer (Michael Foord))

2008-08-25 Thread Seshadri Pillailokam Vijayaraghavan
list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment-0001.htm

Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re: trying to run .exe on another computer (Michael Foord))

2008-08-25 Thread Srivatsn Narayanan
/attachments/20080825/ec5213ce/attachment-0001.htm -- Message: 2 Date: Mon, 25 Aug 2008 17:23:47 + From: Vadim Khaskel [EMAIL PROTECTED] Subject: [IronPython] trying to run .exe on another computer To: users@lists.ironpython.com Message-ID: [EMAIL PROTECTED

Re: [IronPython] CustomSymbolDictionary and conversions

2008-08-25 Thread Christian Schmidt
Hi sesh, thanks for your answer. What would be the approach to extend a ScriptScope by the properties of an object? Or in other words: How can I evaluate an expression in an object's scope? Any valid IronPython script snippet can be executed in the context of a scope. Since an expression is

Re: [IronPython] Users Digest, Vol 49, Issue 76

2008-08-25 Thread Vadim Khaskel
. ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment

Re: [IronPython] Users Digest, Vol 49, Issue 76

2008-08-25 Thread Seshadri Pillailokam Vijayaraghavan
://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment-0001.htm -- Message: 2

Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re: trying to run .exe on another computer

2008-08-25 Thread Michael Foord
-- next part -- An HTML attachment was scrubbed... URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment-0001.htm -- Message: 2 Date: Mon, 25 Aug 2008 17:23:47 + From: Vadim Khaskel [EMAIL PROTECTED

Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re: trying to run .exe on another computer

2008-08-25 Thread Srivatsn Narayanan
@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment-0001.htm

Re: [IronPython] DLRConsole for Silverlight 2Beta2

2008-08-25 Thread Jimmy Schementi
http://jimmy.schementi.com/silverlight/dlrconsole On 8/18/08 6:20 AM, Michael Foord [EMAIL PROTECTED] wrote: Hello all, Is there an updated version of the DLRConsole for Silverlight 2 Beta 2 online? I did a bit of hunting around and could only find the 2b1 version over at silverlight.net.

Re: [IronPython] DLRConsole for Silverlight 2Beta2

2008-08-25 Thread Jimmy Schementi
I did a bit of hunting around and could only find the 2b1 version over at silverlight.net. /me vents: I've had a request to update that site sitting for 2 weeks, ugh. Ever since I had to take down dyanmicsilverlight.net I've been a sad cookie. I think I'll put the site back up, under a