Need some Python 3 help
Bryan
bryanjugglercryptographer at yahoo.com
Tue May 25 21:56:53 EDT 2010
Paul McGuire <pt... at 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
More information about the Python-list
mailing list