[Python-ideas] PEP: Extended stat_result (First Draft)

Andrew Barnert abarnert at yahoo.com
Tue May 7 03:19:13 CEST 2013


> From: Greg Ewing <greg.ewing at canterbury.ac.nz>

> Sent: Monday, May 6, 2013 4:42 PM
> 
> Pieter Nagel wrote:
>>  To summarise the thread: POSIX guarantees the *names* os the S_XXX
>>  constants, not their numeric values. But the stat module propagates the
>>  misapprehension that the values are standardised.
> 
> How does it do that? The values may happen to be the
> same in all current implementations, but the docs don't
> promise that.


Well, to someone who reads the _source_, it kind of implies that misapprehension.

But fixing that requires just a one-line comment saying something like, "These values are not standardized, they just happen to work on every platform this version of this module is used with."




More information about the Python-ideas mailing list