[Python-Dev] Re: new syntax for wrapping (PEP 318)

Pete Shinners pete at shinners.org
Fri Feb 27 10:55:51 EST 2004

Michael Hudson wrote:
>> +0 on def foo (bar) as baz: if there's a way to extend it multi-line.

Can the Python parser allow "def" and ":" to become a sort of implied 
braces? This would allow multiline definitions without the need of an extra 
set of braces.

def foo(bar) as x, y,

Although neither of those lines look correct in my mind. Just another part 
of the thought process I guess.

More information about the Python-Dev mailing list