From 0dd3adf6722631d0eea329fcb0980b1a6a966e60 Mon Sep 17 00:00:00 2001 From: Vivek Soundrapandi Date: Sun, 14 Oct 2018 09:50:16 +0530 Subject: [PATCH] Added list of function first class object pointers (#18404) Added list of function first class object pointers and interlinked them within documentation making them more navigatable --- client/src/pages/guide/english/python/decorators/index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/pages/guide/english/python/decorators/index.md b/client/src/pages/guide/english/python/decorators/index.md index ff1454ac65..dad8280457 100644 --- a/client/src/pages/guide/english/python/decorators/index.md +++ b/client/src/pages/guide/english/python/decorators/index.md @@ -3,7 +3,13 @@ title: Python Decorators --- Decorators essentially work as wrappers. They modify the behaviour of the code before and after a target function execution, without the need to modify the function itself, augmenting the original functionality, thus decorating it. -Before going in detail about decorators, there are some concepts that should be clear. In Python, functions are objects and we can do a lot of useful stuff with them. +Before going in detail about decorators, there are some concepts that should be clear. In Python, functions are objects and we can do a lot of useful stuff with them. Some of them are: +* [Assigning funtions to a variables](#assigning-funtions-to-a-variables) +* [Defining functions inside other functions](#defining-functions-inside-other-functions) +* [Functions can also be passed as parameters to other functions](#functions-can-also-be-passed-as-parameters-to-other-functions) +* [Functions can return other functions](#functions-can-return-other-functions) +* [Inner functions have access to the enclosing scope](#inner-functions-have-access-to-the-enclosing-scope) + > ### Assigning funtions to a variables: