[issue27231] Support the fspath protocol in the posixpath module

2016-10-06 Thread Berker Peksag

Berker Peksag added the comment:

It looks like the fspath protocol support has already been implemented in 
b64f83d6ff24.

--
nosy: +berker.peksag
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27231] Support the fspath protocol in the posixpath module

2016-06-06 Thread Jelle Zijlstra

Jelle Zijlstra added the comment:

I wrote the patch assuming that the error messages would be changed in 
accordance with issue27232. Let's put this on hold until that is resolved.

--
dependencies: +os.fspath() should not use repr() on error

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27231] Support the fspath protocol in the posixpath module

2016-06-06 Thread SilentGhost

SilentGhost added the comment:

There seems to be an issue with your patch, it does apply cleanly when doing 
that manually, but Rietveld doesn't like it. The changes in Lib/posixpath.py 
and Lib/test/test_posixpath.py don't show up.

--
nosy: +SilentGhost

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27231] Support the fspath protocol in the posixpath module

2016-06-05 Thread Jelle Zijlstra

Jelle Zijlstra added the comment:

This patch adds a number of os.fspath calls to the posixpath.py module. I 
didn't duplicate all tests to check PathLike objects in addition str/bytes, 
because that seemed excessive. Instead I tried to ensure that each function has 
at least one test checking that it accepts PathLike objects.

--
keywords: +patch
Added file: http://bugs.python.org/file43241/issue27231.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27231] Support the fspath protocol in the posixpath module

2016-06-05 Thread Jelle Zijlstra

New submission from Jelle Zijlstra:

Various functions in posixpath.py need to accept os.PathLike objects. I will 
submit a patch.

--
assignee: Jelle Zijlstra
components: Library (Lib)
messages: 267428
nosy: Jelle Zijlstra, ethan.furman
priority: normal
severity: normal
status: open
title: Support the fspath protocol in the posixpath module
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com