[Python-Dev] Alternative path suggestion

Oleg Broytmann phd at mail2.phd.pp.ru
Sat May 6 18:13:43 CEST 2006


On Sat, May 06, 2006 at 12:11:59PM -0400, Edward Loper wrote:
> If one of the path segments contained a path-splitting character,  
> should it automatically get quoted?  (Is that even possible on all  
> platforms?)  E.g., what would the following give me on windows?
> 
> str(Path('a', 'b\\c'))

   AFAIK there is no way to escape path-splitting characters (directory
separators, actually) on any major platform.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list