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 xiaowei.py
Recipients xiaowei.py
Date 2013-10-08.15:25:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381245906.23.0.98078809812.issue19191@psf.upfronthosting.co.za>
In-reply-to
Content
>>> print( os.path.splitext.__doc__ )
Split the extension from a pathname.

    Extension is everything from the last dot to the end, ignoring
    leading dots.  Returns "(root, ext)"; ext may be empty.
>>> os.path.splitext('.txt')
('.txt', '')

#### 
I think, in windows it should be ('','.txt'), because the first dot doesnot mean hiding. Actually, in windows file explorer , it will show a empty file name and hide the extension if the extension has been related a program except shell32.dll,just like the attachment show. So, in windows, the last dot , even it's the first character of the file name, it still means the start of the file extension name.

In this case, windows doesnot like linux, we donot have to make them same. 

If you agree, then
why we can talk ignoring leading dots or not ......
i mean
os.path.splitext('...ext')

Anyway, thank you , for your work, even you donot think so
History
Date User Action Args
2013-10-08 15:25:06xiaowei.pysetrecipients: + xiaowei.py
2013-10-08 15:25:06xiaowei.pysetmessageid: <1381245906.23.0.98078809812.issue19191@psf.upfronthosting.co.za>
2013-10-08 15:25:06xiaowei.pylinkissue19191 messages
2013-10-08 15:25:05xiaowei.pycreate