Description
Documentation
show_caches was deprecated in 3.13 for dis.get_instructions.
The documentation misses the following things:
get_instructions:
The documentation says:
The show_caches parameter is deprecated and has no effect. The cache_info field of each instruction is populated regardless of its value.
problems:
- What does 'no effect' mean?
- The cache_info field is also not well documented.
My first assumption was that "The cache_info field of each instruction" would mean that each instruction (including Cache instructions) would be part of the returned list, but this is not the case.
Bytecode:
Bytecode() has also a show_caches parameter which has no effect any more but the deprecation is not documented.
Questions
Is it still possible to get access to the Cache bytecodes? They are only visible with dis.dis(...,show_caches=True) but I found no way to access the Cache
bytecode objects.
should this deprecation be part of the whatsnew page for 3.13?