Re: Determine if windows drive letter is hard drive or optical from python?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Determine if windows drive letter is hard drive or optical from python?

From: Wolfgang Strobl <news2@mystrobl.de>
Date: Tue May 31 2005 - 23:30:40 CEST

Magnus Lycka <lycka@carmen.se>:

>Wolfgang Strobl wrote:
>> ... for drive in string.letters[len(string.letters)/2:]:
>
>Or better...
>...... for drive in string.ascii_uppercase:
>
>string.letters differ with locale, but Windows drives are always
>only A-Z (right?) and just iterating over upper case (or lower)
>seems more clear than to iterate over half of the sum of both...

Ooops. Your're right, of course. In my defense, I could argue that it
was a cut&paste job, from a program written long ago ...

-- 
Thank you for observing all safety precautions
Received on Thu Sep 29 16:17:26 2005