[Python] Do comments slow down an interpreted language?

Discussão em 'Python' iniciado por Stack, Julho 26, 2025.

  1. Stack

    Stack Membro Participativo

    I use Python, but it could apply to other interpreted languages too (Ruby, PHP, JavaScript).

    According to my understanding of an interpreter, it reads programs in as strings and then converts those into code. Every time it parses a comment, that is wasted time.

    Is this the case? Is there some convention for comments in interpreted languages, or is it negligible?

    Continue reading...

Compartilhe esta Página