Skip to content

Latest commit

 

History

History

python-3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Python 3

Sraz 3.1

  • dunder methods (jen jednoduše: __str__, __name__, ale už NE __add__, ...)
  • generátory (yield)
  • iterátory (__iter__, __next__)
  • vlastní context manager
  • list/dict/set comprehensions
  • ternary operator
  • dekorátory

Sraz 3.2

  • regular expressions
  • rekurze (dů: fraktálový stromeček :-))
  • variable scope (materiál "funkce více do hloubky")
  • *list, **dict expanze

Sraz 3.3

  • @property (- OOP: inheritance, super())
  • OOP: staticmethod, classmethod, konvence _protected, __private

Sraz 3.4

  • OOP: interfaces, kompozice (strong assoc.), agregace (weak assoc.)
  • dunder methods (__getitem__, __add__, ...)