[issue8065] Memory leak in readline.get_current_history_length

Alexander Belopolsky report at bugs.python.org
Fri Mar 5 18:59:43 CET 2010


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

Not directly related to the issue at hand, but I've noticed that while readline.get_current_history_length() is tested in the unittests, readline.get_history_length() is not.  Attached patch adds tests for reading and writing history files.

Also, I find it confusing that readline module static variable _history_length is named almost the same as readline library exported variable history_length.  Maybe _history_length could be renamed to max_history_file_length.

----------
Added file: http://bugs.python.org/file16463/issue8065-tests.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8065>
_______________________________________


More information about the Python-bugs-list mailing list