>> I would not write it this way, but as >> >> for name,codepoint in htmlentitydefs.name2codepoint: >> entity_map[name] = unichr(codepoint) > > has dictionary iteration changed in 3.0? if not, your code doesn't > quite work.
Right - I forgot to add .items(). > and even if you fix that, it doesn't work for all Python > versions that ET works for... That's true. However, the OP seemed to care only about Python 3.0 initially. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list