[Python-ideas] Return for assignment blocks
rhodri at kynesim.co.uk
Thu Oct 25 08:31:26 EDT 2018
On 25/10/2018 02:15, Virendra Tripathi wrote:
> In addition to what GVR wrote, a generator function would have to have its
> own syntax - backward compatibility would be another issue.
No it wouldn't. This is about returning the function/generator/class
itself, not its results.
I still don't think it's worth it, mind you.
> On Wed, Oct 24, 2018 at 2:31 PM Greg Ewing <greg.ewing at canterbury.ac.nz>
>> Calvin Spealman wrote:
>>> def ignore_exc(exc_type):
>>> return def (func):
>> > ...
>> Something very similar has been suggested before, you might
>> like to review the previous discussion.
Rhodri James *-* Kynesim Ltd
More information about the Python-ideas