[issue14611] inspect.getargs fails on some anonymous tuples

2020-08-31 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue14611] inspect.getargs fails on some anonymous tuples

2020-08-23 Thread Irit Katriel
Irit Katriel added the comment: I think this was fixed here: https://github.com/python/cpython/commit/3b23004112aefffa72a3763916d78f12b9e056fe and in any case it's a 2.7-only issue, so can this ticket be closed? -- nosy: +iritkatriel ___ Python tr

[issue14611] inspect.getargs fails on some anonymous tuples

2015-10-07 Thread Scott Sanderson
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 t

[issue14611] inspect.getargs fails on some anonymous tuples

2015-10-07 Thread Scott Sanderson
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 n

[issue14611] inspect.getargs fails on some anonymous tuples

2012-05-20 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue14611] inspect.getargs fails on some anonymous tuples

2012-04-19 Thread Stefano Taschini
Stefano Taschini added the comment: I think this should do. inspect.getargs is now looking for STORE_DEREF besides STORE_FAST, and is making sure that the appropriate namespace (locals vs cell + free vars) is selected depending on the opcode. The only changes to the test suite are three addi

[issue14611] inspect.getargs fails on some anonymous tuples

2012-04-18 Thread Stefano Taschini
Stefano Taschini added the comment: I'll give it a try. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue14611] inspect.getargs fails on some anonymous tuples

2012-04-18 Thread R. David Murray
R. David Murray added the comment: Formal parameter tuple unpacking was removed in Python3, so this is a Python2-only issue. Would you like to submit a patch for Python2? -- nosy: +r.david.murray priority: normal -> low stage: -> needs patch ___ P

[issue14611] inspect.getargs fails on some anonymous tuples

2012-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +michael.foord, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue14611] inspect.getargs fails on some anonymous tuples

2012-04-18 Thread Stefano Taschini
New submission from Stefano Taschini : How to reproduce Take the following two functions: >>> def f(l, (x, y)): ...sup = max(u*x + v*y for u, v in l) ...return ((u, v) for u, v in l if u*x + v*y == sup) >>> def g((x, y)): ...def h(): ...