Re: [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()

2016年4月18日 15:14:46 -0700

On 04/18/2016 02:58 PM, Koos Zevenhoven wrote:
It's a matter of documentation whether it "supports" bytes
or not. In fact, that function (assuming the name os.fspath) could now
even be documented to support this:
 patharg = os.fspath(patharg, output_types = (str, pathlib.PurePath)) # :-)
While the os.fspath() function could be abused in such a way, we certainly wouldn't advertise it. (Leave that to StackOverflow. ;)
--
~Ethan~
_______________________________________________
Python-Dev mailing list
[email protected]
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