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

2016年4月11日 13:21:18 -0700

On 04/11/2016 12:00 PM, Brett Cannon wrote:
On 2016年4月11日 at 11:28 Ethan Furman wrote:
I would write the above as:
 def fspath(path, *, allow_bytes=False):
You get type consistency from so.fspath(), not the protocol, though.
Well, since the protocol is also a function, we could put the allow_bytes on that as well -- not sure if that is a good idea or not.
--
~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