[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-19 Thread miss-islington
miss-islington added the comment: New changeset a8834905df853510f38d4e2d628bed8229fd7482 by Miss Islington (bot) in branch '3.7': Fix syntax warnings in tests introduced in bpo-35942. (GH-11934) https://github.com/python/cpython/commit/a8834905df853510f38d4e2d628bed8229fd7482 --

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +11962 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8d01eb49fc7ff914feeb2e2090d1d6ef15c932ab by Serhiy Storchaka in branch 'master': Fix syntax warnings in tests introduced in bpo-35942. (GH-11934) https://github.com/python/cpython/commit/8d01eb49fc7ff914feeb2e2090d1d6ef15c932ab --

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11961 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -11956 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11958 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11956 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-18 Thread miss-islington
miss-islington added the comment: New changeset a01065a3588d3f0d0c57ea35107aa97e722fe2b2 by Miss Islington (bot) in branch '3.7': bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831)

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11938 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 09fbcd6085e18b534fd4161844ff39f77eb4a082 by Pablo Galindo in branch 'master': bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831)

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The custom `__fspath__()` handling is used in `path_converter` for better error reporting. The error message can include names of the function and the argument. PyOS_FSPath() can not provides this information. I agree that error reporting about incorrect

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +11862 stage: needs patch -> patch review ___ Python tracker ___

[issue35942] posixmodule.c:path_converter() returns an invalid exception message for broken PathLike objects

2019-02-08 Thread Łukasz Langa
New submission from Łukasz Langa : >>> class K: ... def __fspath__(self): ... return 1 ... >>> import os >>> os.stat(K()) Traceback (most recent call last): File "", line 1, in TypeError: stat: path should be string, bytes, os.PathLike or integer, not int This error message is