Movatterモバイル変換
[0]ホーム
[Python-Dev] Unicode as argument for 8-bit format strings
Fred L. Drake, Jr.fdrake@acm.org
Fri, 7 Apr 2000 10:53:43 -0400 (EDT)
M.-A. Lemburg writes: > No problem... :-) Its a simple fix: once %s in an 8-bit string > sees a Unicode object it will stop processing the string and > restart using the unicode formatting algorithm. > > This will cost performance, of course. Optimization is easy though: > add a small "u" in front of the string ;-) Seems reasonable to me! -Fred--Fred L. Drake, Jr. <fdrake at acm.org>Corporation for National Research Initiatives
[8]ページ先頭