[Python-Dev] Minidom and Unicode

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat, 1 Jul 2000 14:22:39 +0200


> Note that __repr__ has to return a string object (and IIRC
> this is checked in object.c or abstract.c). The correct way
> to get there is to simply return str(...) or to have a
> switch on the type of self.tagName and then call .encode().

Ok. I believe tagName will be always a Unicode object (as mandated by
the DOM API), so I propose patch 100706
(http://sourceforge.net/patch/?func=detailpatch&patch_id=100706&group_id=5470)

Regards,
Martin