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

Christopher Welborn report at bugs.python.org
Tue Jan 28 22:03:46 CET 2014


Christopher Welborn added the comment:

Using 'review' with pathlib.readwrite4.patch, it looks like it only modifies one file (test_pathlib.py), which can't be right. Maybe you edited the patch directly instead of generating a new one? (also, the line-counts haven't changed and I think they were suppose to.)

The python-dev guide may help you to move forward with this, and any future ideas. I definitely have a lot to learn myself, but I do know that the less leg-work core-devs have to do, the easier it is to make a contribution. 

Python dev-guide: http://docs.python.org/devguide/

Here is the 'exclusive' feature with some tests, it raises TypeError when 'append' and 'exclusive' are used at the same time (mismatched args/kwargs usually raise TypeError in python from what I can tell).

It's still missing the Doc changes, and probably more stuff that I don't know about yet. 

As usual, all tests pass including the python test-suite, and `make patchcheck` removed some whitespace for me.
Thanks,
-Chris (cjwelborn)

----------
Added file: http://bugs.python.org/file33782/pathlib.readwrite3_with_exclusive.patch

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


More information about the Python-bugs-list mailing list