[Python-bugs-list] [ python-Bugs-504343 ] Unicode docstrings and new style classes
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 16 Jan 2002 04:10:08 -0800
Bugs item #504343, was opened at 2002-01-16 04:10
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504343&group_id=5470
Category: Type/class unification
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unicode docstrings and new style classes
Initial Comment:
Unicode docstrings don't work with new style
classes. With old style classes they work:
----
class foo:
u"föö"
class bar(object):
u"bär"
print repr(foo.__doc__)
print repr(bar.__doc__)
----
This prints
----
u'f\xf6\xf6'
None
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504343&group_id=5470