Skip to content

Latest commit

 

History

History

ep002

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Probably the most asked question on my channel -- what are those funny @ signs!

I explain a simple decorator, a decorator factory, and some common decorators you'll find in python.

Interactive examples

Python

import t

t.f(1)
t.f.__name__
t.f.__doc__
t.f.__annotations__

t.f.__module__
t.f.__wrapped__


import t
c = t.C(5)
c.x
c.y
t.C.func()
t.C(5).func()

Bash

python -i t.py