Is there any way to to get tab completion of Python expressions (i.e. like what Ipython does) in twisted manhole sessions? Specifically, I'm using a variant of twisted.conch.stdio, which I only discovered today but seems to be a much more sound approach than the nasty concoction of reactor.crash and restarting the reactor and Ipython which I've tried before. Thanks, Dickon
On Tue, 21 Jul 2009 18:41:07 +0100, Dickon Reed <dickon.reed+twisted@gmail.com> wrote:
Is there any way to to get tab completion of Python expressions (i.e. like what Ipython does) in twisted manhole sessions?
Specifically, I'm using a variant of twisted.conch.stdio, which I only discovered today but seems to be a much more sound approach than the nasty concoction of reactor.crash and restarting the reactor and Ipython which I've tried before.
There's no support in manhole for tab completion. This would be a great feature. If someone would like to try to implement it, I'd be happy to offer guidance. Jean-Paul
On Tue, Jul 21, 2009 at 6:41 PM, Dickon Reed <dickon.reed+twisted@gmail.com<dickon.reed%2Btwisted@gmail.com>
wrote:
Is there any way to to get tab completion of Python expressions (i.e. like what Ipython does) in twisted manhole sessions?
I've got this working, although I haven't cleaned the patch up yet and got test coverage. I also have implemented the trick that some shells use where you can type a few characters, and then use up and down arrow to navigate through the parts of the history with the prefix you typed. Dickon
On Tue, Aug 4, 2009 at 6:14 AM, Dickon Reed <dickon.reed+twisted@gmail.com<dickon.reed%2Btwisted@gmail.com>
wrote:
On Tue, Jul 21, 2009 at 6:41 PM, Dickon Reed < dickon.reed+twisted@gmail.com <dickon.reed%2Btwisted@gmail.com>> wrote:
Is there any way to to get tab completion of Python expressions (i.e. like what Ipython does) in twisted manhole sessions?
I've got this working, although I haven't cleaned the patch up yet and got test coverage. I also have implemented the trick that some shells use where you can type a few characters, and then use up and down arrow to navigate through the parts of the history with the prefix you typed.
This is awesome! I'm really looking forward to seeing your patch :).
participants (3)
-
Dickon Reed
-
Glyph Lefkowitz
-
Jean-Paul Calderone