On Wed, Aug 26, 2009 at 4:44 AM, gentlestone<tibor.b...@hotmail.com> wrote: > Can somebody give me an advise where I can found a really good online > tutorial? All I found are useless. For example no tutorial I found > explains this piece of code: > > someList = [element for element in otherList if element is not > None]
See http://docs.python.org/tutorial/datastructures.html#list-comprehensions > or this example: > > a = a or [] That's a bit more obscure, and I'm not entirely surprised it's not in a tutorial: http://docs.python.org/reference/expressions.html#boolean-operations You might want to try the official tutorial (unless it's the one you're complaining about): http://docs.python.org/tutorial/index.html I've also heard good things about Dive Into Python: http://diveintopython.org/ Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list