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/143870.html below:

[Python-Dev] Pathlib enhancments - method name only

[Python-Dev] Pathlib enhancments - method name only [Python-Dev] Pathlib enhancments - method name onlyDonald Stufft donald at stufft.io
Sun Apr 10 11:50:24 EDT 2016
> On Apr 10, 2016, at 2:43 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> 
> This does raise a concrete API design question: how should
> PurePath.__fspath__ behave when called on a mismatched OS?

I think that PurePath.__fspath__ should return a string. There’s no
reason why we can’t in my opinion and doing so just limits the usefulness
of the method. For instance, it’d prevent it from being possible to
serialize a pure windows path and send it over the wire to a process running
on a Windows machine, like say if you have a build master running on Linux
and a build slave running on Windows.

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160410/d739b350/attachment.sig>
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