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?<<winmail.dat>>
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
