[Ipython-tickets] [IPython] #213: With output caching disabled, empty lines cause problems
IPython
ipython-tickets@scipy....
Thu Jan 31 14:50:26 CST 2008
#213: With output caching disabled, empty lines cause problems
---------------------+------------------------------------------------------
Reporter: marc | Owner: fperez
Type: defect | Status: new
Priority: normal | Milestone:
Component: ipython | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
When output caching is disabled, and entering an empty line by just
hitting enter, i hit a problem on line 538 of Prompts.py, because the
self.prompt_count index becomes larger but the self.input_hist list does
not, causing an IndexError.
I solved it by removing the full_cache condition part on line 202/203 of
Logger.Py (i.e. if out_cache.do_full_cache and \), however I'm not sure if
this condition was there to protect something else from causing crashes
:). It seems to work fine for now. Maybe a better solution anyway is to
just take the last element of input_hist?
--
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/213>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list