New submission from Scott Sanderson :
In some circumstances, it's useful to be able in inspect the parameters with
which an instance of functools.lru_cache was instantiated. It's currently
possible to recover the cache's maxsize via the .cache_info() method, but
there's n
Scott Sanderson added the comment:
I've posted a patch to update the docs to
https://github.com/python/cpython/pull/7331.
--
nosy: +Scott Sanderson2
___
Python tracker
<https://bugs.python.org/is
Change by Scott Sanderson :
--
pull_requests: +6961
___
Python tracker
<https://bugs.python.org/issue29235>
___
___
Python-bugs-list mailing list
Unsubscribe:
Scott Sanderson added the comment:
This looks like it's been dormant for a bit. I've posted a patch (with tests
and docs) to https://github.com/python/cpython/pull/6808.
--
nosy: +Scott Sanderson
___
Python tracker
<https://bu
Scott Sanderson added the comment:
Note also that a much simpler repro for this issue is:
inspect.getargs(((x for _ in [0]) for x in [0]).gi_code)
This triggers the same issue because the inner generator expression closes over
the loop variable of the outer expression, which causes us to hit
Scott Sanderson added the comment:
This issue is the root cause of at least two open issues in IPython:
https://github.com/ipython/ipython/issues/8293
https://github.com/ipython/ipython/issues/8205
Testing locally, the patch supplied here fixes both of those issues. Is there
still work that