Export to GitHub

openbookproject - issue #842

[LovPy]PCS200 1.2.7. os.path.expanduser


Posted on Sep 20, 2008 by Massive Camel

现在内容: for user in [ '', 'dhellmann', 'postgres' ]: 建议修订为: for user in [ '', '/dhellmann', '/postgres' ]: 理由: 无法识别的路径,路径名不完整

Comment #1

Posted on Sep 20, 2008 by Massive Camel

(No comment was entered for this change.)

Comment #2

Posted on Sep 20, 2008 by Grumpy Dog

(No comment was entered for this change.)

Comment #3

Posted on Sep 20, 2008 by Grumpy Dog

expanduser(path) Expand ~ and ~user constructions. If user or $HOME is unknown, do nothing. 所以这里的for user in [ '', 'dhellmann', 'postgres' ]:是正确的

不过我发现这里,脚本名称是运行结果里面的不一样,而且这节似乎也是参考dhellmann的PYMOTW

正在修改ing

Comment #4

Posted on Sep 20, 2008 by Grumpy Dog

r1550 fixed

Comment #5

Posted on Sep 20, 2008 by Massive Camel

是我理解错了,抱歉。现在还有些问题,请看Issue 848

Status: Fixed

Labels:
Type-Defect Priority-Medium Component-LovePy Priority-Code