I fired up python and wrote following code:
sum(range(5)) |
why did this happen? Well, I accidentally overwritten the sum builtin:
sum = 0 |
The fix is quite trivial: reload the builtin :)
from __builtin__ import sum |
I fired up python and wrote following code:
sum(range(5)) |
why did this happen? Well, I accidentally overwritten the sum builtin:
sum = 0 |
The fix is quite trivial: reload the builtin :)
from __builtin__ import sum |