From: "Paul Svensson" <paul-python at svensson.org> > "Delaney, Timothy C (Timothy)" <tdelaney at avaya.com> writes: > > > +0 on def foo (bar) as baz: if there's a way to extend it multi-line. > > Thinking of the proposed change to allow parentheses with import, how about: > > def foo(bar) as baz, gazonk: pass > > def foo(bar) as (baz, gazonk): pass > > def foo(bar) as (baz, > gazonk): pass Unlike import, we are dealing will full-blown expressions here, not just single identifiers, so you'd have to figure out how to deal with e.g.: def foo(bar) as (baz), gazonk: pass # legal? A variation with cleaner implementation: Let the decorator-list be a single expression. If that expression evaluates to a tuple, treat it like a sequence of decorator functions. If not, treat it like a single decorator. +1 on def foo(bar) as baz +0 on def foo(bar)[baz] - Anders
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