-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Opening this separately from #1838 since it also seems like a good first issue.
Currently, code objects are missing the co_stacksize attribute:
def foo(a, b): passIn RustPython:
>>>>> foo.__code__.co_stacksize
AttributeError: 'code' object has no attribute 'co_stacksize'While in Python:
>>> foo.__code__.co_stacksize
1looking at the other methods on PyCode should help, the implementation should be similar to those (also related #4502 #4501)