Re: [IronPython] Extension methods in python

2008-11-06 Thread Dino Viehland
e, object value) { this[name] = value; } From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marty Nelson Sent: Thursday, November 06, 2008 8:02 PM To: Discussion of IronPython Subject: Re: [IronPython] Extension methods in python Like a Christmas tree. __

Re: [IronPython] Extension methods in python

2008-11-06 Thread Marty Nelson
Like a Christmas tree. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland Sent: Thursday, November 06, 2008 7:20 PM To: Discussion of IronPython Subject: Re: [IronPython] Extension methods in python By custom class you mean a

Re: [IronPython] Extension methods in python

2008-11-06 Thread Dino Viehland
iha Valencic Sent: Thursday, November 06, 2008 9:08 AM To: Discussion of IronPython Subject: Re: [IronPython] Extension methods in python Marty, from what I understand you are passing a variable into python engine and want extension methods there? You can use something like that: import clr imp

Re: [IronPython] Extension methods in python

2008-11-06 Thread Marty Nelson
nt: Thursday, November 06, 2008 9:08 AM To: Discussion of IronPython Subject: Re: [IronPython] Extension methods in python Marty, from what I understand you are passing a variable into python engine and want extension methods there? You can use something like that: import clr import System cla

Re: [IronPython] Extension methods in python

2008-11-06 Thread Miha Valencic
Marty, from what I understand you are passing a variable into python engine and want extension methods there? You can use something like that: import clr import System class MyString(System.String): pass; def ToFoo(self): return self.upper()+' FooBarBaz' a = MyString("Hello world!"); p

Re: [IronPython] Extension methods in python

2008-11-05 Thread Dino Viehland
ET extension methods to existing types currently. It is a frequent request and we will probably get to it at some point. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marty Nelson Sent: Wednesday, November 05, 2008 1:50 PM To: Discussion of IronPython Subject: [IronPython] Exten

Re: [IronPython] Extension methods in python

2008-11-05 Thread Marty Nelson
s a frequent request and we will probably get to it at some point. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marty Nelson Sent: Wednesday, November 05, 2008 1:50 PM To: Discussion of IronPython Subject: [IronPython] Extension methods in python Is there the equivalent of e

Re: [IronPython] Extension methods in python

2008-11-05 Thread Dino Viehland
some point. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marty Nelson Sent: Wednesday, November 05, 2008 1:50 PM To: Discussion of IronPython Subject: [IronPython] Extension methods in python Is there the equivalent of extension method in python? I want to put a variable into

[IronPython] Extension methods in python

2008-11-05 Thread Marty Nelson
Is there the equivalent of extension method in python? I want to put a variable into the script scope and create extension methods for it. Does this make sense and is it possible? === Notice: This e-mail message, together with any attachments, contains information of Symyx Technologies, In