Skip to content

Add co_stacksize to code objects. #4545

Closed

Description

@DimitrisJim

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): pass

In RustPython:

>>>>> foo.__code__.co_stacksize
AttributeError: 'code' object has no attribute 'co_stacksize'

While in Python:

>>> foo.__code__.co_stacksize
1

looking at the other methods on PyCode should help, the implementation should be similar to those (also related #4502 #4501)

Activity

  1. added a commit that references this issue on Feb 22, 2023
    c80802d
  2. added 2 commits that reference this issue on Mar 6, 2023
    d5caa41
    b2afdf3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions