<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Well one way to do this, although perhaps crude, would be to check to see if the libreadline is really a link to editline, since on a default Leopard install, it is:<div><br class="webkit-block-placeholder"></div><div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">[mvl ~]$ ls -l /usr/lib/libreadline.dylib </span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">lrwxr-xr-x  1 root  wheel  15 Oct 17 15:59 /usr/lib/libreadline.dylib@ -> libedit.2.dylib</span></font></div><div><br class="webkit-block-placeholder"></div><div>I suppose one could also check for a "real" readline in "/usr/local", in case someone installed it.</div><div><br class="webkit-block-placeholder"></div><div>-mvl</div></div><div> <br><div><div>On Oct 30, 2007, at 2:43 PM, Brian Granger wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I am afraid that this patch won't cut it.  It does a simple test of<br>the os type.  The problem is that someone could install a version of<br>python on OS X and want to use the other readline library (for example<br>the OS X python binaries from the python.org website ship with this<br>readline).  Somehow, we need to do a test of exactly what readline is<br>installed as well as an os test.  But, I won't have Leopard running on<br>my system for a few more weeks so I can't help with this.<br><br>Can anyone play around to see if it is possible to detect which<br>readline is installed?<br><br>Thanks,<br><br>Brian<br><br>On 10/29/07, Michael Vanlandingham <<a href="mailto:m.vanland@gmail.com">m.vanland@gmail.com</a>> wrote:<br><blockquote type="cite">FWIW, this patch works for me.  I'm on IPython 0.8.2.svn.r2841.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This was driving me nuts for some time -- after all, the _Ruby_ shell<br></blockquote><blockquote type="cite">(irb) had tab-completion in Leopard, so why shouldn't Python/<br></blockquote><blockquote type="cite">iPython?   I hadn't found the time to figure out a solution, so hooray<br></blockquote><blockquote type="cite">for user communities.  I say commit the change.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks -- you guys made my day!<br></blockquote><blockquote type="cite">Michael<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Oct 27, 2007, at 11:25 AM, Fernando Perez wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">On 10/27/07, Boyd Waters <<a href="mailto:bwaters@nrao.edu">bwaters@nrao.edu</a>> wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">OK, thanks... I'll try to put something in ipy_defaults.py<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I'm trying to come up to speed on the new style configuration. I'll<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">try looking through Trac for more info as well.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Honestly, this is so important that I'd rather have it in the core so<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">it works for any user, without bugging them about updating their<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">config setup or having to think at all.  If they have requested<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">readline support, then it should just work.  We already have<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">platform-specific code to work around a  things in Windows, having a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">little bit of Leopard support doesn't bother me one bit.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Have a look at the attached patch, and if something like that works<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">well, we can easily just drop it in.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Cheers,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">f<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><ip_leopard.diff>_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Pythonmac-SIG maillist  -  <a href="mailto:Pythonmac-SIG@python.org">Pythonmac-SIG@python.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://mail.python.org/mailman/listinfo/pythonmac-sig">http://mail.python.org/mailman/listinfo/pythonmac-sig</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">IPython-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev">http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev</a><br></blockquote><blockquote type="cite"><br></blockquote></blockquote></div><br></div></body></html>