I think it is quite possible to use an interactive shell to check the results of a small program.
The basic operation of "error in tab operation after for statement" did not proceed easily, and I finally solved it, so I will share it as a private memorandum.
The one sentence that appears at the end of a fairly long error is 「AttributeError: module 'readline' has no attribute 'redisplay'」
Readline is a package that complements tab operations, but even if you search variously, only articles such as "Consider re-installing because there is a possibility that there is no version" appear, and even if you reinstall it, it is useless. I couldn't downgrade from the latest version 2.1 to "2.0".
The GitHub article that I finally arrived at is below https://github.com/pyreadline/pyreadline/issues/64
It's a little difficult to understand because it's only in English, but in "basemode.py" in the package I solved it by adding code to two places in the article.
Thanks to those who uploaded this article. (I first learned that GitHub can be used in this way.) Later, this package called readline doesn't seem to have been updated since around 2015, so I wondered if something went wrong.
Recommended Posts