[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 that would mirror the constructor testing that is happening 
in PurePath.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27186] add os.fspath()

2016-06-03 Thread Dusty Phillips

Changes by Dusty Phillips <dgp@phillips.ninja>:


Added file: http://bugs.python.org/file43155/issue27186-glossary.buchuki.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27186] add os.fspath()

2016-06-03 Thread Dusty Phillips

Changes by Dusty Phillips <dgp@phillips.ninja>:


Removed file: http://bugs.python.org/file43154/issue27186-glossary.buchuki.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 think this is acceptable.

--
Added file: http://bugs.python.org/file43154/issue27186-glossary.buchuki.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27186] add os.fspath()

2016-06-02 Thread Dusty Phillips

Changes by Dusty Phillips <dgp@phillips.ninja>:


Removed file: http://bugs.python.org/file43123/issue27186.buchuki.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27186>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com