[Python-ideas] Working with Path objects: p-strings?

Ethan Furman ethan at stoneleaf.us
Wed Mar 30 14:33:28 EDT 2016


On 03/30/2016 11:26 AM, Brett Cannon wrote:
> On Wed, 30 Mar 2016 at 11:10 Ethan Furman wrote:

>> The `.path` attribute, which seems a silly name, I look at as being
>> necessary for compatibility with DirEntry.
>
> I don't remember the exact issue that tracked the discussion, but there
> was back-and-forth on that attribute name and in the end Guido chose
> `path`.

Hmmm.... so

- Path.path -> str
- DirEntry.path -> str

Perhaps DirEntry should grow a .Path attribute to a Path from.  ;)

--
~Ethan~


More information about the Python-ideas mailing list