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
Changes by xiaowei xw.ch...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17320
___
___
Python-bugs-list
xiaowei added the comment:
thank you
os: win7 bit64
python: 2.7.3
import sys,locale
print(locale.getdefaultlocale())
('zh_CN', 'cp936')
print(sys.getdefaultencoding())
ascii
祝愉快!
肖微
2013年 月 日
2013/3/18 Amaury Forgeot d'Arc rep...@bugs.python.org
Amaury Forgeot d'Arc added
New submission from xiaowei:
assert os.path.split( os.path.abspath('\xe7\x8e\xb0' ) )[-1] == '\xe7\x8e\xb0'
# it should be true(no error) but py2.7 in window it's false
# and when linux it's ok
# os.path.split( os.path.abspath('\xe7\x8e\xb0' ) )[-1] == '\xe7\x8e'
# i guess it's a real bug