[x for x in <> while <>]?
Terry Reedy
tjreedy at udel.edu
Thu May 15 03:06:54 EDT 2008
"urikaluzhny" <ukaluzhny at nds.com> wrote in message
news:f8229614-a000-450e-85eb-825e6c1386cf at w7g2000hsa.googlegroups.com...
| It seems that I rather frequently need a list or iterator of the form
| [x for x in <> while <>]
I can think of two ways to interpret that.
| And there is no one like this.
| May be there is another short way to write it (not as a loop). Is
| there?
Using loops to write an example of what you mean would make the above
clearer.
tjr
More information about the Python-list
mailing list