Code returns error when not supposed to

amfr at
Thu Dec 1 02:07:44 CET 2005

This code always returns a ValueError when it is not supposed to:
i = rest.rfind('?')

ValueError: need more than 0 values to unpack

rfind is not supposed to generate an erro, just return -1. Any ideas?

More information about the Python-list mailing list