Tuesday, March 01, 2005

Case sensitivity differences Python/Windows gotcha

In CPython on Windows, fnmatch - and thus glob - is case insensitive. e.g. glob ("*.xml") will match files with uppercase .XML and lowercase .XML (or mixed).

In Jython on Windows, fnmatch - and thus glob - is case sensitive. e.g. glob ("*.xml") will not match files with ".XML" extensions.

No, I'm not going to divulge how many hours it has taken me to find a bug in my program due to this difference.

Technorati tag: .

No comments: