[issue19191] os.path.splitext in windows , a little question

2013-10-11 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19191
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19191] os.path.splitext in windows , a little question

2013-10-08 Thread xiaowei

New submission from xiaowei:

 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

--
components: Windows
files: fileext.JPG
messages: 199208
nosy: xiaowei.py
priority: normal
severity: normal
status: open
title: os.path.splitext in windows , a little question
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file31999/fileext.JPG

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19191
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19191] os.path.splitext in windows , a little question

2013-10-08 Thread Tim Golden

Tim Golden added the comment:

This was implemented after discussion in issue1115886:

  http://bugs.python.org/issue1115886

and python-dev:

  https://mail.python.org/pipermail/python-dev/2007-March/071557.html

In short, it could have gone either way and it went this way.

--
nosy: +tim.golden

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19191
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19191] os.path.splitext in windows , a little question

2013-10-08 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
resolution:  - wont fix
stage:  - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19191
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com