[Python-Dev] proposed os.fspath() change (original) (raw)

Ethan Furman ethan at stoneleaf.us
Wed Jun 15 15:09:39 EDT 2016


On 06/15/2016 11:44 AM, Brett Cannon wrote:

On Wed, 15 Jun 2016 at 11:39 Guido van Rossum wrote:

OK, so let's add a check on the return of fspath() and keep the check on path-like or string/bytes. I'll update the PEP. Ethan, do you want to leave a note on the os.fspath() issue to update the code and go through where we've used os.fspath() to see where we can cut out redundant type checks?

Will do.

I didn't see this subthread before my last post, so unless you agree with those other changes feel free to ignore it. ;)

-- Ethan



More information about the Python-Dev mailing list