eryksun wrote: [snip] > 1. Using a forward slash in paths is OK for DOS/Windows system calls > (e.g. opening a file or setting the cwd of a new process), dating back > to the file system calls in MS-DOS 2.0 (1983). Otherwise a backslash > is usually required (e.g. shell commands and paths in commandline > arguments, where forward slash is typically used for options). In this > case use a raw string or os.path.join. For a raw string, note that a > trailing backslash is not allowed, e.g. r'C:\Python27\'. Instead you > could use r'C:\Python27' '\\', among other options: > > http://docs.python.org/2/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash
Why not just use r'C:\Python27\\'? Might be too confusing for a beginner to remember, I suppose. ~Ramit This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor