Problems with exec scoping (solved)

Kragen Sitaker kragen at pobox.com
Tue Jun 4 18:37:48 EDT 2002


Erik Walthinsen <omega at temple-baptist.com> writes:
> Well, it turns out that I was being an idiot and not checking the source
> of the returned HTML page.  When repr() is run on an object, it returns a
> string such as:
> <captiveclient.CaptiveClient instance at 0x8189264>
> ...
> I will now go and see about writing a HTML-textizer for use in such
> situations.

Take a look at
http://lists.canonical.org/pipermail/kragen-hacks/2002-January/000291.html
--- it's an HTML version of repr() called htmlstr().  It generates
CSS-skinnable HTML that renders builtin types much more nicely than
the builtin repr() or str() do, using tables to make things wrap
nicely.

There's also HTMLRepr from pydoc.




More information about the Python-list mailing list