We start Day 23 with an introduction to decorators.
Decorators
00:00 So you’ve already seen the notation @ and then name before a function definition. You may have seen it as you’ve explored different programs in Python, but we’ve also seen it when we covered object-oriented programming with class methods and static methods.
00:19 For example. These are decorators. So today we’re going to focus on decorators in general,
00:25 if you’ve understood closures yesterday, and don’t worry if you haven’t understood it fully. It’s one of those topics which normally needs quite a few passes before it clicks and it makes sense.
00:35 Decorators is a continuation of it because a decorator is a type of closure.
00:41 Same warning as yesterday. These topics are a bit involved and don’t worry if it doesn’t fully make sense, straight away. We will work towards making sure that closures yesterday and decorators today fully make sense at some point.
You must own this product to join the conversation.