[Python-Dev] Re: PEP 318: Decorators last before colon (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Wed Mar 31 13:41:01 EST 2004


Scott David Daniels wrote:

A simple issue I have with: [classmethod, logged, debug] def function(args): ... Is "How do you type this into Idle?"

I could, at first, not understand what you were talking about. I tried it, and it worked just fine.

I then realized that you are talking about interactive mode, not the IDLE source editor.

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): ...

I suggest that the the break-less solution

[classmethod, logged, debug] def function(args):

should also be supported.

Regards, Martin



More information about the Python-Dev mailing list