Re: [IronPython] .Net attributes/decorators

2010-05-18 Thread Hank Fay
:* [IronPython] .Net attributes/decorators In reviewing the discussion of .Net decorators in the list (thank you Google Groups), I did not come across a discussion of what I saw as the central issue: is IronPython to be a Superset of Python (every Python program will run in IronPython, not every

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Lukas Cenovsky
( fget=self.fget, fset=newsetter, fdel=self.fdel, doc=self.__doc__) *From:* Lukas Cenovsky [mailto:cenov...@bakalari.cz] *Sent:* Thursday, November 12, 2009 11:01 AM *To:* Shri Borde *Subject:* Re: [IronPython] .NET attributes for methods Shri Borde

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Lukas Cenovsky
=self.fdel, doc=self.__doc__) *From:* Lukas Cenovsky [mailto:cenov...@bakalari.cz] *Sent:* Thursday, November 12, 2009 11:01 AM *To:* Shri Borde *Subject:* Re: [IronPython] .NET attributes for methods Shri Borde wrote: So the new clrtype.py still works - cool! Yep ;-) I am

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Shri Borde
instance. Will look into it, but I doubt it will help you with data binding. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Friday, November 13, 2009 5:42 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Lukas Cenovsky
...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] *On Behalf Of *Lukas Cenovsky *Sent:* Friday, November 13, 2009 5:42 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] .NET attributes for methods This looks very promising but I cannot make it work. I have changed

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Lukas Cenovsky
of IronPython *Subject:* Re: [IronPython] .NET attributes for methods This looks very promising but I cannot make it work. I have changed product.py in DevHawk's example to: #from clrtypeold import ClrMetaclass import clrtype class Product(object): #__metaclass__ = ClrMetaclass __metaclass__

Re: [IronPython] .NET attributes for methods

2009-11-12 Thread Shri Borde
use any feature not available in Silverlight? From: Lukas Cenovsky [mailto:cenov...@bakalari.cz] Sent: Thursday, November 12, 2009 8:09 AM To: Shri Borde Subject: Re: [IronPython] .NET attributes for methods Thanks, that works! What do you think would be the best approach to create notifiable

Re: [IronPython] .NET attributes for methods

2009-11-12 Thread Curt Hagenlocher
[mailto:cenov...@bakalari.cz] *Sent:* Thursday, November 12, 2009 8:09 AM *To:* Shri Borde *Subject:* Re: [IronPython] .NET attributes for methods Thanks, that works! What do you think would be the best approach to create notifiable properties for Silverlight? I did it for WPF (via decorators

Re: [IronPython] .NET attributes for methods

2009-11-10 Thread Lukas Cenovsky
Cenovsky Sent: Thursday, October 22, 2009 10:37 AM To: Discussion of IronPython Subject: [IronPython] .NET attributes for methods Hi, I have read all DewHawk blogposts about .Net attributes in IronPython via __clrtype__ metaclass (http://devhawk.net/CategoryView,category,__clrtype__.aspx). He

Re: [IronPython] .NET attributes for methods

2009-11-10 Thread Shri Borde
the object and also make sure that no exceptions were thrown? From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Tuesday, November 10, 2009 2:59 PM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes for methods I

Re: [IronPython] .NET attributes for methods

2009-11-02 Thread Lukas Cenovsky
not get called) This does not work today... *From:* users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] *On Behalf Of *Lukas Cenovsky *Sent:* Friday, October 30, 2009 10:41 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] .NET attributes for methods

Re: [IronPython] .NET attributes for methods

2009-11-02 Thread Shri Borde
-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Monday, November 02, 2009 9:29 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes for methods I was thinking about this... Does ir mean that (after adding such support

Re: [IronPython] .NET attributes for methods

2009-10-30 Thread Lukas Cenovsky
than DllImport for pinvokes)... -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Thursday, October 22, 2009 10:37 AM To: Discussion of IronPython Subject: [IronPython] .NET attributes for methods Hi, I

