Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: paging in python shell
Alex K
1/26/2008 10:27:00 AM
That seems interesting but it's not quite what I want to do. To take
an example I would like to be able to do something similar to the
mysql shell when its pager is set to less. Displayhook is called
whenever an expression is being evaluated. I'd like to call 'less' on
the ouput of a statement.
Alex
On 26/01/2008, gagsl-py2@yahoo.com.ar <gagsl-py2@yahoo.com.ar> wrote:
>
> --- Alex K <spaceoutlet@gmail.com> escribió:
>
> > Thank you for this interesting tip. However I'm not
> > sure to know how
> > to use it. It seems pydoc.pager('text') just pages
> > the text passed in.
> > How do I actually make the python shell use a
> > different pager?
>
> I'm unsure of what you want. Do you want the print
> statement, inside the Python interpreter, to page its
> output? Write a function to page the output the way
> you like, and assign it to sys.displayhook (see
>
http://docs.python.org/lib/module-sys.htm...
)
>
> --
> Gabriel Genellina
>
>
> Tarjeta de crédito Yahoo! de Banco Supervielle.
> Solicitá tu nueva Tarjeta de crédito. De tu PC directo a tu casa. www..tuprimeratarjeta.com.ar
> --
>
http://mail.python.org/mailman/listinfo/p...
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: paging in python shell
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password