Re: empty clause of for loops

2016-03-20 Thread Ruud de Jong
Peter Otten schreef op 2016-03-16 13:57: If you don't like exceptions implement (or find) something like items = peek(items) if items.has_more(): # at least one item for item in items: ... else: # empty Only if such a function is used a lot or cannot be conceived without severe

Re: how to convert string to list or tuple

2005-06-01 Thread Ruud de Jong
_subclasses__. Weird perhaps, but non-evil. Non-standard, sure . Too clever for my own good, very likely. Regards, Ruud -- Ruud de Jong '@'.join('.'.join(s) for s in (['ruud','de','jong'],['tiscali','nl'])) -- http://mail.python.org/mailman/listinfo/python-list

Re: Interpreter problem

2005-04-08 Thread Ruud de Jong
the #! line. Not sure if this applies here, but who knows. Good luck, Ruud -- Ruud de Jong '@'.join('.'.join(s) for s in (['ruud','de','jong'],['tiscali','nl'])) -- http://mail.python.org/mailman/listinfo/python-list