- 论坛徽章:
- 0
|
刚才在网上看到有人说Pydev对Python的支持不好,在处理raw_input函数的时候没有把最后输入的回车符去掉,以至于引起错误(10楼的兄弟说的很对)。这是个bug.
转摘:
补记(2006年7月30日):将这个bug提交给了Pydev的用户组,Fabio Zadrozny 的回复是:
Nope, this is a python bug mixed with a bad specification on how a shell is supposed to behave.
Usually shells put a '\n' when you press enter, but the Eclipse console puts '\r\n' and python does not handle it well, as this is not specified anywhere, and does not seem such awkward, my feeling is that it's a python bug, but you can surely argue the other way... so, you can submit a bug to eclipse.org and python.org and see who'll fix it... (or you can handle it in your program).
Cheers,
Fabio
今天中头彩了~~
非常感谢楼上各位的解答!辛苦了~
[ 本帖最后由 darkboy 于 2007-10-23 17:36 编辑 ] |
|