Need some Python 3 help

Benjamin Peterson benjamin at python.org
Tue May 25 21:58:47 EDT 2010


Paul McGuire <ptmcg <at> austin.rr.com> writes:
> In this section of code, instring is a string, loc is an int, and wt
> is a string.  Any clues why instring[loc] would be evaluating as int?
> (I am unfortunately dependent on the kindness of strangers when it
> comes to testing my Python 3 code, as I don't have a Py3 environment
> installed.)

Indexing bytes in Python 3 gives an integer.







More information about the Python-list mailing list