Message175493
Some conclusions of discussion at Python-ideas (http://comments.gmane.org/gmane.comp.python.ideas/17719):
1. commonpath() should eat double slashes in input (['/usr/bin', '/usr//bin'] -> '/usr/bin'). In any case the current implementation eats slashes on output (['/usr//bin', '/usr//bin'] -> '/usr/bin', not '/usr//bin').
2. commonpath() should raise an exception instead of returning None on incompatible input.
3. May be commonpath() should eat also '.' components and return '.' instead of '' when relative paths have no common prefix. I am not sure.
In general the current patch looks good enough. |
|
Date |
User |
Action |
Args |
2012-11-13 09:24:17 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, loewis, ronaldoussoren, eric.smith, ezio.melotti, eric.araujo, r.david.murray, santoso.wijaya, eric.snow, Roman.Evstifeev, rafik |
2012-11-13 09:24:17 | serhiy.storchaka | set | messageid: <1352798657.28.0.546578580459.issue10395@psf.upfronthosting.co.za> |
2012-11-13 09:24:17 | serhiy.storchaka | link | issue10395 messages |
2012-11-13 09:24:17 | serhiy.storchaka | create | |
|