Guido van Rossum writes: > I can't think of any function besides the attempt to avoid duplicates. There were two reasons for adding this code: 1. Avoid duplicates (speeds imports if there are duplicates and the modules are found on an entry after the dupes). 2. Avoid breakage when a script uses os.chdir(). This is probably unusual for large applications, but fairly common for little admin helper scripts. > I think that even on Windows, retaining case makes sense. > > I think that there's a way to avoid duplicates without case-folding > everything. (E.g. use a case-folding comparison instead.) > > I wonder if maybe path entries should be normpath'd though? > > I'll leave it to Fred, Jack or Just to fix this. I certainly agree that this can be improved; if Jack or Just would like to assign it to me on SourceForge, I'd be glad to fix it. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Digital Creations
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4