[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

Christopher Welborn report at bugs.python.org
Thu Jan 23 22:43:09 CET 2014


Christopher Welborn added the comment:

I should clarify that last sentence, I was trying to say that the type is determined by the first item. If the user tries to mix bytes/text they will receive the proper error from io's writelines when the mismatched type is written. If the first item is neither str nor bytes, then raise a ValueError.

----------

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


More information about the Python-bugs-list mailing list