1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] why .pyc file isn't modified after script is updated and rerun?

Discussão em 'Python' iniciado por Stack, Setembro 15, 2025.

  1. Stack

    Stack Membro Participativo

    When I run my python script for the first time, I can find the cached bytecode file in the __pycache__ folder. When I make a few changes and run it again, I see the .pyc file isn't modified (even though the script runs as expected).

    I guess the new bytecode must be generated somehow in memory.

    Why isn't it modified? Is there a way I can find the modified file?

    Continue reading...

Compartilhe esta Página