On Wed, 16 Nov 2005 13:12:38 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> try: > for item in obj: > do_stuff(item) > except TypeError, msg: > if msg == "iteration over non-sequence": > handle_non_iterator() > else: > # re-raise the exception > raise But what it do_stuff tries to iterate over a non-sequence? Regards, Dan -- Dan Sommers <http://www.tombstonezero.net/dan/> -- http://mail.python.org/mailman/listinfo/python-list