diff options
| author | Peter Inglesby <peter.inglesby@gmail.com> | 2021-01-18 19:07:07 +0000 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2021-06-23 14:53:41 +0200 |
| commit | 1bbb98d9a4b7d83e422b14ae2429cb368eff5a13 (patch) | |
| tree | 07d2b386ad5c17ce5e78a9748b57fc07a7193325 /docs | |
| parent | 1e5aa8e1c79252cc810af21294a6e945d11d37b3 (diff) | |
Fixed #32363 -- Ensured sys.__interactivehook__ is called in shell
By default, this means that readline is properly registered, so that
.python_history is used.
sys.__interactivehook__ may be set by a $PYTHONSTARTUP file.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/4.0.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index a9e660f0f1..9b57a524aa 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -236,6 +236,11 @@ Management Commands * On PostgreSQL, :djadmin:`dbshell` now supports specifying a password file. +* The :djadmin:`shell` command now respects :py:data:`sys.__interactivehook__` + at startup. This allows loading shell history between interactive sessions. + As a consequence, ``readline`` is no longer loaded if running in *isolated* + mode. + Migrations ~~~~~~~~~~ |
