Re: Two aces up Python's sleeve

2024-11-07 Thread dn via Python-list
On 8/11/24 11:15, Greg Ewing via Python-list wrote: On 8/11/24 3:04 am, Mild Shock wrote: This only works for small integers. I guess this is because tagged pointers are used nowadays ? No, it's because integers in a certain small range are cached. Not sure what the actual range is nowadays,

Re: Two aces up Python's sleeve

2024-11-07 Thread Greg Ewing via Python-list
On 8/11/24 3:04 am, Mild Shock wrote: This only works for small integers. I guess this is because tagged pointers are used nowadays ? No, it's because integers in a certain small range are cached. Not sure what the actual range is nowadays, it used to be something like -5 to 256 I think. BT