![](https://secure.gravatar.com/avatar/435434e09690bd15d251a5fef8b4b9fe.jpg?s=120&d=mm&r=g)
For the _readline_ module, there is a typo in the second code example, starting with the documentation for Python 3.5 (I have also noticed it in the documentation for the Python 3.6 (dev) documentation). import atexitimport osimport *realine*histfile = os.path.join(os.path.expanduser("~"), ".python_history") Should be fixed to: import atexitimport osimport *readline*histfile = os.path.join(os.path.expanduser("~"), ".python_history") Referenced URL(s): - https://docs.python.org/3.5/library/readline.html - https://docs.python.org/3.6/library/readline.html -- Alec Nunn alec.nunn@gmail.com
![](https://secure.gravatar.com/avatar/df8e51d7618d5ed7ccbbc8dea9a9afee.jpg?s=120&d=mm&r=g)
On Thu, Oct 29, 2015 at 8:38 PM, Alec Nunn <alec.nunn@gmail.com> wrote:
For the _readline_ module, there is a typo in the second code example, starting with the documentation for Python 3.5 (I have also noticed it in the documentation for the Python 3.6 (dev) documentation).
Hi Alec, Thanks for the report! I've fixed it in https://hg.python.org/cpython/rev/f884590ee620 --Berker
participants (2)
-
Alec Nunn
-
Berker Peksağ