[IronPython] .NET Attributes

Keith J. Farmer kfarmer at thuban.org
Mon Mar 27 23:44:48 CEST 2006


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 SerializableAttribute instead.
 
Would magic comments be sufficient? eg
 
// ATTRIBUTE: Serializeable
class MyClass(FooBase):
    // ATTRIBUTE: MyMemberAttribute
    def Foo():
    ....
 
(Forgive my Python -- it's a little rusty...)
 
Actually, wasn't there a PEP regarding decorators?

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4305 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060327/c67fe434/attachment.bin>


More information about the Ironpython-users mailing list