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&
Changes by xiaowei :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue17320>
___
___
Python-bugs-list mailing list
Unsubscri
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 Fo
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]