This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taschini
Recipients cben, loewis, ness, ping, r.david.murray, rhettinger, taschini
Date 2012-04-24.15:26:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oh well, in that case I guess we'll have to work around it.

Here's the monkey patch I use to overcome this limitation in pydoc, in case others wish to add it to their PYTHONSTARTUP or sitecustomize:

def pipepager(text, cmd):
    """Page through text by feeding it to another program."""
        import locale
    except ImportError:
        encoding = "ascii"
        encoding = locale.getpreferredencoding()
    pipe = os.popen(cmd, 'w')
        pipe.write(text.encode(encoding, 'xmlcharrefreplace') if isinstance(text, unicode) else text)
    except IOError:
        pass # Ignore broken pipes caused by quitting the pager program.
import pydoc
pydoc.pipepager = pipepager
del pydoc, pipepager
Date User Action Args
2012-04-24 15:26:42taschinisetrecipients: + taschini, loewis, ping, rhettinger, cben, r.david.murray, ness
2012-04-24 15:26:42taschinisetmessageid: <>
2012-04-24 15:26:42taschinilinkissue1065986 messages
2012-04-24 15:26:41taschinicreate