[Python-Dev] Re: def fn (args) [dec,dec]:

Guido van Rossum guido at python.org
Fri Aug 6 18:58:59 CEST 2004


> decorate classmethod:
>      def foo(arg1,arg2):
>          ...

Somebody should add to the PEP that solutions requiring an extra
indent level for the function have a drawback.  Having your minimal
indent level be three deep is painful for those using limited-width
windows; also, the inconsistent indentation between methods with and
without decorators would be a readability problem (plus,
adding/removing decorators would require reindenting the entire method
body).

--Guido van Rossum (home page: http://www.python.org/~guido/)


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