Opened 11 years ago

Last modified 11 years ago

#36735 new defect

Macports pythons 2.5, 2.6, 2.7 do file-globbing as if a UNIX shell instead of tabbing

Reported by: dhpennell3@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: python25 python26 python27

Description

All my Apple Python behaves normally (you type a tab and it tabs. But all my MacPorts pythons instead want to do file completion on my home directory.

Since the last time I used interactive mode, I've installed py26-levenshtein and py27-levinshtein and py26-pip and py27-pip and use the pips to install unidecode. That said, python2.5, which hasn't been touched in terms of modules in a couple of years, does the same bizarre thing.

To clarify: when in the interactive shell, if I type a tab at the ... I want it to indent, if I type it after, say, a variable name, I want it to tab over and justify the line before I type the = and a space. Instead it simply ignores tabs. If you type 2 tabs quickly, it asks you if you want to see all XX possibliities then presents an ls of your home dir. This shouldn't be confused with readline or libedit autocomplete set up in startup (which I don't have, anyway). This is something not asked for and bizarre.

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mcalhoun@… added
Owner: changed from macports-tickets@… to jwa@…

comment:2 Changed 11 years ago by mf2k (Frank Schima)

Port: python25,python26,python27python25 python26 python27

comment:3 Changed 11 years ago by jmroot (Joshua Root)

Can't reproduce with python27. (Didn't try 26 or 25.)

comment:4 Changed 11 years ago by ned-deily (Ned Deily)

Do you have the py2x-readline ports installed? Those change the behavior of the Python interpreter to use GNU readline instead of BSD editline (libedit) which the Apple Pythons use.

Note: See TracTickets for help on using tickets.