"glomde" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi I would like to extend python so that you could create hiercical > tree structures (XML, HTML etc) easier and that resulting code would be > more readable. > > The syntax i would like is something like the below: > > # Example creating html tree > > '*!*' is an operator that creates an new node > '*=*' is an operator that sets an attribute. >
It's not quite so syntactically sugary, but it looks like much of the functionality you are looking for is in elementTree, which will be incorporated into 2.5 (or you can download and install yourself from http://www.effbot.org/downloads/#elementtree). -- Paul -- http://mail.python.org/mailman/listinfo/python-list