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/2014-August/135904.html below:

[Python-Dev] Bytes path support

[Python-Dev] Bytes path support [Python-Dev] Bytes path supportEthan Furman ethan at stoneleaf.us
Thu Aug 21 01:33:27 CEST 2014
On 08/20/2014 03:31 PM, Nick Coghlan wrote:
>
> On 21 Aug 2014 08:19, "Greg Ewing" <greg.ewing at canterbury.ac.nz <mailto:greg.ewing at canterbury.ac.nz>> wrote:
>>
>> Antoine Pitrou wrote:
>>>
>>> I think if you want low-level features (such as unconverted bytes paths under POSIX), it is reasonable to point you to low-level APIs.
>>
>>
>> The problem with scandir() in particular is that there is
>> currently *no* low-level API exposed that gives the same
>> functionality.
>>
>> If scandir() is not to support bytes paths, I'd suggest
>> exposing the opendir() and readdir() system calls with
>> bytes path support.
>
> scandir is low level (the entire os module is low level). In fact, aside from pathlib, I'd consider pretty much every
> API we have that deals with paths to be low level - that's a large part of the reason we needed pathlib!

If scandir is low-level, and the low-level API's are the ones that should support bytes paths, then scandir should 
support bytes paths.

Is that what you meant to say?

--
~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