Message 153170 - Python tracker (original) (raw)
@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.