开发者

Python auto completing directory when I press tab (./)

I have a rather peculiar problem, when i'm working on Python in Max OSX terminal, my tab key no longer indents, it now inserts a ./

It seems it is auto-completing directories, if I press tab twice it lists directories, if i type in part of a directory and press tab it autocompletes. I understand this is a standard function in terminal, but not supposed to happen in the Python interpreter? The same thing happens when I run Python in x11.

I have no idea what I did to cause this, the change seemed to happen while I was in Python's help function. I may have pressed a certain combination of keys to activate it, but have no idea what it was. Furthermore google searches aren't returning anyone with the same issue.

I would really appreciate some help here, I'm a beginni开发者_如何学Gong computer science student and not being able to tab in Python is pretty frustrating :P


It's a bug; see here for details. Most likely you are using the Python 2.7 from the python.org OS X 32-bit/64-bit installer for 10.5 and above or you are using a Python 2.7 or 3.2alpha built from source. If you are using 2.7, the easiest workaround is to install the other python.org OS X installer: the one for 32-bit for 10.3 and above.

UPDATE: The fix for this problem is included as of the Python 2.7.2 and the 3.2 python.org installers and, apparently, in Apple's 2.7.1 system Python in OS X 10.7.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