Strictly speaking it is not imported into *every* python process. Only those that are interactive, for a script invoked by python script.py, pyreadline is not imported unless you import for instance pdb and use set_trace.<div><div><br /></div></div><div>If you add disable_readline(True) to the pyreadline.ini file pyreadline should not integrate itself into the readline hooks of python and you would see the standard behaviour where ctrl-D will generate ^D at the prompt instead of exiting the process.</div><div><br /></div><div>I have not seen the infinite exception loop you see when using pyreadline master (what version of pyreadline and python are you using?)</div><div><div><br /></div><div>C:\python27> python</div><div>Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import pip</div><div>>>></div><div><br /></div><div><br /></div><br /><p>Fri Nov 15 2013 10:26:21 GMT+0100 (Västeuropa, normaltid), Paul Moore <p.f.moore@gmail.com> skrev:</p><blockquote type="cite">On 13 November 2013 08:14, Paul Moore <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>> wrote:<br /><blockquote><blockquote>Do you want to do a quick PR against the docs?<br /></blockquote><br />I'd be happy to, may take a couple of days to find some free time, but<br />I'll sort something out.<br /></blockquote><br />I'm just looking at this now. One thing that struck me was that the<br />reason I picked up on this is that when installed, pyreadline in<br />injected into *every* Python process (because core python imports<br />readline on startup). This changes behaviour in *every* Python process<br />(for example, "standard" Windows command history is lost, and Ctrl-Z<br />works differently). Also, there is a bug of some sort (involving the<br />low level console handling) that causes an infinite exception chain if<br />you import pip from the interactive prompt.<br /><br />Is it appropriat
 e to mention these issues in the IPython docs? I don't<br />want to add FUD, but I think people should have the information they<br />need to make a decision. (Maybe add the point about changed behaviour,<br />but omit the bug as it's rare, and might get fixed).<br /><br />Paul<br />_______________________________________________<br />IPython-dev mailing list<br />IPython-dev@scipy.org<br /><a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br /></blockquote></div>