list comprehension to do os.path.split_all ?

TheSaint no at nowhere.net.no
Fri Jul 29 10:29:20 EDT 2011


Alan Meyer wrote:

> This is not properly portable to all OS, but you could simply split on
> the slash character, e.g.,
> 
> pathname.split('/')

more portable  pathname.split(os.sep)




More information about the Python-list mailing list