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.Dismiss alert
It's already possible to show specialized bytecode using dis.dis(code, adaptive=True) but it's not possible to do it from the CLI. I think we can add a flag -S that does it (most of the other flags are exposed to the CLI).
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
The CLI will show bytecode for code that's never run, so it will never be specialized.
Actually, dis.dis(adaptive=True) does show specialized bytecode. Or maybe I'm not using the correct terminology? For instance, a simple x = None shows a LOAD_CONST and not a LOAD_CONST_IMMORTAL, which is what I found weird.
Feature or enhancement
Proposal:
It's already possible to show specialized bytecode using
dis.dis(code, adaptive=True)
but it's not possible to do it from the CLI. I think we can add a flag-S
that does it (most of the other flags are exposed to the CLI).Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
dis
CLI #127414The text was updated successfully, but these errors were encountered: