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/047733.html below:

[Python-Dev] Re: Decorators after 'def' should be reconsidered

[Python-Dev] Re: Decorators after 'def' should be reconsidered [Python-Dev] Re: Decorators after 'def' should be reconsideredLaurence Rowe l at lrowe.co.uk
Thu Aug 12 18:31:10 CEST 2004
I must say I like this idea a lot. It seems much more in keeping with 
the rest of the python block structure. You could even think of 
decorators as bullet points. Now if only someone hadn't already found a 
use for '*' character...

For those of us who like code-folding editors, this option also allows 
them to continue folding the whole code block down to one line.

- Laurence

> -----------------------------------------------
> Option B
> -----------------------------------------------
> 
> def f(a, b):
>     @staticmethod
>     @synchronized(lockvar)
>     """
>     Hi,
> 
>     Performs a binary operation.
> 
>     Docstring.
>     """
>     return a + b

>  - Connelly

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