This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients jafo, mark.dickinson, tim.peters
Date 2009-03-21.15:51:57
SpamBayes Score 3.0057012e-09
Marked as misclassified No
Message-id <1237650720.67.0.789780977182.issue1492860@psf.upfronthosting.co.za>
In-reply-to
Content
To see what Tim's talking about here, see the 'big switch' ("switch 
opcode") in function PyEval_EvalFrameEx in Python/ceval.c, and look at the 
"case BINARY_ADD" bit.  Inlining the bitwise operators should be even 
easier, since there are no overflow worries.  (We do have to assume that C 
longs are two's-complement with no trap representation, but 
Objects/intobject.c does that already, so it's probably okay.)

This only applies to 'short' integers, so I don't think it's relevant for 
Python 3.x.
History
Date User Action Args
2009-03-21 15:52:01mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, jafo
2009-03-21 15:52:00mark.dickinsonsetmessageid: <1237650720.67.0.789780977182.issue1492860@psf.upfronthosting.co.za>
2009-03-21 15:51:59mark.dickinsonlinkissue1492860 messages
2009-03-21 15:51:58mark.dickinsoncreate