Re: [IronPython] .NET attributes for methods

2009-10-30 Thread Shri Borde
of IronPython Subject: Re: [IronPython] .NET attributes for methods Thanks. I wanted to implement WCF service in pure Ironpython but I overlooked the [OperationContract] method attribute is used in the interface declaration. Anyway, thanks to class attributes it is now possible to implement the WCF

Re: [IronPython] .NET attributes

2006-09-15 Thread Charlie Moad
On 9/14/06, Dino Viehland [EMAIL PROTECTED] wrote: We're tentatively thinking that this is a 2.0 feature but if we figured out a syntax we really liked we'd try to get it into 1.1. It seems as if there are two clean ways to do this in my mind. 1. Use python2.4's decorator sytax and extend it

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Charlie Moad wrote: On 9/14/06, Dino Viehland [EMAIL PROTECTED] wrote: We're tentatively thinking that this is a 2.0 feature but if we figured out a syntax we really liked we'd try to get it into 1.1. It seems as if there are two clean ways to do this in my mind. 1. Use

Re: [IronPython] .NET attributes

2006-09-15 Thread Hernan M Foffani
We're tentatively thinking that this is a 2.0 feature but if we figured out a syntax we really liked we'd try to get it into 1.1. It seems as if there are two clean ways to do this in my mind. 1. Use python2.4's decorator sytax and extend it to allow class and class variable

Re: [IronPython] .NET attributes

2006-09-15 Thread Charlie Moad
On 9/15/06, Michael Foord [EMAIL PROTECTED] wrote: Charlie Moad wrote: On 9/14/06, Dino Viehland [EMAIL PROTECTED] wrote: We're tentatively thinking that this is a 2.0 feature but if we figured out a syntax we really liked we'd try to get it into 1.1. It seems as if there are two

Re: [IronPython] .NET attributes

2006-09-15 Thread David Fraser
Charlie Moad wrote: On 9/15/06, Michael Foord [EMAIL PROTECTED] wrote: Charlie Moad wrote: On 9/14/06, Dino Viehland [EMAIL PROTECTED] wrote: We're tentatively thinking that this is a 2.0 feature but if we figured out a syntax we really liked we'd try to get it into 1.1.

Re: [IronPython] .NET attributes

2006-09-15 Thread Charlie Moad
Take away decorator support and you'll lose at least this Python programmer... Decorators and attributes have at least some commonality, which is why this syntax ended up in Python in the first place... Allowing decorator syntax in places CPython doesn't is better than not allowing it where

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Charlie Moad wrote: Take away decorator support and you'll lose at least this Python programmer... Decorators and attributes have at least some commonality, which is why this syntax ended up in Python in the first place... Allowing decorator syntax in places CPython doesn't is better than not

Re: [IronPython] .NET attributes

2006-09-15 Thread Charlie Moad
On 9/15/06, Michael Foord [EMAIL PROTECTED] wrote: Charlie Moad wrote: Take away decorator support and you'll lose at least this Python programmer... Decorators and attributes have at least some commonality, which is why this syntax ended up in Python in the first place... Allowing

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Charlie Moad wrote: On 9/15/06, Michael Foord [EMAIL PROTECTED] wrote: Charlie Moad wrote: Take away decorator support and you'll lose at least this Python programmer... Decorators and attributes have at least some commonality, which is why this syntax ended up in Python in the

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Charlie Moad wrote: On 9/15/06, Michael Foord [EMAIL PROTECTED] wrote: Charlie Moad wrote: Take away decorator support and you'll lose at least this Python programmer... Decorators and attributes have at least some commonality, which is why this syntax ended up in Python in the

Re: [IronPython] .NET attributes

2006-09-15 Thread Dino Viehland
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Moad Sent: Friday, September 15, 2006 7:46 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes On 9/15/06, Michael Foord [EMAIL PROTECTED] wrote: Charlie Moad wrote: Take away decorator support and you'll lose

Re: [IronPython] .NET attributes

2006-09-15 Thread Hernan M Foffani
Charlie's earlier point about all the different targets is a really good one though - worse than even properties are things like arguments, return types, etc... that won't fit in at all w/ decorators. You could imagine allowing the syntax anywhere, but there'd be no way to disambiguate

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Moad Sent: Friday, September 15, 2006 7:46 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes On 9/15/06, Michael Foord [EMAIL PROTECTED] wrote: Charlie Moad wrote: Take away

[IronPython] .NET attributes

2006-09-13 Thread Sanghyeon Seo
What is the expected timeline for support for .NET attributes in IronPython? -- Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] .NET attributes

2006-09-13 Thread Aaron Marten
PROTECTED] On Behalf Of Charlie Moad Sent: Wednesday, September 13, 2006 5:42 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes I have seen these examples, but my impression was that they are not useable. The generic web site one may be, but I am pretty sure the web service

Re: [IronPython] NET Attributes.

2006-07-27 Thread Tim Riley
zyman http://www.voidspace.org.uk/python/index.shtml Martin *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] *On Behalf Of *Tim Riley *Sent:* Wednesday, July 26, 2006 10:17 AM *To:* Discussion of IronPython *Subject:* [IronP

[IronPython] NET Attributes.

2006-07-26 Thread Tim Riley
Is it possible to use .NET attributes in IronPython? For example I have C# code that looks like:[CommandMethod(MyCommand, CommandFlags.Modal)]public static void RunMyCommand(){ 'code here }Can I do something similiar in IP? I'll take anything. ___ users

Re: [IronPython] NET Attributes.

2006-07-26 Thread Michael Foord
:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Tim Riley *Sent:* Wednesday, July 26, 2006 10:17 AM *To:* Discussion of IronPython *Subject:* [IronPython] NET Attributes. Is it possible to use .NET attributes in IronPython? For example I have C# code that looks like

Re: [IronPython] .NET Attributes

2006-03-28 Thread Dino Viehland
To: Discussion of IronPython Subject: Re: [IronPython] .NET Attributes I wouldn't give up completely on using decorators for classes. True, Python 2.4 doesn't support them on classes, only functions. I think consistency should be sought here. After reading PEP 318 (http://www.python.org/dev/peps/pep

[IronPython] .NET Attributes

2006-03-27 Thread Andrzej Krzywda
Hi, When there will be support for .NET Attributes in IronPython? Is there any way currently to mark my class as Serializable? -- Andrzej ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] .NET Attributes

2006-03-27 Thread Dino Viehland
-DC1B43134038) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrzej Krzywda Sent: Monday, March 27, 2006 4:55 AM To: users@lists.ironpython.com Subject: [IronPython] .NET Attributes Hi, When there will be support for .NET Attributes in IronPython? Is there any

Re: [IronPython] .NET Attributes

2006-03-27 Thread Eric Larson
On the topic of decorators and integrating with .NET, it seems that in order to keep IronPython as close to CPython, it would be a good idea to consider adding .NET specific pieces as a library instead of an addition to the language. That way people could write python code that works in IronPython

Re: [IronPython] .NET Attributes

2006-03-27 Thread Dino Viehland
To: Discussion of IronPython Subject: Re: [IronPython] .NET Attributes On the topic of decorators and integrating with .NET, it seems that in order to keep IronPython as close to CPython, it would be a good idea to consider adding .NET specific pieces as a library instead of an addition

Re: [IronPython] .NET Attributes

2006-03-27 Thread Keith J. Farmer
For the purposes of consistency, the attribute decorators would need to apply everywhere an attribute is able to exist in .NET: types, members, etc. In the case of Serializable, merely subclassing ISerializable isn't necessarily the best way, since a class can be decorated with