> > > >Is there a command like more(1) or less(1) in python to display
> > > >the output of a command (e.g. dir()) one page at a time?

You could always write your own ...

eg:

def page(it, numLines=20):
   if isinstance(it, dict):
      it = it.iteritems()
   for i, x in enumerate(it):
      print x
      if (i+1) % numLines == 0:
         raw_input('Press <enter> to continue...')

-- 
John.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to