[Python] Editing a tuple

Discussão em 'Python' iniciado por Stack, Maio 28, 2025.

  1. Stack

    Stack Membro Participativo

    It is my understanding that values in tuples cannot be changed... aka they are immutable. I know there are workarounds such as converting the tuple or tuples into lists and then editing the list and converting back into a tuple. But the new tuple created is not the same as the original tuple right? It may look like it is and like it was edited, but the new tuple is stored at a different memory location correct?

    Are there any bugs or security flaws when performing this type of operation with the code?

    I am expecting this to cause a security vulnerability or a bug in any anything that is coded in this way.

    Continue reading...

Compartilhe esta Página