The Python Oracle

How do you see the entire command history in interactive Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: The Builders

--

Chapters
00:00 Question
00:30 Accepted answer (Score 77)
00:49 Answer 2 (Score 379)
01:37 Answer 3 (Score 69)
01:52 Answer 4 (Score 18)
02:14 Thank you

--

Full question
https://stackoverflow.com/questions/6558...

Accepted answer links:
[readline.get_current_history_length()]: http://docs.python.org/library/readline....
[readline.get_history_item()]: http://docs.python.org/library/readline....

Answer 2 links:
[Python 3]: https://docs.python.org/3/library/readli...
[Python 2]: https://docs.python.org/2/library/readli...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #macos

#avk47