A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-April/143865.html below:

[Python-Dev] Pathlib enhancments - method name only

[Python-Dev] Pathlib enhancments - method name only [Python-Dev] Pathlib enhancments - method name onlyPaul Moore p.f.moore at gmail.com
Sun Apr 10 03:58:06 EDT 2016
On 10 April 2016 at 08:36, Nick Coghlan <ncoghlan at gmail.com> 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4