closures and decorators Flashcards
1
Q
rule for name lookup
A
LEGB
2
Q
doc string property in function object
A
__doc__
3
Q
function for passing metadata to decorator
A
functools.wraps(f)
4
Q
property decorator
A
property(fget=None, fset=None, fdel=None, doc=None)
5
Q
setter decorator
A
@p.setter()