Tricky Areas in Python

beza1e1 andreas.zwinkau at googlemail.com
Mon Oct 24 19:41:43 CEST 2005


let me try.

1) ''.join(lots_of_pieces)

2) This doesn't even work, if something is removed, the list is too
short. So:
[x for x in somelist if not isbad(x)]
well, list comprehension is Python 2.4 and 2.3 is the standard in many
OSes, so it is possibly not the most portable solution
I had to look up the syntax, because i never use it in my code, yet.

3+4) I never used property - had to look it up. So i learned something
:)




More information about the Python-list mailing list