Re: [Python-Dev] Pathlib enhancments - method name only

2016年4月10日 01:01:23 -0700

On 10 April 2016 at 08:36, Nick Coghlan <[email protected]> wrote:
> In addition to the existing "str(pathobj)", a "path" property was
> recently added for that purpose:
>
> >>> import pathlib
> >>> pathlib.PureWindowsPath(".")
> PureWindowsPath('.')
> >>> pathlib.PureWindowsPath(".").path
> '.'
>
> (The specific property name was chosen to match os.scandir's DirEntry.path)
I believe that under the current proposal, the ".path" property will
be removed again in favour of the new protocol, so the only actual
option would be str(pathobj).
Paul
_______________________________________________
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