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
Erroneous code objects created with PyCode_New #39683
Comments
If you copy a code object by calling say new.code with def null():
return None
def wrapfunc(func):
def _inner(*args):
return func(*args)
return _inner
wrapped = wrapfunc(null)
code_object = wrapped.func_code
new_code_object = new.code(< code_object >) then the new_code_object will not have had its Looking at the code in PyCode_New I can't see why this (Bug noticed on Python 2.3.2 on windows) |
Logged In: YES I don't think this is still a bug any longer. When I disassemble new_code_object, I get the same as the |
Logged In: YES Assuming this is fixed. |
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: