Mark Dickinson <dicki...@gmail.com> added the comment:

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.

----------
keywords: +easy
stage: test needed -> needs patch
versions:  -Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1492860>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to