need help with a multiloop error

MRAB google at
Thu Apr 23 14:01:26 CEST 2009

John Machin wrote:
> On Apr 23, 10:54 am, delc... at wrote:
>> Here is a little more of the code?  Does this help at all?
> Not much. MRAB asked what is str2bool. Instead of answering the
> question, you have supplied some code which is calling str2bool (and
> doing interesting things if it fails).
I can only assume that 's' is meant to be a string representing a
Boolean value (eg "True"), but it's actually a float (or a float as a
string, ie "0.0"?), so a TypeError is being raised, but the code is
catching only ValueError.

> You talk about a "multiloop" as though it's a well-known concept
> ("running a Python program with a multiloop") ... it might be in
> industrial process automation but not in Python. *If* you believe that
> whether your program has a "multiloop" or not is relevant to the
> exception that you are getting, you had better explain what a
> "multiloop" is.
I'd probably take it to mean a nested loop...

>>>> Traceback (most recent call last):
>>>>   File "C:\Python25\commodity\ <http://
>>>>> ", line 233, in <module>
> That is a very interesting traceback output. How does the "http://"
> get in there???

More information about the Python-list mailing list