A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/047163.html below:

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

[Python-Dev] Re: def fn (args) [dec,dec]:Gustavo Niemeyer niemeyer at conectiva.com
Fri Aug 6 19:10:22 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,

I still prefer this method over the current implementation, given
the other pros/cons. Anyway, I'm adding these to the Wiki as
negative points.

> adding/removing decorators would require reindenting the entire method
> body).

I belive all of us are used to quickly reidenting Python
code by now. :-)

-- 
Gustavo Niemeyer
http://niemeyer.net
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4