[reformatting to bottom-post]
En Sat, 26 Jan 2008 08:26:37 -0200, Alex K <[EMAIL PROTECTED]>
escribi�:
> On 26/01/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> --- Alex K <[EMAIL PROTECTED]> escribió:
>>
>> > Thank you for this interesting tip. However I'm not
>> > sure to know how
>> >
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.
Al
--- Alex K <[EMAIL PROTECTED]> 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
En Mon, 14 Jan 2008 21:05:38 -0200, Ben Finney
<[EMAIL PROTECTED]> escribi�:
> To my knowledge there's nothing in the default Python shell that
> enables what the OP is asking for. There are other Python shells, e.g.
> Idle, ipython, or a Python window inside Emacs, that may be better
> suited.
Thanks it's good to know. iPyton looks really neat.
On 15/01/2008, Ben Finney <[EMAIL PROTECTED]> wrote:
> John Machin <[EMAIL PROTECTED]> writes:
>
> > C:\junk>python demomore.py | more
>
> Your example uses the OS shell to invoke a pager on the output of the
> Python process. The OP was asking a
John Machin <[EMAIL PROTECTED]> writes:
> C:\junk>python demomore.py | more
Your example uses the OS shell to invoke a pager on the output of the
Python process. The OP was asking about paging *within* the Python
shell.
To my knowledge there's nothing in the default Python shell that
enables wha
Thanks John, but would it be possible to remain in the python interpreter?
On 14/01/2008, John Machin <[EMAIL PROTECTED]> wrote:
> On Jan 15, 7:35 am, "Alex K" <[EMAIL PROTECTED]> wrote:
> > Hi Tim,
> >
> > Yes I mean piping the output into "more" for example.
> >
>
> Why don't you "suck it and se
On Jan 15, 7:35 am, "Alex K" <[EMAIL PROTECTED]> wrote:
> Hi Tim,
>
> Yes I mean piping the output into "more" for example.
>
Why don't you "suck it and see"???
E.g.
C:\junk>copy con demomore.py
for i in range(100):
print 'line', i
^Z
1 file(s) copied.
C:\junk>python demomore.py | m
Hi Tim,
Yes I mean piping the output into "more" for example.
Alex
On 14/01/2008, Tim Roberts <[EMAIL PROTECTED]> wrote:
> "Alex K" <[EMAIL PROTECTED]> wrote:
> >
> >Does anyone know if the python shell supports paging or if I should
> >look into iPython? Thank you so much.
>
> "Paging" is an ov
"Alex K" <[EMAIL PROTECTED]> wrote:
>
>Does anyone know if the python shell supports paging or if I should
>look into iPython? Thank you so much.
"Paging" is an overloaded term. What do you mean, exactly? Do you mean
something like piping the output into "more"? The Python shell does that
for t
Hello,
Does anyone know if the python shell supports paging or if I should
look into iPython? Thank you so much.
Alex
--
http://mail.python.org/mailman/listinfo/python-list
11 matches
Mail list logo