Code returns error when not supposed to

amfr amfr.org at gmail.com
Wed Nov 30 20:07:44 EST 2005


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

Error:
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