Bug in __imul__

Roman Suzi rnd at onego.ru
Wed Jul 11 08:39:50 EDT 2001


On Wed, 11 Jul 2001, Emile van Sebille wrote:

> Does it bother anyone that 
> 
> a *= 3 + 4
> 
> returns a different value from
> 
> a = a * 3 + 4
> 
> ??

There is a joke about americans:

they were confused that Excel give different result from 
pocket calculator:

[5] [+] [3] [*] [4] [=]

| 32 |

is different from 

5+3*4

| 17 |

as calculated by Excel.

Where is the bug? 

Sincerely yours, Roman A.Suzi
-- 
 - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
 





More information about the Python-list mailing list