Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-19 Thread Ronald Oussoren
On 18-apr-2006, at 23:48, Christopher Barker wrote: Ronald Oussoren wrote: On 13-apr-2006, at 18:47, Zachary Pincus wrote: Also, a related query: Is there somewhere in the Python Framework structure that is appropriate for placing dynamic libraries that Python would link to? I don't see

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-18 Thread Christopher Barker
Ronald Oussoren wrote: On 13-apr-2006, at 18:47, Zachary Pincus wrote: Also, a related query: Is there somewhere in the Python Framework structure that is appropriate for placing dynamic libraries that Python would link to? I don't see what this would buy us. It is possible to do this,

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-15 Thread Bill Janssen
I could make some nasty remarks about emacs and you could then strike back with remarks about vi, but lets not go there :-) Thanks for reminding me of vi. As I understand it (I'm afraid I've never seen the point of knowing much about vi :-) the model vi uses is quite different -- lean and

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-14 Thread Bill Janssen
I never need Python to have readline capability. Yeah you do, you probably just don't realize that you're using it. No, I really don't. The only time I ever interact with the Python REPL is in a GNU Emacs shell buffer (or, rarely, an Emacs pdb buffer), which does the dance for me. In the

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-14 Thread Robert Kern
Bill Janssen wrote: Just curious... Is there really a need for the readline library? On Mac, I always run Python shells in either (1) Terminal, or (2) xterm, or (3) an Emacs shell buffer. All of them have readline capability built in. I never need Python to have readline capability.

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-14 Thread Ronald Oussoren
On Friday, April 14, 2006, at 03:42AM, Bill Janssen [EMAIL PROTECTED] wrote: Just curious... Is there really a need for the readline library? On Mac, I always run Python shells in either (1) Terminal, or (2) xterm, or (3) an Emacs shell buffer. All of them have readline capability built in.

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-14 Thread Ronald Oussoren
On Thursday, April 13, 2006, at 11:53PM, Zachary Pincus [EMAIL PROTECTED] wrote: So... I have found that IPython exposes a bug in GNU readline 5.1, sadly enough. This bug causes segfaults when the up-arrow key is used under certain situations. Ugh. Fortunately, the extant readline

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-14 Thread Bill Janssen
Terminal and xterm don't have readline capability, the shell (bash) does. But that is of no use when you're in the python interactive shell. Then having readline support in python is very handy. Right you are, Ronald. Thanks for the correction. I never use them bare; I always run Emacs in

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-14 Thread Ronald Oussoren
On Friday, April 14, 2006, at 12:00PM, Bill Janssen [EMAIL PROTECTED] wrote: Terminal and xterm don't have readline capability, the shell (bash) does. But that is of no use when you're in the python interactive shell. Then having readline support in python is very handy. Right you are,

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Bill Janssen
Just for fun, what's the point of the execve? Just to choose the right Python executable? Never mind, I found it on Bob's blog. It's to get around the requirement to have an app bundle if you want to draw on the screen, apparently. Bill ___

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Ronald Oussoren
On 12-apr-2006, at 23:19, Zachary Pincus wrote: This is for Bob Ippolito - No it isn't, Bob didn't build the 2.4.3 release ;-) What version of readline comes with the Universal MacPython 2.4.3 release? And is it statically-linked, or is there a readline dylib somewhere in the python

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Ronald Oussoren
On 13-apr-2006, at 8:33, Bill Janssen wrote: Just for fun, what's the point of the execve? Just to choose the right Python executable? Never mind, I found it on Bob's blog. It's to get around the requirement to have an app bundle if you want to draw on the screen, apparently. That's

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Michael Broe
Just wanted to report that patching readline 5.1 and recompiling python from source did fix the original problem I had with IPython. Cheers, Mike ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Zachary Pincus
Just for fun, what's the point of the execve? Just to choose the right Python executable? Never mind, I found it on Bob's blog. It's to get around the requirement to have an app bundle if you want to draw on the screen, apparently. That's right. Note that this functionality won't be

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Zachary Pincus
This is for Bob Ippolito - No it isn't, Bob didn't build the 2.4.3 release ;-) Sorry sorry! Thanks for making that build, by the way. What version of readline comes with the Universal MacPython 2.4.3 release? And is it statically-linked, or is there a readline dylib somewhere in the

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Ronald Oussoren
On 13-apr-2006, at 18:47, Zachary Pincus wrote: This is for Bob Ippolito - No it isn't, Bob didn't build the 2.4.3 release ;-) Sorry sorry! Thanks for making that build, by the way. What version of readline comes with the Universal MacPython 2.4.3 release? And is it statically-linked,

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Michael Broe
On Apr 13, 2006, at 4:19 PM, Ronald Oussoren wrote: Which patch? Please provide a link to that patch, I won't go hunting for it. Current readline 5.1 patches are at: ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches Cheers, Mike ___ Pythonmac-SIG

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Zachary Pincus
So... I have found that IPython exposes a bug in GNU readline 5.1, sadly enough. This bug causes segfaults when the up-arrow key is used under certain situations. Ugh. Fortunately, the extant readline 5.1 patches solve this issue nicely. Hopefully you'll get a chance in the near

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Zachary Pincus
You can build the readline extension separately from Python without much fuss. I have a setup.py for it and the extracted source sitting in my svn: http://svn.red-bean.com/bob/readline/trunk/ Thanks! I didn't know it was that easy. Also, thanks everyone for your time while this issue

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Bill Janssen
Just curious... Is there really a need for the readline library? On Mac, I always run Python shells in either (1) Terminal, or (2) xterm, or (3) an Emacs shell buffer. All of them have readline capability built in. I never need Python to have readline capability. What's the use case here?

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-13 Thread Michael Broe
On Apr 13, 2006, at 9:41 PM, Bill Janssen wrote: Just curious... Is there really a need for the readline library? On Mac, I always run Python shells in either (1) Terminal, or (2) xterm, or (3) an Emacs shell buffer. All of them have readline capability built in. I never need Python to

[Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Michael Broe
I'm having an issue using IPython that may be related to readline, which I am pursuing on the IPython mailing list. I had my self-built version of readline 5.1 installed in /usr/local/ include, and I patched and reinstalled it, which was one theory for fixing the problem, but no go. I'm

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Zachary Pincus
This is for Bob Ippolito - What version of readline comes with the Universal MacPython 2.4.3 release? And is it statically-linked, or is there a readline dylib somewhere in the python framework? I ask because Michael Broe reported some problems (see below) with IPython that I had tracked

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Bob Ippolito
On Apr 12, 2006, at 2:19 PM, Zachary Pincus wrote: This is for Bob Ippolito - Well it's really for Ronald, I didn't build it. I have no idea. What version of readline comes with the Universal MacPython 2.4.3 release? And is it statically-linked, or is there a readline dylib somewhere in

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Zachary Pincus
This is for Bob Ippolito - Well it's really for Ronald, I didn't build it. I have no idea. Sorry! Hopefully Ronald will let us know what version of readline he used. Now, in regards to the GDB issue: can anyone with the latest developer tools who also has the Universal Python build

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Bob Ippolito
On Apr 12, 2006, at 2:40 PM, Zachary Pincus wrote: This is for Bob Ippolito - Well it's really for Ronald, I didn't build it. I have no idea. Sorry! Hopefully Ronald will let us know what version of readline he used. Now, in regards to the GDB issue: can anyone with the latest

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Zachary Pincus
Now, in regards to the GDB issue: can anyone with the latest developer tools who also has the Universal Python build installed try to run python under gdb? (I have a different install of python 2.4.3 that I don't want to nuke by installing the universal build just to test this; otherwise I

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Bob Ippolito
On Apr 12, 2006, at 3:20 PM, Zachary Pincus wrote: Now, in regards to the GDB issue: can anyone with the latest developer tools who also has the Universal Python build installed try to run python under gdb? (I have a different install of python 2.4.3 that I don't want to nuke by

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Zachary Pincus
Well, not to keep this thread going on any more than necessary -- though we do still need to hear from Ronald about what version of readline was used for the Universal MacPython -- but I have a comment. I would think that most gdb users already know how to cross an execve, but maybe I'm

Re: [Pythonmac-SIG] readline: where and how installed?

2006-04-12 Thread Bill Janssen
All I'm saying is that it might be a good idea to put a few lines in the README about the execve deal, and its implications for things like debugging. Because otherwise it could get pretty frustrating for some folk pretty fast. I agree. This seems unnecessarily obscure. Just for fun,