[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&

[issue17320] os.path.abspath in window7, return error

2013-04-16 Thread xiaowei
Changes by xiaowei : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue17320> ___ ___ Python-bugs-list mailing list Unsubscri

[issue17320] os.path.abspath in window7, return error

2013-03-18 Thread xiaowei
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

[issue17320] os.path.abspath in window7, return error

2013-02-28 Thread xiaowei
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]