[issue13997] Add open_ascii() builtin

Chris Rebert report at bugs.python.org
Sun Feb 12 05:51:46 CET 2012


Chris Rebert <pybugs at rebertia.com> added the comment:

@Bendersky:

Unlike open()'s other arguments, that one wouldn't be orthogonal though. It would be possible to write e.g.:

f = open(fname, encoding="big5", errors="replace", ascii_only=True)

which seems disturbing, IMO. It would be nicer to rule out such impossible combinations categorically.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13997>
_______________________________________


More information about the Python-bugs-list mailing list