[Python-ideas] Quick idea: defining variables from functions that take the variable name

Michael Selik michael.selik at gmail.com
Wed Jun 1 15:12:25 EDT 2016


On Wed, Jun 1, 2016 at 2:35 PM Steven D'Aprano <steve at pearwood.info> wrote:

> the PEP does mention it, right at the beginning:
>
> "It also seems less than pythonic to name the function three times for
> what is conceptually a single declaration."
>

That's what I get for reading too fast. Still, it does come after the
sentence "This becomes less readable with longer methods," making the
retyping-avoidance feel like an afterthought.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160601/7f162989/attachment.html>


More information about the Python-ideas mailing list