Title: Strange tab key behaviour in interactive python 2.7 OSX 10.6.2
Type: behavior Stage:
Components: macOS Versions: Python 2.7
Status: closed Resolution: duplicate
Dependencies: Superseder: interactive mode TAB does not insert on OS X built with editline instead of GNU readline
View: 9907
Assigned To: ronaldoussoren Nosy List: Daniel.Harper, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2010-11-20 20:47 by Daniel.Harper, last changed 2010-11-20 21:37 by ned.deily. This issue is now closed.

Messages (2)
msg121766 - (view) Author: Daniel Harper (Daniel.Harper) Date: 2010-11-20 20:47
Hi there. 

I recently downloaded the python 2.7 installer from the python website and installed it on my Mac. 

When I run python2.7 in interactive mode, the tab key doesn't seem to behave as how it did in 2.6.

For example

>> def helloWorld(name):                                                                    
... ./                                                                                    File "<stdin>", line 2   
IndentationError: expected an indented block     

When you hit tab it seems to think I want to browse the contents of the current directory I'm in, rather than placing a tab character so I can quickly use python in interactive mode to prototype stuff.

I'd imagine it's something to do with GNU readline, but I'm pretty sure I have this installed
msg121787 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010-11-20 21:37
The problem you see is with the 2.7 64-/32-bit OS X installer and is documented and will be fixed with the patch in Issue9907.  In the meantime, a workaround is to delete the installed 2.7 framework and install the 32-bit-only version which is built with GNU readline.
Date User Action Args
2010-11-20 21:37:20ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg121787

superseder: interactive mode TAB does not insert on OS X built with editline instead of GNU readline
resolution: duplicate
2010-11-20 20:47:33Daniel.Harpercreate