Paul McGuire <pt...@austin.rr.com> wrote: [...] > while loc < instrlen and instring[loc] in wt: > TypeError: 'in <string>' requires string as left operand, not int > > In this section of code, instring is a string, loc is an int,
In Python 3, lots of things that used to return str now return bytes, and the elements of a bytes object are ints. Something to check. -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list