• dis.get_instructions not showing CACHE instructions

    From stopa@martin.stopka@gmail.com to comp.lang.python on Thu Oct 10 15:07:20 2024
    From Newsgroup: comp.lang.python

    Hello,
    I noticed the change in dis module, no longer requiring show_caches to be
    set to True to show cache instructions. However I am not able to display
    them with get_instructions.
    Is there by any chance some bug preventing me to see them?

    Thanks

    Martin
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Barry@barry@barrys-emacs.org to comp.lang.python on Thu Oct 10 17:53:37 2024
    From Newsgroup: comp.lang.python


    On 10 Oct 2024, at 14:18, stopa via Python-list <python-list@python.org> wrote:

    Hello,
    I noticed the change in dis module, no longer requiring show_caches to be
    set to True to show cache instructions. However I am not able to display
    them with get_instructions.
    Is there by any chance some bug preventing me to see them?
    We need more information to be able to comment.
    What version of python do you see this working for?
    What version of python are you see it change?
    Can you show an example function that demonstrates the issue please.
    Barry

    Thanks

    Martin
    --
    https://mail.python.org/mailman/listinfo/python-list

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From stopa@martin.stopka@gmail.com to comp.lang.python on Thu Oct 10 19:31:57 2024
    From Newsgroup: comp.lang.python

    Oh god I am sorry :/ I somehow missed information about cache_info field.
    I was expecting to see those cache instructions as normal opcodes. So its working as expected.
    Thanks for your help.
    M.
    št 10. 10. 2024 o 18:53 Barry <barry@barrys-emacs.org> napísal(a):


    On 10 Oct 2024, at 14:18, stopa via Python-list <python-list@python.org>
    wrote:

    Hello,
    I noticed the change in dis module, no longer requiring show_caches to be set to True to show cache instructions. However I am not able to display them with get_instructions.
    Is there by any chance some bug preventing me to see them?

    We need more information to be able to comment.

    What version of python do you see this working for?
    What version of python are you see it change?

    Can you show an example function that demonstrates the issue please.

    Barry


    Thanks

    Martin
    --
    https://mail.python.org/mailman/listinfo/python-list



    --- Synchronet 3.20a-Linux NewsLink 1.114