[Python-Dev] Alternative path suggestion (original) (raw)
Edward Loper edloper at gradient.cis.upenn.edu
Sat May 6 18:11:59 CEST 2006
- Previous message: [Python-Dev] Alternative path suggestion
- Next message: [Python-Dev] Alternative path suggestion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Alternative path suggestion
- Next message: [Python-Dev] Alternative path suggestion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]