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

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Aug 9 04:29:07 CEST 2004


Heiko Wundram <heikowu at ceosg.de>:

> Same objection from me as to the proposal of decorating with | in
> the function: it simply takes away the actual meaning from the
> decorator (which actually is to make it very clear to see that the
> function is special in some way).

I think a problem we have here is that how important it is to know
that a function is being decorated depends on the nature of the
decorator. For example, it can be important for the user of a function
to know that it's a classmethod or staticmethod. On the other hand,
the Objective-C signature of a PyObjC method is something that's only
of interest to the implementor of the method.

So there isn't going to be a one-size-fits-all approach that will give
all decorators exactly the right amount of prominence.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant