This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: minidom __repr__ returns Unicode strings
Type: Stage:
Components: None Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: effbot Nosy List: effbot, loewis
Priority: normal Keywords: patch

Created on 2000-07-01 12:18 by loewis, last changed 2022-04-10 16:02 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
None loewis, 2000-07-01 12:18 None
Messages (3)
msg32999 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2000-07-01 12:18
 
msg33000 - (view) Author: Fredrik Lundh (effbot) * (Python committer) Date: 2000-07-01 16:02
Note that repr and str has been changed to accept unicode strings from __repr__ and __str__.

In the current version, they're converted to 8-bit strings using the default encoding.  Future (post 2.0) versions may support unicode strings throughout, so it's probably better to leave minidom as is.

In other words, this is patch is now "out of date".
msg33001 - (view) Author: Fredrik Lundh (effbot) * (Python committer) Date: 2000-07-08 17:46
Based on discussions on python-dev, repr has been changed
again; it now uses "unicode escape" encoding if __repr__
returns a unicode string.

I suggest closing this patch, since it's no longer needed
(unless Martin proves me wrong once again, of course ;-)
History
Date User Action Args
2022-04-10 16:02:02adminsetgithub: 32506
2000-07-01 12:18:16loewiscreate