[Python-Dev] Re: PEP 318: Decorators last before colon (original) (raw)
Guido van Rossum guido at python.org
Wed Mar 31 13:43:36 EST 2004
- Previous message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Next message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
A simple issue I have with: [classmethod, logged, debug] def function(args): ... Is "How do you type this into Idle?" I realize this is not the most important of considerations, but access to experimentation is going to be vital. You can always force with: >>> if True: [classmethod, logged, debug] def function(args): ...
but I wonder if we want to go that route.
Since it will normally be part of a class, you shouldn't have any problem. I expect that toplevel functions with decorators will be rare enough to put up with the "if True" work-around.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Next message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]