Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closured function fails with RecursionError #211

Closed
mmckerns opened this issue Feb 6, 2017 · 4 comments · Fixed by #443
Closed

closured function fails with RecursionError #211

mmckerns opened this issue Feb 6, 2017 · 4 comments · Fixed by #443
Labels
Milestone

Comments

@mmckerns
Copy link
Member

mmckerns commented Feb 6, 2017

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)
@mmckerns mmckerns added the bug label Feb 6, 2017
@mmckerns
Copy link
Member Author

fixed by #443

@tvalentyn
Copy link

Hi, do we have an anticipated date for next dill release? Thanks!

@mmckerns
Copy link
Member Author

Hi @tvalentyn. Yes -- but for a number of reasons (that I won't go into here) it's about 4 months late. However (and especially now that #469 is closed) it is literally the next thing I'm planning to do... and hopefully that means it will be out by this afternoon.

@mmckerns mmckerns added this to the dill-0.3.5 milestone May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants