[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

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

2013-04-16 Thread xiaowei
Changes by xiaowei xw.ch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17320 ___ ___ Python-bugs-list

[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 Forgeot d'Arc rep...@bugs.python.org Amaury Forgeot d'Arc added

[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] == '\xe7\x8e' # i guess it's a real bug