]> granicus.if.org Git - python/commit
Add case checking feature on import.
authorGuido van Rossum <guido@python.org>
Fri, 13 Feb 1998 17:18:36 +0000 (17:18 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 13 Feb 1998 17:18:36 +0000 (17:18 +0000)
commit0980bd9233f5054d62311503963efad8b30171a4
tree215a853ad917af209562ff43de4ef964fe9ef9aa
parent4c6896304be971ae384dcf4c7348f893dbf0f2ac
Add case checking feature on import.

This is an option for OS-es with case-insensitive but case-preserving
filesystems.  It is currently supported for Win32 and MacOS.  To
enable it, #define CHECK_IMPORT_CASE in your platform specific
config.h.  It is enabled by default on those systems where it is
supported.  On Win32, it can be disabled at runtime by setting the
environment variable PYTHONCASEOK (to any value).

When enabled, the feature checks that the case of the requested module
name matches that of the filename found in the filesystem, and raises
a NameError exception when they don't match.
Python/import.c