Pyhon 2.x or 3.x, which is faster?

Chris Angelico rosuav at gmail.com
Sat Mar 12 05:40:48 EST 2016


On Sat, Mar 12, 2016 at 9:34 PM, BartC <bc at freeuk.com> wrote:
>> The act of "fixing" it, as you say, would change the semantics of the
>> language in a fundamental and major way. Strings by definition are
>> immutable in Python.
>>> Yet INPLACE_ADD is a valid byte-code even when operating on strings.

That's because INPLACE_ADD is a valid byte-code regardless of what
it's working on.
ChrisA


More information about the Python-list mailing list

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