[issue47233] show_caches option affects code positions reported by dis.get_instructions(...)

2022-04-07 Thread 15r10nk
15r10nk <15r10nk-python-iss...@polarbit.de> added the comment: I moved the line. Is there anything else required? unittests? -- ___ Python tracker ___

[issue47233] show_caches option affects code positions reported by dis.get_instructions(...)

2022-04-07 Thread 15r10nk
Change by 15r10nk <15r10nk-python-iss...@polarbit.de>: -- keywords: +patch pull_requests: +30430 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32406 ___ Python tracker

[issue47233] show_caches option affects code positions reported by dis.get_instructions(...)

2022-04-05 Thread Brandt Bucher
Brandt Bucher added the comment: Nice catch. The fix should be pretty simple: just move this line... https://github.com/python/cpython/blob/c1d93b6411f975d67e43942f1a2745a22983c18c/Lib/dis.py#L425 ...up to the top of the for loop. Are you interested in working on this? --

[issue47233] show_caches option affects code positions reported by dis.get_instructions(...)

2022-04-05 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47233] show_caches option affects code positions reported by dis.get_instructions(...)

2022-04-05 Thread 15r10nk
New submission from 15r10nk <15r10nk-python-iss...@polarbit.de>: The Instructions reported by dis.get_instructions(...) and dis.Bytecode(...) have different positions depending on the value of their show_caches argument. test2.py reproduces the problem. -- files: test2.py messages: