This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author romainfv
Recipients ned.deily, romainfv, terry.reedy
Date 2021-03-07.19:49:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The lack of dots was something I noticed.

So from your questions (Ned Deily) I have been testing out several things and found a "wae"!

But first, to answer your questions:

1. both LF and CRLF and it didn't change anything.

2. Running "import readline;print(readline.__doc__)" prints
"... GNU readline", with python 3.7, 3.8 and 3.9.

3. I am using iTerm2, but the problem also happens on MacOS's native Versions of python were installed with **homebrew**.

Maybe worth to mention: if I paste my code in a multi line string to execute with python -c, then it works properly.



python3.9 -i -c 'a = 42
if a:
  print("hello world")
hello world


The example is different because I realized I had the same problem on python3.7 and python3.8 when the 2 first lines were at the same level of indentation (Note sure if this gives a hint as to what the problem is).

HOWEVER, if I use python versions directly downloaded from, then I don't have the problem at all!


Python 3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:44:43) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline;print(readline.__doc__)
Importing this module enables command line editing using libedit readline.
>>> a = 42
>>> if a:
...   print("hello world")
hello world


Same for python3.9
Date User Action Args
2021-03-07 19:49:56romainfvsetrecipients: + romainfv, terry.reedy, ned.deily
2021-03-07 19:49:56romainfvsetmessageid: <>
2021-03-07 19:49:56romainfvlinkissue43379 messages
2021-03-07 19:49:55romainfvcreate