On 12.05.2016 18:56, Ethan Furman wrote:
On 05/12/2016 09:26 AM, Sven R. Kunze wrote:
str and bytes will receive the __fspath__ attribute when this PEP is
accepted?

No, they won't. The __fspath__ protocol will reduce the rich path object down to a str/bytes object.

Would this make the implementation of os.fspath simpler?

After all, str and bytes are to some extend path-like objects.


Best,
Sven
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to