]> granicus.if.org Git - python/commit
Do the int inlining only if the type is really an int, not whenever
authorGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 16:06:23 +0000 (16:06 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 16:06:23 +0000 (16:06 +0000)
commit46add98758415f6180532326571d73f22966c34e
treeed5fd8f7babfbfea5e8089ef8b00be286802d9bf
parent13228a6f099cbf4855fa0dc0ee921f174bc967ff
Do the int inlining only if the type is really an int, not whenever
PyInt_Check() succeeds.  That returns true for subtypes of int, which
may override __add__ or __sub__.
Python/ceval.c