[Python-ideas] Return for assignment blocks

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 25 17:31:19 EDT 2018


Calvin Spealman wrote:
> You know what, I /can't/ think of other good examples than slightly 
> improved decorators. So, maybe its not that great an idea if it can't be 
> applied to at least a few more use cases.

The class version might be useful for things like namedtuple
that dynamically create classes. But that's even rarer than
decorators.

-- 
Greg


More information about the Python-ideas mailing list