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.

作者 gvanrossum
收信人 Emil Stenström, ezio.melotti, gvanrossum, martin.panter, vstinner
日期 2016-01-08.02:22:45
SpamBayes Score -1.0
Marked as misclassified
Message-id <1452219765.79.0.31808943056.issue26045@psf.upfronthosting.co.za>
In-reply-to
内容
Any solution that encodes Unicode in a way that works for some characters but fails for others has the same problem that Unicode had in Python 3. Unfortunately we're stuck with such a solution (Latin-1) and for backwards compatibility reasons we can't change it. If we were to deprecate it, we should warn for *any* data given as a Unicode string, even if it's plain ASCII (even if it's an empty string :-).

But even if we don't deprecate it, we can still change the text of the error message (but not the type of the exception used) to be more clear.

Can we please start drafting a suitable error message here?
历史
日期 用户 动作 参数
2016-01-08 02:22:45gvanrossum修改recipients: + gvanrossum, vstinner, ezio.melotti, martin.panter, Emil Stenström
2016-01-08 02:22:45gvanrossum修改messageid: <1452219765.79.0.31808943056.issue26045@psf.upfronthosting.co.za>
2016-01-08 02:22:45gvanrossum链接issue26045 messages
2016-01-08 02:22:45gvanrossum创建