[Python-Dev] Updates to PEP 471, the os.scandir() proposal

Ethan Furman ethan at stoneleaf.us
Thu Jul 10 00:15:49 CEST 2014


On 07/09/2014 02:38 PM, Victor Stinner wrote:
> 2014-07-09 22:44 GMT+02:00 Ethan Furman:
>> On 07/09/2014 01:24 PM, Victor Stinner wrote:
>>>
>>> [...] Python must remain
>>> portable and you should not write code specific to one specific
>>> platform.
>>
>>
>> Okay, so using that logic we should head over to the os module and remove: (...)
>
> My comment was specific to the PEP 471, design of the DirEntry class.

And my comment was to the point of there being methods/attributes/return values that /do/ vary by platform, and /are/ 
documented as such.  Even stat itself is not the same on Windows as posix.

--
~Ethan~


More information about the Python-Dev mailing list