You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
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
assignee=Noneclosed_at=<Date2018-04-25.19:06:05.653>created_at=<Date2018-04-22.17:11:17.147>labels= ['3.8', 'type-feature', 'library']
title='Add support of NOP and EXTENDED_ARG in stack_effect()'updated_at=<Date2018-04-25.19:06:05.653>user='https://github.com/serhiy-storchaka'
Currently dis.stack_effect() doesn't support opcodes NOP and EXTENDED_ARG. NOP is never emitted by the standard compiler (it is temporary added in the peephole optimizer, but later it is removed). EXTENDED_ARG is a special case, it is considered as a part of long instructions.
dis.stack_effect() itself is not used in the dis module. It can be used in the third-party code, and the third-party code can produce bytecode with non-standard use of NOP and EXTENDED_ARG. Supporting them in dis.stack_effect() can avoid the need of special casing them in the third-party code.
I don't know whether this is a bug fix or a new feature.