[issue7399] Possible bug in Python Tutorial
R. David Murray
report at bugs.python.org
Thu Nov 26 19:22:38 CET 2009
R. David Murray <rdmurray at bitdance.com> added the comment:
The example is indeed wrong. urlopen is returning an object that emits
binary data. The error comes from using 'in' on incompatible types.
The solution is to encode the data with an appropriate encoding, once
you figure out what that is.
priority: -> normal
stage: -> needs patch
type: compile error -> behavior
versions: +Python 3.2
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list