This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Alex.Ternovoy, brian.curtin, loewis, tim.golden, vstinner
Date 2013-02-23.13:23:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361625822.13.0.0245971695392.issue17280@psf.upfronthosting.co.za>
In-reply-to
Content
> print os.path.basename ("C:\Users\Alkor\Desktop\a3434.raw")

Ah, it's a common trap of the Python syntax (and PHP, and C, and ... languages). "\" is a special character, you have to escape it: "\\".

"C:\\Users\\Alkor\\Desktop\\a3434.raw"

or simply use the "raw" string syntax:

r"C:\Users\Alkor\Desktop\a3434.raw"
History
Date User Action Args
2013-02-23 13:23:42vstinnersetrecipients: + vstinner, loewis, tim.golden, brian.curtin, Alex.Ternovoy
2013-02-23 13:23:42vstinnersetmessageid: <1361625822.13.0.0245971695392.issue17280@psf.upfronthosting.co.za>
2013-02-23 13:23:42vstinnerlinkissue17280 messages
2013-02-23 13:23:41vstinnercreate