[IPython-dev] Why do self.readline = readline

Brian Granger ellisonbg.net@gmail....
Mon Aug 17 17:38:17 CDT 2009


Hi,

In a couple of places in IPython's code base (InteractiveShell,
IPCompleter), we do this:

import IPython.utils.rlineimpl as readline
self.readline = readline

Is there a reason for this?  The only reason I can think of is to make sure
that we point to the right readline always, even if a user imports the wrong
one later.

Is this thinking correct?  Can we get rid of this and just use readline as a
normal module?

Cheers,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20090817/1b63954b/attachment-0001.html 


More information about the IPython-dev mailing list