They're called "List Comprehensions"<div><a href="http://docs.python.org/tutorial/datastructures.html#list-comprehensions">http://docs.python.org/tutorial/datastructures.html#list-comprehensions</a></div><div>
<br></div><div><a href="http://docs.python.org/tutorial/datastructures.html#list-comprehensions"></a><br><br><div class="gmail_quote">On Sat, Jan 8, 2011 at 4:57 PM, Olive <span dir="ltr"><<a href="mailto:not0read0765@yopmail.com">not0read0765@yopmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am a newbie to python. Python supports what I thinks it is called<br>
list display, for example:<br>
<br>
[i for i in range(10)]<br>
[i for i in range(10) if i<6]<br>
<br>
Does anyone know a good documentation for this. I have read the<br>
language reference but it is confusing.<br>
<br>
Olive<br>
<font color="#888888"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br></div>