[issue27186] add os.fspath()

2016-06-05 Thread Dusty Phillips
Dusty Phillips added the comment: Ethan: Can you clarify what you mean by "testing the other classes"? PureWindowsPath and PurePosixPath are tested by extension of _BasePurePathTest. So I think you mean that _BasePathTest also needs testing, but I don't see anything in there th

[issue27186] add os.fspath()

2016-06-03 Thread Dusty Phillips
Changes by Dusty Phillips : Added file: http://bugs.python.org/file43155/issue27186-glossary.buchuki.patch ___ Python tracker <http://bugs.python.org/issue27186> ___ ___

[issue27186] add os.fspath()

2016-06-03 Thread Dusty Phillips
Changes by Dusty Phillips : Removed file: http://bugs.python.org/file43154/issue27186-glossary.buchuki.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27186] add os.fspath()

2016-06-03 Thread Dusty Phillips
Dusty Phillips added the comment: Adding a glossary entry for path-like. The references are all correct except: :class:`os.PathLike` doesn't link to anything because PathLike hasn't been added to the os module yet. Similarly, :meth:`__fspath__` does not link to anything, although I

[issue27186] add os.fspath()

2016-06-02 Thread Dusty Phillips
Changes by Dusty Phillips : Removed file: http://bugs.python.org/file43123/issue27186.buchuki.patch ___ Python tracker <http://bugs.python.org/issue27186> ___ ___ Pytho

[issue27186] add os.fspath()

2016-06-02 Thread Dusty Phillips
Dusty Phillips added the comment: This patch adds fspath protocol and constructor initialization to pathlib.Path. -- Added file: http://bugs.python.org/file43133/issue27186-pathlib.buchuki.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27186] add os.fspath()

2016-06-02 Thread Dusty Phillips
Dusty Phillips added the comment: Test __fspath__ returning bytes as well. -- Added file: http://bugs.python.org/file43124/issue27186.buchuki.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27186] add os.fspath()

2016-06-02 Thread Dusty Phillips
Dusty Phillips added the comment: Make os.fsencode and os.fsdecode able to accept a PathLike by calling into fspath. Additionally adds test for PathLike objects. -- keywords: +patch nosy: +buchuki Added file: http://bugs.python.org/file43123/issue27186.buchuki.patch