bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter by pablogsal · Pull Request #11831 · python/cpython

ZackerySpytz

@pablogsal pablogsal changed the title bpo-36942: Delegate on PyOS_FSPath when checking for __fspath__ in path_converter bpo-35942: Delegate on PyOS_FSPath when checking for __fspath__ in path_converter

Feb 12, 2019

serhiy-storchaka

@pablogsal

@pablogsal

@pablogsal pablogsal changed the title bpo-35942: Delegate on PyOS_FSPath when checking for __fspath__ in path_converter bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter

Feb 17, 2019

serhiy-storchaka

@pablogsal

serhiy-storchaka

ambv

ambv approved these changes Feb 18, 2019

@pablogsal

eamanu

serhiy-storchaka

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Feb 18, 2019
…pes in path_converter (pythonGH-11831)

The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
(cherry picked from commit 09fbcd6)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>

miss-islington added a commit that referenced this pull request

Feb 18, 2019
…pes in path_converter (GH-11831)

The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
(cherry picked from commit 09fbcd6)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>