Finish implementing the 3.3 extensions to existing os
functions. All relevant CPython tests now pass (linux64).
I see 2 parts of this PR warranting discussion:
-
The creation of
Path
objects: I'm not too happy about it, but it mimics what CPython does and I could find no other reasonable way of reproducing CPython's behaviour. -
space.bytes_w
was changed to query the buffer protocol. This matches what CPython does in several cases, including every single function defined inposix
.