Message92893
The documentation for the readline module is a bit too minimal.
1) function 'add_history' is described at the end of the documentation,
not near the other functions for manipulation the history stack.
2) the index for remove_history_item and replace_history_item is 0-
based,
while the index for get_history_item is 1-based.
The latter is a confusing API in the underlying readline library and
should IMO be described in Python's documentation.
(If readline were a new addition to the stdlib I'd prefer to fix the
interface, but that would have too many backward compatibility issues at
this point in time). |
|
Date |
User |
Action |
Args |
2009-09-20 14:13:32 | ronaldoussoren | set | recipients:
+ ronaldoussoren, georg.brandl |
2009-09-20 14:13:32 | ronaldoussoren | set | messageid: <1253456012.32.0.661240289209.issue6953@psf.upfronthosting.co.za> |
2009-09-20 14:13:31 | ronaldoussoren | link | issue6953 messages |
2009-09-20 14:13:30 | ronaldoussoren | create | |
|