python's sum() and non-integer values
Is there a simple and quick way to use sum() with non-integer values?

So I can use it like this:

    class Foo(object):
        def __init__(self,bar)
            self.bar=bar

    mylist=[Foo(3),Foo(34),Foo(63),200]
    result=sum(mylist) # result should be 300

I tried overwritting `__add__` and `__int__` etc, but I don't have found a solution yet
python's sum() and non-integer values
===

Is there a simple and quick way to use sum() with non-integer values?

So I can use it like this:

    class Foo(object):
        def __init__(self,bar)
            self.bar=bar

    mylist=[Foo(3),Foo(34),Foo(63),200]
    result=sum(mylist) # result should be 300

I tried overwritting `__add__` and `__int__` etc, but I don't have found a solution yet