Determine if windows drive letter is hard drive or optical from python?
Magnus Lycka
lycka at carmen.se
Mon May 30 06:40:32 EDT 2005
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...
More information about the Python-list
mailing list