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 lemburg
Recipients amaury.forgeotdarc, gvanrossum, ishimoto, lemburg
Date 2008-04-18.08:46:10
SpamBayes Score 0.009773468
Marked as misclassified No
Message-id <48085FC6.2070008@egenix.com>
In-reply-to <1208489742.4.0.540423106802.issue2630@psf.upfronthosting.co.za>
Content
On 2008-04-18 05:35, atsuo ishimoto wrote:
> atsuo ishimoto <ishimoto@users.sourceforge.net> added the comment:
> 
> Is a codec which encode() returns an Unicode allowed in Python3?

Sure, why not ?

I think you have to ask another question: Is repr() allowed to
return a string (instead of Unicode) in Py3k ?

If not, then unicode_repr() will have to check the return value of
the codec and convert it back to Unicode as necessary.

> I started to think codec is not nessesary, but python function is enough.

That's what we currently have with unicode_repr(), but it doesn't
solve the problem.
History
Date User Action Args
2008-04-18 08:46:13lemburgsetspambayes_score: 0.00977347 -> 0.009773468
recipients: + lemburg, gvanrossum, ishimoto, amaury.forgeotdarc
2008-04-18 08:46:11lemburglinkissue2630 messages
2008-04-18 08:46:11lemburgcreate