Senthil Kumaran <sent...@uthcode.com> added the comment:

- page.encoding is a good idea.

- page.decode_content sounds definitely better than page.decode which can be 
confusing as page is not a bytes object, but a file-like object.

I am thinking if an attribute to urlopen would be better? Not exactly the mode 
like attribute of the builtin open, but something like decoded=False

The downside is that the attr is now for the implementation detail of the 
method in py3k and upside is it gives an idea to users as what return value 
they can/should expect.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4733>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to