[Python-Dev] HAVE_FSTAT?

Charles-François Natali cf.natali at gmail.com
Sun May 19 10:08:39 CEST 2013


2013年5月17日 Antoine Pitrou <solipsis at pitrou.net>:
>> Hello,
>> Some pieces of code are still guarded by:
> #ifdef HAVE_FSTAT
> ...
> #endif
>> I would expect all systems to have fstat() these days. It's pretty
> basic POSIX, and even Windows has had it for ages. Shouldn't we simply
> make those code blocks unconditional? It would avoid having to maintain
> unused fallback paths.

I was sure I'd seen a post/bug report about this:
http://bugs.python.org/issue12082
The OP was trying to build Python on an embedded platform without fstat().
cf


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /