Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Linux shell to python (http://www.velocityreviews.com/forums/t948798-re-linux-shell-to-python.html)

Emile van Sebille 07-30-2012 11:14 PM

Re: Linux shell to python
 
On 7/30/2012 3:56 PM Dan Stromberg said...
>
> On Mon, Jul 30, 2012 at 9:26 PM, Barry Scott <barry@barrys-emacs.org


> And of course you can write list comprehensions on as many lines as
> it take to make the code maintainable.
>
> Sigh, and I'm also not keen on multi-line list comprehensions,
> specifically because I think they tend to make less readable code. It
> also becomes a mess when you need to insert print statements to get some
> visibility into what's going on.


I tend to write long one-liners then convert them to loops the first
time I need to see what's going on.

Premature optimization otherwise. :)

Emile





All times are GMT. The time now is 04:38 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.