Re: [on topic] Re: readline trick needed

2012-10-16 Thread Ned Deily
In article , Peter Otten <__pete...@web.de> wrote: > Ned Deily wrote: > > Keep in mind that the Python readline module may be linked to either the > > GPL-licensed GNU readline or the BSD-licensed editline (libedit) library > > (the default on newer OS X systems and probably on *BSD systems) and >

Re: [off topic], was Re: [on topic] Re: readline trick needed

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 10:36 AM, Peter Otten <__pete...@web.de> wrote: > Dwight Hutto wrote: > > I knew I'd eventually regret putting "on topic" into the subject... I didn't write that. If you're referring to OT, it means Off Topic, and a response would be appreciated. And you can call me David,

[off topic], was Re: [on topic] Re: readline trick needed

2012-10-16 Thread Peter Otten
Dwight Hutto wrote: I knew I'd eventually regret putting "on topic" into the subject... Well done, Dwight. -- http://mail.python.org/mailman/listinfo/python-list

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 7:27 AM, Steven D'Aprano wrote: > On Tue, 16 Oct 2012 10:30:01 +0200, Peter Otten wrote: > >> Steven D'Aprano wrote: >> >>> I'm working with the readline module, and I'm trying to set a key >>> combination to process the current command line by calling a known >>> function,

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Steven D'Aprano
On Tue, 16 Oct 2012 13:20:24 +0100, Robert Kern wrote: > On 10/16/12 12:27 PM, Steven D'Aprano wrote: >> Well, I was hoping for a pure Python solution, rather than having to >> troll through who knows how many thousands of lines of code in a >> language I can barely read. > > Are you confusing I

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Robert Kern
On 10/16/12 12:27 PM, Steven D'Aprano wrote: On Tue, 16 Oct 2012 10:30:01 +0200, Peter Otten wrote: Steven D'Aprano wrote: I'm working with the readline module, and I'm trying to set a key combination to process the current command line by calling a known function, *and* enter the command lin

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Steven D'Aprano
On Tue, 16 Oct 2012 10:30:01 +0200, Peter Otten wrote: > Steven D'Aprano wrote: > >> I'm working with the readline module, and I'm trying to set a key >> combination to process the current command line by calling a known >> function, *and* enter the command line. >> >> Something along the lines

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Peter Otten
Ned Deily wrote: > In article , Peter Otten <__pete...@web.de> > wrote: >> Steven D'Aprano wrote: >> > I'm working with the readline module, and I'm trying to set a key >> > combination to process the current command line by calling a known >> > function, *and* enter the command line. > [...] >> A

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Ned Deily
In article , Peter Otten <__pete...@web.de> wrote: > Steven D'Aprano wrote: > > I'm working with the readline module, and I'm trying to set a key > > combination to process the current command line by calling a known > > function, *and* enter the command line. [...] > Anyway, here's what I came u

[on topic] Re: readline trick needed

2012-10-16 Thread Peter Otten
Steven D'Aprano wrote: > I'm working with the readline module, and I'm trying to set a key > combination to process the current command line by calling a known > function, *and* enter the command line. > > Something along the lines of: > > * execute function spam() in some context where it can a