Object Not Callable, float?

John Bokma john at castleamber.com
Mon Nov 30 05:24:15 CET 2009

"W. eWatson" <wolftracks at invalid.com> wrote:

> Yikes. Thanks very much. Python seems to act unlike other language in 
> which words like float are reserved. I'll use asum.

The problem is that there is a function sum and you creating a float sum:

sum = 0.0


mean = sum(hist)

even if both could exist side by side it would be very confusing IMO.


More information about the Python-list mailing list