Peter,

Your example will output all lines using the plainpager in the latest beta (which you can download from www.jython.org) and Jython 2.5 trunk.

Unfortunately the plainpager, chosen by default for Jython (see the source of Lib/pydoc.py for getpager), does not provide for a paging style output (what one would expect from less for example). Given that we now support subprocess and related functionality, this presumably should be feasible.

- Jim

On Mon, Feb 9, 2009 at 4:59 PM, Peter Schow <Peter.Schow@sun.com> wrote:
Jython version:
  Jython 2.5b0 (trunk:5540, Oct 31 2008, 13:55:41)
  [Java HotSpot(TM) Server VM (Sun Microsystems Inc.)] on java1.6.0_11


I can't figure out if the pydoc pager() method should be working in
Jython or not.   The following snippet works in CPython 2.4.4
but outputs nothing in Jython.

---------------
import pydoc

textp = ''
for i in range(1,500):
       textp = textp + 'Line' + str(i) + '\n'

pydoc.pager(textp)




------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users



--
Jim Baker
jbaker@zyasoft.com