Qix- / better-exceptions

Pretty and useful exceptions in Python, automatically.
MIT License
4.59k stars 203 forks source link

Not working with ~/.python_history #104

Open IllDepence opened 4 years ago

IllDepence commented 4 years ago

Hi,

I noticed that on my system the interactive console launched as python3 -m better_exceptions does not interact with ~/.python_history—i.e., neither old commands can be retrieved by pressing the arrow up key, nor do executed commands get appended to ~/.python_history.

Example:

15992249591

  1. Most recent command is a = 1
  2. In an interactive shell started as python3, pressing up results in a = 1 showing up.
  3. In an interactive shell started as python3 -m better_exceptions, arrow up is not understood.
  4. Execute b = 2 in a shell started with -m better_exceptions and close shell.
  5. b = 2 is not stored in ~/.python_history.