This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author purpleidea
Recipients purpleidea
Date 2009-08-26.18:17:34
SpamBayes Score 9.663247e-08
Marked as misclassified No
Message-id <1251310656.11.0.667090107201.issue6786@psf.upfronthosting.co.za>
In-reply-to
Content
why is it that the zeroth readline history item is seemingly always
none. I would expect this to support zero-based indexing in python, but
perhaps I have missed some detail in readline somewhere. Cheers,
_J


james@work:~$ python
Python 2.5.2 (r252:60911, Oct  5 2008, 19:24:49) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline
>>> readline.get_history_item(0)
>>> readline.get_history_item(0) is None
True
>>> 
james@work:~$
History
Date User Action Args
2009-08-26 18:17:36purpleideasetrecipients: + purpleidea
2009-08-26 18:17:36purpleideasetmessageid: <1251310656.11.0.667090107201.issue6786@psf.upfronthosting.co.za>
2009-08-26 18:17:34purpleidealinkissue6786 messages
2009-08-26 18:17:34purpleideacreate