[Python-Dev] 3.3 str timings

martin at v.loewis.de martin at v.loewis.de
Tue Aug 21 17:28:40 CEST 2012


>> print(timeit("c in a", "c = '…'; a = 'a'*1000+c")) # ord(c) = 8230

> I'm not sure that I read your benchmark correctly: you write c='...'

Apparenly you didn't - or your MUA was not able to display it
correctly. He didn't say
'...' # U+002E U+002E U+002E, 3x FULL STOP
but
'…' # U+2026, HORIZONTAL ELLIPSIS
Regards,
Martin


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /