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

[Python-Dev] Defining a path protocol

[Python-Dev] Defining a path protocol [Python-Dev] Defining a path protocolEthan Furman ethan at stoneleaf.us
Wed Apr 6 19:44:59 EDT 2016
On 04/06/2016 04:27 PM, Brett Cannon wrote:
> On Wed, 6 Apr 2016 at 15:54 Gregory P. Smithwrote:
>>
>> So would module.__path__ become a Path instance in a potential
>> future making module.__path__.__path__ meaningfully confusing? ;)
>>
>> I'm not worried about people who shove pathlib.Path instances in as
>> values into sys.modules and expect anything but pain. :P
>
> Ah, good point. I think that kills __path__ then as an option.

Excellent!  Narrowing the field then to:

__fspath__

__os_path__


Step right up!  Cast yer votes!

--
~Ethan~

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