[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT
Josh Triplett
report at bugs.python.org
Fri May 27 17:21:03 CEST 2011
Josh Triplett <josh at joshtriplett.org> added the comment:
GRUB's filesystem drivers don't support reading mtime. And no, no form of stat() function exists, f or otherwise.
On a related note, without HAVE_STAT, import.c can't import package modules at all, since it uses stat to check in advance for a directory. In the spirit of Python's usual "try it and see if it works" approach, why not just try opening foo/__init__.py, and if that doesn't work try opening foo.py?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12082>
_______________________________________
More information about the Python-bugs-list
mailing list