Difference between revisions of "Python:Training 2013-03-25"

From MPDLMediaWiki
Jump to navigation Jump to search
Line 9: Line 9:
==Requirements==
==Requirements==
* own Laptop with any operation system (Windows notebooks for "workstation-only" users can be ordered at it@mpdl.mpg.de)
* own Laptop with any operation system (Windows notebooks for "workstation-only" users can be ordered at it@mpdl.mpg.de)
* configured EduRoam for network-access (please follow instructions on http://doku/mediawiki/index.php/Eduroam)
* configured EduRoam for network-access (please follow instructions on http://doku/mediawiki/index.php/Eduroam - available only in R213 (!!))
* Installation of Python 2.7
* Installation of Python 2.7
** download from: http://www.python.org/getit/
** download from: http://www.python.org/getit/
** Windows-Package available at http://www.python.org/download/
** Windows-Package available at http://www.python.org/download/
* every package more will be install during the training
* every package more will be install during the training


==training stuff==
==training stuff==

Revision as of 14:45, 19 March 2013

Training 25.03.2013 - 27.03.2013[edit]

formal stuff[edit]

  • Start: 25.03.2013 09:00
  • End: 27.03.2013 17:00
  • daily training from 09:00 to 17:00
  • room 213

Requirements[edit]

training stuff[edit]

  • Organisation von Python-Code bei umfangreichen Projekten
    • Packages
    • import
  • list, tuple, dict (Zusammenfassung aus "Python-Einführung"
  • list, tuple dict, set (advanced features):
    • List Comprehensions
    • Generator-Ausdrücke
    • Iteratoren
    • Mengen (sets)
    • dict: update, get, setdefault, pop, items
  • Funktionsparameter
    • Parameter-Defaults
    • Funktionen mit beliebig langen Parameterlisten
    • Packen und Entpacken von Listen, Tupeln und Dictionaries
    • als Sequenzen von Funktionsparametern
  • Typumwandlungen der Grunddatentypen
    • int, float, str, dict, list, tuple, set
  • Verschachtelte Collections
    • Result sets, list of dictionaries
  • Dateien, Objektserialisierung und Objektbanken
    • file
    • shelf als Beispiel von pickle-Anwendung
  • Python-Klassen (Python-Typen)
    • object methods
    • static methods
    • class methods
    • get/set methods (Vergleich mit JavaBeans)
    • properties
    • filigrane Zugriffsrechte auf Objektattribute
    • (Vergleich mit Java-Zugriffsrechten)
    • Operatorenüberladung
    • list-like objects
    • dictionary -like objects
    • callable objects
    • Vererbung
  • Exceptions
    • Eigene Fehlerklassen modellieren
    • Eigene Fehlerobjekte in Methoden einbauen
  • Das Dokumentationssystem von Python
    • das Objektattribut __doc__ (docstring)
    • reStructuredText als Syntax von docstring
    • automatische Generierung von Dokumentation (epydoc)
  • Python UnitTests (eine kurze Einführung)
    • der Zusammenhang von UnitTests und docstrings
    • der Python-Interpreter als Betriebssystem
    • die Module os, sys, shutils
  • Graphische Benutzeroberfläche (GUI) (eine kurze Einführung)
  • SQL-Datenbankanbindung mit Python (kurze Beispiele)
  • Threads (eine kurze Einführung)