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

Brian Granger ellisonbg.net at gmail.com
Mon Aug 17 18:38:17 EDT 2009


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?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20090817/1b63954b/attachment.html>

More information about the IPython-dev mailing list