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.002150741
Marked as misclassified No
Message-id <471C4310.4040504@san.rr.com>
In-reply-to <1193032989.59.0.562306079166.issue1308@psf.upfronthosting.co.za>
Content
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 <report@bugs.python.org>
> <http://bugs.python.org/issue1308>
> __________________________________
> 

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.

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