FCNTL module deprecation warning
Meyer, Tony
T.A.Meyer at massey.ac.nz
Tue Jul 15 18:44:30 EDT 2003
Thanks to those that answered the question; I understand the problem
now. (it's a WinXP system).
> Python natively is case-sensitive. Windows 9x and later, and
> OS/2 with HPFS file systems, are case-insensitive but
> case-preserving. So Python relies on the case preservation
> when trying to match a filename to a module name.
My question is then why the 2.3b2 Windows binary bothers installing the
FCNTL.py file. fnctl isn't available on Windows anyway (going by the
docs and that there isn't a fnctl.py file installed).
Shouldn't the correct behaviour be to raise an ImportError if a windows
user tries to import fcntl or FCNTL? Just like trying to "import mac"
or "import posix"?
The way it is just causes useless warnings to Windows users -
particularly users of httplib :)
=Tony Meyer
More information about the Python-list
mailing list