New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filename providing cross platform capability #45141
Comments
The help section for the open method should note that a Unix style filename work in a cross platform fashion (like Java). After scouring several resources including two O'Reilly texts on Python, a dozen web pages, all reliant help pages, I finally got my answer from a mailing list. -Damian |
I am not getting as what you are indicating Damian. You mean to say use '/' forward slashes in all documentation as they can work cross platform? |
No, I'm talking about the documentation when entering help(file) or help(open). The filename parameter works in a cross platform fashion when given a Unix path. For instance, |
1 similar comment
No, I'm talking about the documentation when entering help(file) or help(open). The filename parameter works in a cross platform fashion when given a Unix path. For instance, |
I think that's what Damian says, but it's partially wrong. Python has not taken any specific effort to make / work on all systems; it just happens to work on Windows as well. However, it does so only in a limited manner: you still might need to specify drive letters, and you cannot easily pass a file name with forward slashes to an external program, as that may mistake the slashes as command line options. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: