[Python-Dev] Re: method decorators (PEP 318)

Paul Prescod paul at prescod.net
Sun Mar 28 14:43:21 EST 2004


Bob Ippolito wrote:

>...
> 
> Not to mention the fact that you'll have to start prefixing your 
> function attributes so that you don't clash between decorators.. because 
> of the flat namespace.

This is already the case today. __doc__ is prefixed with "__". Python 
COM and PyXPCOM both use a single _. It is just the nature of function 
attributes and has nothing to do with whether they are used by 
decorators or frameworks invoked in some other way.

  Paul Prescod





More information about the Python-Dev mailing list