Customizing cgitb

D'Arcy J.M. Cain darcy at druid.net
Thu Sep 2 13:30:45 EDT 2010


On Thu, 02 Sep 2010 19:02:35 +0200
Peter Otten <__peter__ at web.de> wrote:
> You could try to monkey-patch pydoc:

I suppose so.  Not a comfortable solution of course.  It's bad enough
when you get too familiar with the internals of a module but even worse
when you need to get familiar with the internals of modules imported by
a module.  I'll give it a shot though.

> import pydoc
> def cram(text, maxlen):
>     return text 
> pydoc.cram = cram

Or...

import pydoc
pydoc.cram = lambda text,maxlen: text

Thanks.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list