Message382708
Why not just fix bogus_code_obj.py?
Something like this (using the replace method) would make it more future-proof to similar changes in the code object constructor signature (and be more readable!):
import dis
POP_TOP = dis.opmap['POP_TOP']
wordcode = bytes([POP_TOP, 0] * 10)
f = lambda: None
f.__code__ = f.__code__.replace(co_code=wordcode)
f() |
|
Date |
User |
Action |
Args |
2020-12-08 03:55:17 | Dennis Sweeney | set | recipients:
+ Dennis Sweeney, eric.smith, sbz, BTaskaya |
2020-12-08 03:55:17 | Dennis Sweeney | set | messageid: <1607399717.28.0.241583596861.issue42422@roundup.psfhosted.org> |
2020-12-08 03:55:17 | Dennis Sweeney | link | issue42422 messages |
2020-12-08 03:55:17 | Dennis Sweeney | create | |
|