Proposal for new operators to python that add syntactic sugar for hierarcical data.

glomde tbrkic at yahoo.com
Thu May 18 03:00:44 EDT 2006


But you cant mix python code in there when creating the nodes.
That is when it gets quite ugly an unreadable according to me.

But I also relly do think that this:

# build a tree structure
  root = ET.Element("html")
  *!*root:
     *!*head("head"):
         *!*title("title):
              *=*text = "Page Title"
     *!*body("body"):
              *=*bgcolor = "#ffffff"
              *=*text = "Hello, World!"

Especially if you start having deeper hierachies like. But the big
other plus is that you can
have any python code in beetween.




More information about the Python-list mailing list