# Bezpośrednie rozszerzanie udekorowanych obiektów
>>> def decorate(func):
        func.marked = True          # Przypisanie atrybutu funkcji w celu późniejszego użycia        return func

>>> @decorate
... def hack(a, b):
        return a + b

>>> hack.marked
True

>>> def annotate(text):             # To samo, ale wartość jest rozszerzeniem dekoratora
        def decorate(func):
            func.label = text
            return func
        return decorate

>>> @annotate('hack info')
... def hack(a, b):                 # hack = annotate(...)(hack)
        return a + b

>>> hack(1, 2), hack.label
(3, 'hack info')

