paging in python shell

Alex K spaceoutlet at gmail.com
Mon Jan 14 16:01:54 EST 2008


Thanks John, but would it be possible to remain in the python interpreter?

On 14/01/2008, John Machin <sjmachin at lexicon.net> wrote:
> On Jan 15, 7:35 am, "Alex K" <spaceout... at gmail.com> 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 | more
> line 0
> line 1
> line 2
> line 3
> line 4
> [snip]
> line 50
> line 51
> line 52
> line 53
> line 54
> line 55
> line 56
> -- More  --
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list