Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Linux shell to python
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
88888 Dihedral  
View profile  
 More options Jul 31 2012, 3:01 pm
Newsgroups: comp.lang.python
From: 88888 Dihedral <dihedral88...@googlemail.com>
Date: Tue, 31 Jul 2012 12:01:38 -0700 (PDT)
Local: Tues, Jul 31 2012 3:01 pm
Subject: Re: Linux shell to python
Mark Lawrence於 2012年7月31日星期二UTC+8下午3時15分32秒寫道:

> On 31/07/2012 02:20, Dennis Lee Bieber wrote:

> > On Mon, 30 Jul 2012 22:56:48 +0000, Dan Stromberg <drsali...@gmail.com>

> > declaimed the following in gmane.comp.python.general:

> >> 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.

> >       Cleanly splitting the list-comp by

> >       [ result-computation

> >               for-item-selection-clause

> >               if-filter-clause ]

> > isn't that unreadable... But anyone doing

> >       [ result-

> >               -computation for-item-

> >               -selection-clause if-

> >               -filter-

> >               -clause ]

> > should be pecked to death by a dead parrot.

> Any particular species?

> --

> Cheers.

> Mark Lawrence.

For each item in the known list that passes the required conditional test,
then  use the item to perform the tasks desired as instructed.

It is not necessary that a new list has to be constructed in the tasks.

A method which can produce a new object always involves some memory management.
Therefore,  some error handling part should not be missing.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.