import statement is case sensitive

David Bolen db3l at fitlinxx.com
Fri Feb 23 19:26:12 EST 2001


"Alex Martelli" <aleaxit at yahoo.com> writes:

> In Windows, you cannot _directly_ rename a file or directory
> to change its case (a Windows bug, I'd say); you have to
>     rename Foo tempname
>     rename tempname foo
> because trying to directly do
>     rename Foo foo
> will fail.

Actually, I think that depends on filesystem (and perhaps OS).  On my
NT4 system with NTFS I can rename just to change case without a
problem.

But I'm pretty sure it fails on a FAT filesystem since at some level in
the directory structure the name is uppercase in either case.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list