Originally reported by @jetheron in #129. ``` import dill def foo(): def _foo(): if not hasattr(_foo, '_counter'): _foo._counter = 0 _foo._counter += 1 return _foo._counter return _foo f = foo() f() f() dill.dumps(f) ```