[issue2417] [py3k] Integer floor division (//): small int check omitted

Adam Olsen report at bugs.python.org
Wed Mar 19 17:19:50 CET 2008


Adam Olsen <rhamph at gmail.com> added the comment:

The original bug is not whether or not python reuses int objects, but
rather that an existing optimization disappears under certain
circumstances.  Something is breaking our optimization.

The later cases where the optimization is simply gone in 3.0a3 are more
difficult.  We don't *have* to keep them.. but we probably want them. 
The small int reuse happens for a reason.

----------
nosy: +Rhamphoryncus

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2417>
__________________________________


More information about the Python-bugs-list mailing list