Difference between revisions of "Python double under (dunder) methods"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
* <code>_xxxx</code> and <code>__xxxx</code>. Read https://docs.python.org/3/tutorial/classes.html#private-variables | * <code>_xxxx</code> and <code>__xxxx</code>. Read https://docs.python.org/3/tutorial/classes.html#private-variables | ||
* <code>[[from]] os [[import]] open as open_</code> | * <code>[[from]] os [[import]] open as open_</code> | ||
+ | * [[Underscore]] | ||
== Activities == | == Activities == |
Revision as of 05:58, 15 March 2022
Dunder stands for "double + under" methods
__init__ __str__ __call__ __setitem__ __getitem__ __delitem__ __len__ __contains__
Related
- Methods
- Classes
- Double underscore
- Class methods
- Python, C
- Polymorphism
_xxxx
and__xxxx
. Read https://docs.python.org/3/tutorial/classes.html#private-variablesfrom os import open as open_
- Underscore
Activities
See also
- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise
Advertising: