LT Python
Ideensammlung
Datentypen
- mutable (m) vs. Non Mutable (nm)
- Numbers (Decimal, Boolean) (nm)
- Sets (?)
- Strings, spezial ->"""<- (nm)
- Lists (m)
- Tuples (nm)
- Directories (m)
- Files (?)
Statements
- if, one line if x>y: print z
- a=1; b=2; print a+b
- [a, b,]
- for, while, try, with mit else
Sonstiges
- Documentation, __doc__
- Generator
- Iterator
- __spam__
- ipython
Functionen
- Scope
- global
- lambda
- arg
- kargs
- named args
- decorator
- yield
Module
- if __name__ == "main"
- __init__.py
- / -> .
- import .spam
OOP
- self, erstes Argument
- Decorator, classmethod
- Decorator property
- method
- repr, str
- Methoden auflösung, methode, __getarg__, ...
- "Flavous", dict like,...
- Spezial Methoden