[Python-Dev] Re: Decorators after 'def' should be reconsidered
Laurence Rowe
l at lrowe.co.uk
Thu Aug 12 18:31:10 CEST 2004
More information about the Python-Dev mailing list
Thu Aug 12 18:31:10 CEST 2004
- Previous message: [Python-Dev] Re: Decorators after 'def' should be reconsidered
- Next message: [Python-Dev] Re: Decorators after 'def' should be reconsidered
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Re: Decorators after 'def' should be reconsidered
- Next message: [Python-Dev] Re: Decorators after 'def' should be reconsidered
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list