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 Alex.Ternovoy
Recipients Alex.Ternovoy, brian.curtin, loewis, tim.golden
Date 2013-02-23.13:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361625684.2.0.806923079144.issue17280@psf.upfronthosting.co.za>
In-reply-to
Content
1. I created file ("C:\Users\Alkor\Desktop\a3434.raw") on my desktop 
2. Tried to get the file name from the absolute path

Actual result:
C:\Users\Alkor>python
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.path.basename ("C:\Users\Alkor\Desktop\a3434.raw")
Desktop3434.raw

The same for ntpath module:
>>> import ntpath
>>> print ntpath.basename ("C:\Users\Alkor\Desktop\a3434.raw")
Desktop3434.raw

Expected result:
a3434.raw

Environment:
Windows 7 x64 SP1 Ultimate
python 2.7.3150 (64-bit)
History
Date User Action Args
2013-02-23 13:21:24Alex.Ternovoysetrecipients: + Alex.Ternovoy, loewis, tim.golden, brian.curtin
2013-02-23 13:21:24Alex.Ternovoysetmessageid: <1361625684.2.0.806923079144.issue17280@psf.upfronthosting.co.za>
2013-02-23 13:21:24Alex.Ternovoylinkissue17280 messages
2013-02-23 13:21:23Alex.Ternovoycreate