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

[Python-Dev] os.walk() is going to be *fast* with scandir

[Python-Dev] os.walk() is going to be *fast* with scandir [Python-Dev] os.walk() is going to be *fast* with scandirArmin Rigo arigo at tunes.org
Sun Aug 10 12:28:25 CEST 2014
Hi Larry,

On 10 August 2014 08:11, Larry Hastings <larry at hastings.org> wrote:
>> A small tip from my bzr days - cd into the directory before scanning it
>
> I doubt that's permissible for a library function like os.scandir().

Indeed, chdir() is notably not compatible with multithreading.  There
would be a non-portable but clean way to do that: the functions
openat() and fstatat().  They only exist on relatively modern Linuxes,
though.


A bientôt,

Armin.
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