I'd like to see traits some day, with a syntax similar to this one:
if the trait isn't used in the function definition you get the raw
object, where name conflicts between traits (but not between traits and
inherent methods) result in an error about name conflicts. otherwise you
get a friendly wrapper.
I assume traits are a feature of another language, but not being familiar with it can you illustrate its need a bit better? Can you give an example in current Python, and how it could be made more clear with the notional trait syntax?