list comprehension to do os.path.split_all ?

TheSaint no at nowhere.net.no
Fri Jul 29 16:29:20 CEST 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