[Python-Dev] os.path function for “get the re al filename” (was: os.path.normcase rationale ?)

2010-09-24 Thread Ben Finney
Greg Ewing greg.ew...@canterbury.ac.nz writes: Maybe we could use a heuristic such as: Your heuristics seem to assume there will only ever be a maximum of one match, which is false. I present the following example: $ ls foo/ bAr.dat BaR.dat bar.DAT 1) Search the directory for

Re: [Python-Dev] os.path function for “get the re al filename”

2010-09-24 Thread Greg Ewing
Ben Finney wrote: Your heuristics seem to assume there will only ever be a maximum of one match, which is false. I present the following example: $ ls foo/ bAr.dat BaR.dat bar.DAT There should perhaps be an extra step at the beginning: 0) Test whether the specified path refers