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.

Author jgsack
Recipients jgsack, loewis
Date 2007-10-22.06:28:37
SpamBayes Score 0.00215074
Marked as misclassified No
Message-id <>
In-reply-to <>
Martin v. Löwis wrote:
> Martin v. Löwis added the comment:
> Ok. This is not a bug, but by design. unicode(X)==unicode(str(X)) for
> most things, and str(X)==repr(X) for most things. repr(None)=='None',
> hence the result you see. Closing as invalid.
> P.S. To respond via email, you have to add your email address to Your
> Details (you need to add all email addresses you want to use as From
> addresses).
> ----------
> resolution:  -> invalid
> status: open -> closed
> __________________________________
> Tracker <>
> <>
> __________________________________

OK, thanks Martin.

Now that I think about it, I do understand.

My difficulty (and source of my surprise) was in mistakenly thinking of
unicode() as performing a string translation operation (that is, an
operation on strings).

I would now say that it is better thought of as a representation
function quite parallel to the str() function.

With that mindset, there is no surprise.

Thanks again, for your prompt attention and useful replies.

Date User Action Args
2007-10-22 06:28:39jgsacksetspambayes_score: 0.00215074 -> 0.00215074
recipients: + jgsack, loewis
2007-10-22 06:28:39jgsacklinkissue1308 messages
2007-10-22 06:28:38jgsackcreate