[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: After further consideration and investigation, I believe the fix is to simply use the API as exposed by pyreadline to check the length of the history to detect the presence of an existing history. I've tested that fix locally and it seems to be working suitab

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca6efeedfc0e by Jason R. Coombs in branch 'default': Issue #20411: Use readline.get_current_history_length to check for the presence of a history, rather than get_history_item, which assumes a history is present. http://hg.python.org/cpython/rev/ca6

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-28 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is the proper fix to address the issue in site.py? Does this issue > reveal anything else of concern about the implementation? I don't know, but it's a regression, so we'd better add a "fix" or "workaround" in site.py anyway. -- _

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Is the proper fix to address the issue in site.py? Does this issue reveal anything else of concern about the implementation? Assuming Yes and No, then yes, I can put together a fix. -- ___ Python tracker

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds reasonably easy to fix. Can you write a patch? -- nosy: +pitrou priority: normal -> high stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-27 Thread Jason R. Coombs
New submission from Jason R. Coombs: Following the blame history, this appears to be new issue following issue5845. I'm using Python 3.4b2 64-bit on Windows. I've installed pyreadline 2.0 using Setuptools 2.1. Now, when I start the interactive interpreter, I get this output: > python Python 3