Re: Linux shell to python

Discussion in 'Python' started by Emile van Sebille, Jul 31, 2012.

  1. On 7/30/2012 3:56 PM Dan Stromberg said...
    >
    > On Mon, Jul 30, 2012 at 9:26 PM, Barry Scott <


    > 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
     
    Emile van Sebille, Jul 31, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    5,729
    Jonathan Bromley
    Feb 18, 2005
  2. Christian Heimes
    Replies:
    0
    Views:
    605
    Christian Heimes
    Feb 27, 2008
  3. Gerardo Herzig
    Replies:
    1
    Views:
    1,088
    Philipp Pagel
    Feb 27, 2008
  4. D'Arcy J.M. Cain
    Replies:
    0
    Views:
    869
    D'Arcy J.M. Cain
    Feb 27, 2008
  5. edwithad

    Bash shell to Python shell?

    edwithad, Sep 28, 2009, in forum: Python
    Replies:
    4
    Views:
    1,745
Loading...

Share This Page