Skip to content

Stack estimation for python 3.8 #2

@joemarshall

Description

@joemarshall

I think the stack estimation code could be updated thanks to a new jump parameter in stack effect in the dis module which now lets you get the stack effect of every instruction in the bytecode including jumps. It's much simpler than how you estimate it and should stay working even if new bytecode turns up.

Check out what I do in https://github.com/joemarshall/unthrow/blob/main/unthrow/unthrow.pyx

(Don't look too hard at the rest of the code though, it is pretty alpha!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions