emitting HTML and XML in Python

Kragen Sitaker kragen at dnaco.net
Wed Sep 27 17:38:46 EDT 2000


In article <39D1E75E.7FAA29AB at unice.fr>, Jerome Alet  <alet at unice.fr> wrote:
>Kragen Sitaker wrote:
>> There might be times you'd want to use the stupid thing instead of the
>> smart one.
>
>Your module is very similar to the jaxml
>(http://cortex.unice.fr/~jerome/jaxml/) module I've written, in fact you
>use an even simpler solution than me, who didn't know the __call__
>thing.

Thank Peter Norvig; his Python vs. Lisp page explained about __call__,
which I'd seen before in the language manual but hadn't thought of when
I tried to implement this stuff in the first place.

>The main difference is that my module fully buffers its output, and
>allows a different method to deeply imbricate tags.

I had to look up 'imbricate', and I think you mean 'nest'; is that
right?
-- 
<kragen at pobox.com>       Kragen Sitaker     <http://www.pobox.com/~kragen/>
Perilous to all of us are the devices of an art deeper than we ourselves
possess.
                -- Gandalf the Grey [J.R.R. Tolkien, "Lord of the Rings"]





More information about the Python-list mailing list