[Python-Dev] Suggesting '.' decorators (PEP318) (original) (raw)

Chris King colanderman at gmail.com
Sat Aug 7 20:07:35 CEST 2004


On Sat, 07 Aug 2004 10:53:28 -0700, Guido van Rossum <guido at python.org> wrote:

> Same here -- I'd rather see .foo at function level (i.e. not nested in > a with block) provide true function attributes, not decorators.

Bleah on that idea. The body of the function should express what it does when it is called. Function attributes are for who calls it (roughly).

I'd still rather see .foo kept free for that purpose (in that context), in case we can convince you of the merits of function attributes sometime in the future ;)



More information about the Python-Dev mailing list