[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 access

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Ned Deily
In article k5j5sk$msb$1...@ger.gmane.org, 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,

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Peter Otten
Ned Deily wrote: In article k5j5sk$msb$1...@ger.gmane.org, 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

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 of: *

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

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 IPython,

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 steve+comp.lang.pyt...@pearwood.info 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

[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: [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, I go

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Ned Deily
In article k5jcbs$eub$1...@ger.gmane.org, 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

Re: readline trick needed

2012-10-13 Thread Etienne Robillard
On 13 Oct 2012 13:30:14 GMT Steven D'Aprano steve+comp.lang.pyt...@pearwood.info 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: readline trick needed

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 12:44 AM, Etienne Robillard animelo...@gmail.com wrote: Why dont you grow yourself some usable neurons instead ? Don't you realize now stackoverflow.com is starting to hurt your capacity to cogitate on your own or have you not realized this yet? Excuse me? I'm not

Re: readline trick needed

2012-10-13 Thread Etienne Robillard
On Sun, 14 Oct 2012 00:47:52 +1100 Chris Angelico ros...@gmail.com wrote: Excuse me? I'm not overly familiar with readline, so perhaps there is a really obvious way to do what Steven's trying to do, but this post does not appear to be the result of a lack of thinking. If it really IS

Re: readline trick needed

2012-10-13 Thread Roel Schroeven
Etienne Robillard schreef: On Sun, 14 Oct 2012 00:47:52 +1100 Chris Angelico ros...@gmail.com wrote: Excuse me? I'm not overly familiar with readline, so perhaps there is a really obvious way to do what Steven's trying to do, but this post does not appear to be the result of a lack of

Re: readline trick needed

2012-10-13 Thread Joshua Landau
On 13 October 2012 22:14, Roel Schroeven r...@roelschroeven.net wrote: Etienne Robillard schreef: On Sun, 14 Oct 2012 00:47:52 +1100 Chris Angelico ros...@gmail.com wrote: Excuse me? I'm not overly familiar with readline, so perhaps there is a really obvious way to do what Steven's

Re: readline trick needed

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 8:31 AM, Joshua Landau joshua.landau...@gmail.com wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does nothing more than slow them, that's something. That's what killfiles are for. You

Re: readline trick needed

2012-10-13 Thread Mark Lawrence
On 13/10/2012 22:31, Joshua Landau wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does nothing more than slow them, that's something. Most irritants are mere amateurs compared to Ilias Lazaridis. I wonder

Re: readline trick needed

2012-10-13 Thread Joshua Landau
On 13 October 2012 22:44, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 8:31 AM, Joshua Landau joshua.landau...@gmail.com wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does nothing more

Re: readline trick needed

2012-10-13 Thread Joshua Landau
On 13 October 2012 23:13, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/10/2012 22:31, Joshua Landau wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does nothing more than slow them, that's something.

Re: readline trick needed

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 9:25 AM, Joshua Landau joshua.landau...@gmail.com wrote: On 13 October 2012 22:44, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 8:31 AM, Joshua Landau joshua.landau...@gmail.com wrote: With two irritants (including 8), is it not advisable that

Re: readline trick needed

2012-10-13 Thread Mark Lawrence
On 13/10/2012 23:26, Joshua Landau wrote: On 13 October 2012 23:13, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/10/2012 22:31, Joshua Landau wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does

Re: readline trick needed

2012-10-13 Thread Mark Lawrence
On 13/10/2012 23:52, Mark Lawrence wrote: On 13/10/2012 23:26, Joshua Landau wrote: On 13 October 2012 23:13, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/10/2012 22:31, Joshua Landau wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to