Code returns error when not supposed to

amfr amfr.org at gmail.com
Thu Dec 1 02:07:44 CET 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