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
inspect.getargspec() is wrong for def foo((x)): #43096
Comments
See my recent checkin on HEAD for fixing def foo((x)): |
Logged In: YES That's a bit odd. Following defs: def bar((x)): pass
def foo(x): pass In 2.4: >>> dis.dis(bar)
1 0 LOAD_FAST 0 (.0)
3 STORE_FAST 1 (x)
6 LOAD_CONST 0 (None)
9 RETURN_VALUE
>>> dis.dis(foo)
1 0 LOAD_CONST 0 (None)
3 RETURN_VALUE In 2.5: >>> dis.dis(bar)
1 0 LOAD_CONST 0 (None)
3 RETURN_VALUE
>>> dis.dis(foo)
1 0 LOAD_CONST 0 (None)
3 RETURN_VALUE |
Logged In: YES This at least explains why test_inspect didn't fail for 2.5 |
Logged In: YES Can this bug be closed? It seems that the only problem |
Logged In: YES Yes, it seems so. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: