[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
// ATTRIBUTE: MyMemberAttribute
(Forgive my Python -- it's a little rusty...)
Actually, wasn't there a PEP regarding decorators?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4305 bytes
Desc: not available
More information about the Ironpython-users