Antoine Pitrou added the comment:

To give another data point: returning a different type based on argument value 
is also what the open() functions does, more or less.

(that said, I would slightly favour a separate dump_bytes(), myself)

----------

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

Reply via email to