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/2013-May/126121.html below:

[Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

[Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like infoAntoine Pitrou solipsis at pitrou.net
Fri May 10 14:16:22 CEST 2013
Le Fri, 10 May 2013 13:46:30 +0200,
Christian Heimes <christian at python.org> a écrit :
> 
> Hence I'm +1 on the general idea but -1 on something stat like. IMHO
> os.scandir() should yield four objects:
> 
>  * name
>  * inode
>  * file type or DT_UNKNOWN
>  * stat_result or None
> 
> stat_result shall only be returned when the operating systems
> provides a full stat result as returned by os.stat().

But what if some systems return more than the file type and less than a
full stat result? The general problem is POSIX's terrible inertia.
I feel that a stat result with some None fields would be an acceptable
compromise here.

Regards

Antoine.


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