Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Re: Python 1.6a2 Unicode bug (was Re: comparing strings and ints)

Just van Rossumjust@letterror.com
Wed, 26 Apr 2000 15:13:13 +0100


I wrote:>A utf-8-encoded 8-bit string in Python is *not* a string, but a "ByteArray".Another way of putting this is:- utf-8 in an 8-bit string is to a unicode string what a pickle is to anobject.- defaulting to utf-8 upon coercing is like implicitly trying to unpicklean 8-bit string when comparing it to an instance. Bad idea.Defaulting to Latin-1 is the only logical choice, no matter howwestern-culture-centric this may seem.Just


[8]ページ先頭

©2009-2025 Movatter.jp