[Python-Dev] Mac questions (original) (raw)

Thomas Heller theller at python.net
Tue Jan 4 11:00:15 CET 2005


I'm working on refactoring Python/import.c, currently the case_ok() function.

I was wondering about these lines: /* new-fangled macintosh (macosx) */ #elif defined(MACH) && defined(APPLE) && defined(HAVE_DIRENT_H)

Is this for Mac OSX? Does the Mac have a case insensitive file system (my experiments on the SF compile farm say no)?

And finally: Is there any other way to find the true spelling of a file except than a linear search with opendir()/readdir()/closedir() ?

Thomas



More information about the Python-Dev mailing list