On Wed, Aug 04, 2010 at 03:45:45PM +0100, Rob Cliffe wrote: > Is there a way of determining the suffix used after a drive letter to denote a drive, e.g. on Windows the ":" in r"C:\Dir\Subdir\File.Ext" ? Or is the colon so universal that it is considered unnecessary? Should it be in the os module somewhere (as far as I can tell, it isn't, although every other kind of file path component separator seems to be) ? It's not universal, exactly opposite - it's specific to a rare graphic environment produced by a small company based in Redmond... sorry, I cannot resist. (-: Because of this (':' being too specific) it's built right into ntpath.py - the module that 'os' module imports when it finds itself running inside that graphic environment. It's used as a character constant all over ntpath.py without any name. Oleg. -- Oleg Broytman http://phd.pp.ru/ phd at phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
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