[Python-ideas] except expression

Chris Angelico rosuav at gmail.com
Tue Feb 18 02:00:46 CET 2014


On Tue, Feb 18, 2014 at 11:57 AM, MRAB <python at mrabarnett.plus.com> wrote:
> In that case, is:
>
>     func(foo if condition else pass)
>
> allowed (being like "func(foo) if condition else func()")?
>
> And, in fact, is:
>
>     func(pass)
>
> also allowed (meaning "func()")?

Oh, and:

    func(pass, 2, 3)

should be the same as

    func(2, 3)

right?

ChrisA


More information about the Python-ideas mailing list