In message <1153537336.305790.311650 at m79g2000cwm.googlegroups.com>, Justin Azoff wrote: > Simon Forman wrote: >> That third option seems to work fine. > > Well it does, but there are still many things wrong with it > > if len(tok) > 0: > should be written as > if(tok): I prefer the first way. Besides, your way is sub-optimal.