LT Python: Unterschied zwischen den Versionen

Aus Wiki CCC Göttingen
Zur Navigation springen Zur Suche springen
(erste Ideen zum Lightning Talk Python)
 
(unicode)
Zeile 5: Zeile 5:
* Numbers (Decimal, Boolean) (nm)
* Numbers (Decimal, Boolean) (nm)
* Sets (?)
* Sets (?)
* Strings, spezial ->"""<- (nm)
* Strings, spezial ->"""<- (nm), unicode
* Lists (m)
* Lists (m)
* Tuples (nm)
* Tuples (nm)

Version vom 18. Dezember 2011, 10:13 Uhr

Ideensammlung

Datentypen

  • mutable (m) vs. Non Mutable (nm)
  • Numbers (Decimal, Boolean) (nm)
  • Sets (?)
  • Strings, spezial ->"""<- (nm), unicode
  • 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

Ketegorie:Ligthing Talks