Message56641
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 |
|
Date |
User |
Action |
Args |
2007-10-22 06:28:39 | jgsack | set | spambayes_score: 0.00215074 -> 0.00215074 recipients:
+ jgsack, loewis |
2007-10-22 06:28:39 | jgsack | link | issue1308 messages |
2007-10-22 06:28:38 | jgsack | create | |
|