James G. sack (jim) added the comment:

Here's more:

>>> unicode(object)
u"<type 'object'>"

There seems to be an call to repr() somewhere in the process.

This seems, at least to me, to violate the principle of least surprise, and 
I'm thinking that unicode(x) ought to return UnicodeDecodeError if x is not 
a string. 

Maybe this is argueable. If so, I'd like to be educated. :-)

Regards,
..jim

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1308>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to