thadeusb/flask-cache — pull request #41 by tvavrys (2012-11-18 11:14:21+00:00)
Title: Bugfix argspec defaults index

argspec defaults correspond to the last elements listed in args.
http://docs.python.org/2/library/inspect.html#inspect.getargspec

```python
import inspect

def f(a, b=0):
pass

inspect.getargspec(f)
ArgSpec(args=['a', 'b'], varargs=None, keywords=None, defaults=(0,))
```

If you try to memoize 'f' function you will get IndexError: tuple index out of range on line 297 flask_cache/__init__.py.