[Python-ideas] A more readable way to nest functions

Sven R. Kunze srkunze at mail.de
Tue Jan 31 07:13:15 EST 2017


On 31.01.2017 00:54, Mikhail V wrote:
> Great idea :)  But actually that was my idea initially, so just 
> breaking it into two lines solves the readability issue perfectly with 
> long expressions. Although if one is chasing some kind of 
> optimisations... I don't know, I see very often people want to stick 
> everything in one big expression.

Because it's natural.

It's *sometimes* the best way to convey the data processing pipeline. 
It's the connection between separate parts that needs to be conveyed.

Furthermore, inventing artificial names is sometimes not the best way. 
So, I think the behavior you've described can be explained quite easily.

Best,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170131/08fbdec2/attachment.html>


More information about the Python-ideas mailing list