Български | 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

Aktiv frase
Oppdateringsdato for informasjon: 2026/02/19
Søkefrekvens
606

Stillinger i Google

Søkefraser - Google

🔍
Posisjon Domene Side Handlinger
1 ru.stackoverflow.com /questions/1237113/%...
Tittel
python - Что значит вернуть self из метода касса
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
python - Что значит вернуть self из метода касса
Я смог сделать, чтобы программа заработала, но я не понимаю почему нельзя было просто вернуть self .count и вообще интересно, что значит return ...
2 stackoverflow.com /questions/43380042/...
Tittel
Purpose of return self python
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
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/
Tittel
Python's Self Type
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
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...
Tittel
python - Purpose of `return self` from a class method?
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
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...
Tittel
In Python, I come across the word 'return self' while ...
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
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...
Tittel
Why would one use return here instead of using self?
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
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/
Tittel
PEP 673 – Self Type | peps.python.org
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
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...
Tittel
Self Type in Python
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
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...
Tittel
Класс self в Python
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
Класс self в Python
10 февр. 2021 г. — Зачем нужен класс self в Python ? Примеры использования в конструкторе и функциях для получения текущей ссылки на объект.
11 pythonmorsels.com /what-is-self/
Tittel
Python's self
Sist oppdatert
N/A
Sideautoritet
N/A
Trafikk: N/A
Tilbakekoblinger: N/A
Sosiale aksjer: N/A
Lastetid: N/A
Forhåndsvisning av utdrag:
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 ...

Tilleggstjenester

💎