Please can someone explain why, for a list of fields, that 
fields.index("anything at all") always evaluates to 0.

For example this  prints 23 and 0. 

t=db.todo
fields = [t.id, t.customer, t.subject, t.completed, t.modified_by]
if 23 in fields: print("23 is in there")
print(fields.index("hshshshs"))





-- 



Reply via email to