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

glomde tbrkic at yahoo.com
Thu May 18 12:10:48 CEST 2006


> What about using <XXX>data</XXX> for nodes and '=' for attributes ?
> Would look like:
>
> <html>
>   <head>
>     <title>Page Title</title>
>   </head>
>   <body bgcolor='#ffffff'>
>     Hello World
>   </body>
> </html>
>
> > I think that with the added syntax you get better view of the html
> > page.
>
> indeed !-)

I dont think it is very pythonic :-). You dont use endtags and then you
dont use ':' to
mark that you nest a level. :-)
And I dont see where it is allowed to put real python code.
So could you show an example with a for loop? :-)




More information about the Python-list mailing list