[Python-Dev] Alternative path suggestion

Edward Loper edloper at gradient.cis.upenn.edu
Sat May 6 18:11:59 CEST 2006


On May 6, 2006, at 2:40 AM, Nick Coghlan wrote:
> Remember, the idea with portable path information is to *never* 
> store os.sep
> and os.extsep anywhere in the internal data - those should only be 
> added when
> needed to produce strings to pass to OS-specific functions or to 
> display to users.

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'))
-Edward


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /