List of paths

Nico Grubert nicogrubert at gmail.com
Wed Apr 8 08:54:33 EDT 2009


 > Here's a tricky case that doesn't show up in your example:
 > In each case above, the directory names are distinct.
 > how about:
 >['/desk', '/desk/ethanallen', '/desk/ikea',
 >  '/desktop', /desktop/pc', '/desktop/mac']
 >Should the answer be ['/desk'] or ['/desk', '/desktop'] ?

Hi Scott

good point.
It should be:

   ['/desk', '/desktop']



More information about the Python-list mailing list