[Python] Why is self not an address in Python?

Discussão em 'Python' iniciado por Stack, Agosto 14, 2025.

  1. Stack

    Stack Membro Participativo

    I am somewhat new to Python and am trying to learn more about the structures, not just the syntax.

    In my research, I read that in the generally used self.something syntax, self is considered the first parameter for a function/method and refers to an instance. But, I also read that it's not a memory address. What is the mechanism that it refers to as an instance without being a memory address. Is there a table or some other structure being used?

    Continue reading...

Compartilhe esta Página