[Python-ideas] Assignment decorators (Re: The Descriptor Protocol...)

Paul Moore p.f.moore at gmail.com
Thu Mar 10 17:41:48 CET 2011

On 10 March 2011 12:49, Nick Coghlan <ncoghlan at gmail.com> wrote:
> I actually agree it is a major weakness of the syntax. You can play
> games with "from" to rearrange the line. For example:
> def name from builder(param_spec):
>  code_block
> as sugar for:
> name = builder("name", param_spec_obj, code_obj)

Yes, I like that better...

More information about the Python-ideas mailing list