Multiplatform scripts: Can I avoid os.sep?

Bruno Desthuilliers onurb at xiludom.gro
Thu Jul 13 13:24:50 EDT 2006


Mike Kent wrote:
(snip - about Jason Orendorff's path module)
> Of course, using the '/' operator in this manner makes some people's
> heads explode.

+1 QOTW


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list