| Posició | Domini | Pàgina | Accions |
|---|---|---|---|
| 1 | ru.stackoverflow.com | /questions/1237113/%... | |
|
Títol
python - Что значит вернуть self из метода касса
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
Я смог сделать, чтобы программа заработала, но я не понимаю почему нельзя было просто вернуть self .count и вообще интересно, что значит return ... |
|||
| 2 | stackoverflow.com | /questions/43380042/... | |
|
Títol
Purpose of return self python
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
Returning self from a method simply means that your method returns a reference to the instance object on which it was called. |
|||
| 3 | realpython.com | /python-type-self/ | |
|
URL complet
Títol
Python's Self Type
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
The Self type is a special type hint that you can use to annotate a method that returns an instance of its class . This makes the return type explicit and can ... |
|||
| 4 | softwareengineering.stackexchange.com | /questions/29657/pur... | |
|
URL complet
Títol
python - Purpose of `return self` from a class method?
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
23 дек. 2010 г. — Suffice it to say, returning self is the definitive OO way to craft class methods , but Python allows for multiple return values, tuples, lists, ... |
|||
| 5 | quora.com | /in-python-i-come-ac... | |
|
Títol
In Python, I come across the word 'return self' while ...
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
Returning self allows you to chain methods on an object . For instance, if a class has methods a, b and c you can chain them on object o as |
|||
| 6 | reddit.com | /r/learnpython/comme... | |
|
URL complet
Títol
Why would one use return here instead of using self?
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
I guess both are valid methods but isn't the whole point of using self that it's accessible throughout the entire class? Why bother returning ... |
|||
| 7 | peps.python.org | /pep-0673/ | |
|
URL complet
Títol
PEP 673 – Self Type | peps.python.org
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
10 нояб. 2021 г. — By annotating the return type as Self , we no longer have to declare a TypeVar with an explicit bound on the base class. The return type Self ... |
|||
| 8 | geeksforgeeks.org | /python/self-type-in... | |
|
Títol
Self Type in Python
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
23 июл. 2025 г. — Self-type is a brand-new function added to Python 3.11 . A method or function that returns an instance of the class it belongs to is defined by the self type. |
|||
| 10 | pythonim.ru | /osnovy/klass-self-v... | |
|
URL complet
Títol
Класс self в Python
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
10 февр. 2021 г. — Зачем нужен класс self в Python ? Примеры использования в конструкторе и функциях для получения текущей ссылки на объект. |
|||
| 11 | pythonmorsels.com | /what-is-self/ | |
|
URL complet
Títol
Python's self
Última actualització
N/A
Autoritat de la pàgina
N/A
Trànsit:
N/A
Enllaços d'entrada:
N/A
Accions socials:
N/A
Temps de càrrega:
N/A
Vista prèvia del fragment:
28 дек. 2020 г. — self is the first argument of every method in Python . When Python calls a method in your class, it will pass in the actual instance of that class that you're ... |
|||