Re: [Python-Dev] Defining a path protocol

2016年4月06日 13:57:12 -0700

On 06.04.2016 22:28, Brett Cannon wrote:
On Wed, 6 Apr 2016 at 13:20 Sven R. Kunze <[email protected] <mailto:[email protected]>> wrote:
 What about
 __file_path__
Can be a directory as well (and you could argue semantics of file system inodes, beginners won't know the subtlety and/or wonder where __dir_path__ is).
Good point.
Well, then __fspath__ for me.
I knew instantly what it means especially considering btrfs, ntfs, xfs, zfs, etc. Furthermore, we MIGHT later want some URI support, so I don't know off the top of my head if there's a difference between __fspath__ and __urlpath__ but better separate it now. Later we can re-merge then if necessary.
Best,
Sven
_______________________________________________
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