Re: Modifying every alternate element of a sequence
- From: "Leo Kislov" <Leo.Kislov@xxxxxxxxx>
- Date: 28 Nov 2006 04:30:17 -0800
jm.suresh@xxxxxxxxxxxxxxxxx wrote:
Wow, I was in fact searching for this syntax in the python tutorial. It
is missing there.
Is there a reference page which documents all possible list
comprehensions.
There is actually only two forms of list comprehensions:
http://docs.python.org/ref/lists.html
[blah for x in expr] and [blah for x in expr if cond]
And here is reference page for slicing (note, it's not list
comprehension): http://docs.python.org/ref/slicings.html
-- Leo
.
- References:
- Modifying every alternate element of a sequence
- From: jm.suresh@xxxxxxxxxxxxxxxxx
- Re: Modifying every alternate element of a sequence
- From: Leo Kislov
- Re: Modifying every alternate element of a sequence
- From: jm.suresh@xxxxxxxxxxxxxxxxx
- Modifying every alternate element of a sequence
- Prev by Date: Re: Python script and C++
- Next by Date: Dynamic/runtime code introspection/compilation
- Previous by thread: Re: Modifying every alternate element of a sequence
- Next by thread: Re: Modifying every alternate element of a sequence
- Index(es):