[prev in list] [next in list] [prev in thread] [next in thread]
List: macports-users
Subject: Re: python3, tabs, and Terminal
From: Joshua Root <jmr () macports ! org>
Date: 2022-10-12 22:16:48
Message-ID: 02e234ec-073c-f6d8-2386-6b8c385f3094 () macports ! org
[Download RAW message or body]
On 2022-10-13 08:05 , Joshua Root wrote:
> Langer, Stephen A. (Fed) wrote:
>
>> I don’t know if I have something wrong in my settings or expectations,
>> or if this is a bug. Typing a tab in an Apple Terminal window while
>> using any version of Python3 from MacPorts makes the terminal enter
>> some kind of editing mode, instead of just indenting the line.
>> Python2 from MacPorts doesn't do this, and neither does Python3 from
>> Apple, which makes me think that it's some kind of Python
>> configuration issue in MacPorts. The same thing happens when using
>> iTerm2.
>>
>> For example:
>>
>> % python3
>> Python 3.8.15 (default, Oct 12 2022, 03:09:36)
>> [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>>/def f(): /<tab><tab> <--- anything typed here brings up old lines
>> from other sessions, when I just want to indent
> Do you see this with newer python versions? I don't see it in 3.10,
> FWIW. I remember there were some bugs with libedit support in older
> versions.
>
> You can try installing py38-gnureadline, which will override the
> built-in readline module.
>
> - Josh
>
Turns out this is a feature:
<https://docs.python.org/3/library/site.html#rlcompleter-config>
- Josh
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic