[Python-ideas] Return for assignment blocks

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 25 00:25:27 EDT 2018

The idea is okay, but I'm not keen about the syntax, because it
doesn't read well as English. Currently "def" can be read as
the verb "define", but "return define" doesn't make sense.

Maybe it would be better as a pseudo-decorator:

     def f(args):

But I'm inclined to agree with Guido that this isn't a frequent
enough thing to warrant special syntax.


More information about the Python-ideas mailing list