Congrats to Chris for breaking his PEP curse

Gregory Ewing greg.ewing at
Wed Jul 4 05:31:15 EDT 2018

Ian Kelly wrote:
> I can't now write all my statements as:
> f(f := lambda f: do_something())

No, but you should be able to do

    (f := lambda f: do_something())(f)

although since you're binding f in a scope that can be seen
by the lambda, there's probably not much point in passing it,
you could just do

    (f := lambda: do_something())()


More information about the Python-list mailing list