About 22,100 results
Open links in new tab
  1. self in Python - GeeksforGeeks

    Jul 4, 2026 · It is simply a naming convention that Python developers follow to represent the current object. Although you can use …

  2. Python self Parameter - W3Schools

    Note: While you can use a different name, it is strongly recommended to use self as it is the convention in Python and makes your …

  3. python - What is the purpose of the `self` parameter? Why is it needed ...

    Using self is a design decision by python, not strictly mandatory from a language design point of view, to make explicit the instance …

  4. Python Self - W3Schools

    The self parameter is a reference to the current instance of the class, and is used to access variables that belongs to the class. It …

  5. self (argument) | Python Glossary – Real Python

    In Python, self is a widely followed convention for naming the first argument in instance methods within a class. It represents the …

  6. self in Python, Demystified - Programiz

    The self keyword is used to represent an instance (object) of the given class. In this case, the two Cat objects cat1 and cat2 have …

  7. When do you use 'self' in Python? - Stack Overflow

    Oct 18, 2016 · There is nothing 'special' about the name self. It is the name preferred by convention by Pythonistas, to indicate what …

  8. Python self Keyword Explained (OOP Guide)

    Jul 18, 2026 · Learn what Python's self keyword really means, how instance methods are bound to objects, common mistakes, and …

  9. Python self: What It Is and Why It Exists

    The self parameter is the object a method was called on. Learn why every method needs it, what the dot does and how to call a …

  10. Python's self - Python Morsels

    Dec 28, 2020 · Some programming languages use the word this to represent that instance, but in Python we use the word self. …

  11. Some results have been removed