[issue45168] dis output for co_consts is confusing

2021-09-10 Thread Irit Katriel
Irit Katriel added the comment: See example here: https://github.com/iritkatriel/cpython/pull/30/files#r706517665 -- components: +Library (Lib) type: -> behavior versions: +Python 3.11 ___ Python tracker __

[issue45168] dis output for co_consts is confusing

2021-09-10 Thread Irit Katriel
New submission from Irit Katriel : When dis doesn't have co_consts, it just prints the index of the const in () instead. This is both unnecessary and confusing because (1) we already have the index and (2) there is no indication that this is the index and not the value. Can we change the out