Proposal for new operators to python that add syntactic sugar for hierarcical data.
bruno at modulix
onurb at xiludom.gro
Fri May 19 14:10:34 EDT 2006
Ian Bicking wrote:
> glomde wrote:
>
>>i 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 than how you write today with packages like elementtree
>>and xist.
>>I dont want to replace the packages but the packages could be used with
>>the
>>new operators and the resulting IMHO is much more readable.
>
>
> You might want to look at PEP 359 for ideas:
> http://www.python.org/dev/peps/pep-0359/
>
And more specifically here - this answers my doubts about the
possibility to use the with statement:
http://mail.python.org/pipermail/python-list/2006-April/336774.html
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list