Български | Català | Deutsche | Hrvatski | Čeština | Dansk | Nederlandse | English | Eesti keel | Français | Ελληνικά | Magyar | Italiano | Latviski | Norsk | Polski | Português | Română | Русский | Српски | Slovenský | Slovenščina | Español | Svenska | Türkçe | 汉语 | 日本語 |
P

python return self

Aktiivne fraas
Teabe uuendamise kuupäev: 2026/02/19
Otsingupäringu sagedus
606

Positsioonid sisse Google

Otsi fraase - Google

🔍
positsioon Domeen Lehekülg Tegevused
1 ru.stackoverflow.com /questions/1237113/%...
Pealkiri
python - Что значит вернуть self из метода касса
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
python - Что значит вернуть self из метода касса
Я смог сделать, чтобы программа заработала, но я не понимаю почему нельзя было просто вернуть self .count и вообще интересно, что значит return ...
2 stackoverflow.com /questions/43380042/...
Pealkiri
Purpose of return self python
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
Purpose of return self python
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/
Pealkiri
Python's Self Type
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
Python's Self Type
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...
Pealkiri
python - Purpose of `return self` from a class method?
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
python - Purpose of `return self` from a class method?
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...
Pealkiri
In Python, I come across the word 'return self' while ...
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
In Python, I come across the word 'return self' while ...
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...
Pealkiri
Why would one use return here instead of using self?
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
Why would one use return here instead of using self?
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/
Pealkiri
PEP 673 – Self Type | peps.python.org
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
PEP 673 – Self Type | peps.python.org
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...
Pealkiri
Self Type in Python
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
Self Type in Python
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...
Pealkiri
Класс self в Python
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
Класс self в Python
10 февр. 2021 г. — Зачем нужен класс self в Python ? Примеры использования в конструкторе и функциях для получения текущей ссылки на объект.
11 pythonmorsels.com /what-is-self/
Pealkiri
Python's self
Viimati uuendatud
Ei kehti
Lehe autoriteet
Ei kehti
Liiklus: Ei kehti
Tagasilingid: Ei kehti
Sotsiaalsed jagamised: Ei kehti
Laadimisaeg: Ei kehti
Lõigu eelvaade:
Python's self
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 ...

Lisateenused

💎