Structure using whitespace vs logical whitespace

Дамјан Георгиевски gdamjan at
Tue Dec 16 01:44:15 CET 2008

> In most languages, I'll do something like this
> xmlWriter.BeginElement("parent");
> ----xmlWriter.BeginElement("child");
> ----------xml.Writer.Characters("subtext");
> ----xmlWriter.EndElement();
> xmlWriter.EndElement();
> Where the dashes are indentation (since some newsgroup handlers don't
> do tabs well).  XML writing is just an example.

Well, XML beeing just an example.. but still for XML in Python you
probably want to use some XML templating library like Genshi. And for
other stuff there are probably similar sollutions.

дамјан ( )

war is peace
freedom is slavery
restrictions are enablement

More information about the Python-list mailing list