8000 complete-python-course/course_contents/17_decorators at master · shalus0076/complete-python-course · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"course_contents/17_decorators","repo":{"id":602706911,"defaultBranch":"master","name":"complete-python-course","ownerLogin":"shalus0076","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-02-16T19:21:33.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/49873423?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1676575300.347971","canEdit":false,"refType":"branch","currentOid":"1acfce839a48c989982dd691bd198de460734955"},"tree":{"items":[{"name":"lectures","path":"course_contents/17_decorators/lectures","contentType":"directory"},{"name":"README.md","path":"course_contents/17_decorators/README.md","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n \u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003egroup\u003c/th\u003e\n \u003cth\u003ehidden\u003c/th\u003e\n \u003c/tr\u003e\n \u003c/thead\u003e\n \u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cdiv dir=\"auto\"\u003eAdvanced\u003c/div\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cdiv dir=\"auto\"\u003etrue\u003c/div\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDecorators in Python\u003c/h1\u003e\u003ca id=\"user-content-decorators-in-python\" class=\"anchor\" aria-label=\"Permalink: Decorators in Python\" href=\"#decorators-in-python\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eDecorators allow us to extend another function without modifying it directly.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe video course goes into a lot of detail. You can see this in the \u003ca href=\"https://github.com/tecladocode/complete-python-course/tree/master/course_contents/17_decorators/lectures/\"\u003electures\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eWe've also made a \u003ca href=\"https://blog.teclado.com/decorators-in-python/\" rel=\"nofollow\"\u003efull free mini-course on decorators\u003c/a\u003e!\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Decorators in Python","anchor":"decorators-in-python","htmlText":"Decorators in Python"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fshalus0076%2Fcomplete-python-course%2Ftree%2Fmaster%2Fcourse_contents%2F17_decorators"}},"totalCount":2,"showBranchInfobar":true},"fileTree":{"course_contents":{"items":[{"name":"10_advanced_python","path":"course_contents/10_advanced_python","contentType":"directory"},{"name":"11_web_scraping","path":"course_contents/11_web_scraping","contentType":"directory"},{"name":"12_browser_automation_selenium","path":"course_contents/12_browser_automation_selenium","contentType":"directory"},{"name":"13_async_development","path":"course_contents/13_async_development","contentType":"directory"},{"name":"14_managing_projects_pipenv","path":"course_contents/14_managing_projects_pipenv","contentType":"directory"},{"name":"15_flask","path":"course_contents/15_flask","contentType":"directory"},{"name":"16_interacting_with_apis","path":"course_contents/16_interacting_with_apis","contentType":"directory"},{"name":"17_decorators","path":"course_contents/17_decorators","contentType":"directory"},{"name":"18_advanced_oop","path":"course_contents/18_advanced_oop","contentType":"directory"},{"name":"19_gui_development_tkinter","path":"course_contents/19_gui_development_tkinter","contentType":"directory"},{"name":"1_intro","path":"course_contents/1_intro","contentType":"directory"},{"name":"20_unit_testing","path":"course_contents/20_unit_testing","contentType":"directory"},{"name":"21_algorithms_data_structures","path":"course_contents/21_algorithms_data_structures","contentType":"directory"},{"name":"22_popular_libraries","path":"course_contents/22_popular_libraries","contentType":"directory"},{"name":"2_intro_to_python","path":"course_contents/2_intro_to_python","contentType":"directory"},{"name":"3_first_milestone_project","path":"course_contents/3_first_milestone_project","contentType":"directory"},{"name":"4_object_oriented_programming","path":"course_contents/4_object_oriented_programming","contentType":"directory"},{"name":"5_errors","path":"course_contents/5_errors","contentType":"directory"},{"name":"6_files","path":"course_contents/6_files","contentType":"directory"},{"name":"7_second_milestone_project","path":"course_contents/7_second_milestone_project","contentType":"directory"},{"name":"8_type_hinting","path":"course_contents/8_type_hinting","contentType":"directory"},{"name":"9_advanced_built_in_functions","path":"course_contents/9_advanced_built_in_functions","contentType":"directory"},{"name":"assets","path":"course_contents/assets","contentType":"directory"},{"name":"index-page-contents.md","path":"course_contents/index-page-contents.md","contentType":"file"}],"totalCount":24},"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".templates","path":".templates","contentType":"directory"},{"name":"assets","path":"assets","contentType":"directory"},{"name":"course_contents","path":"course_contents","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"static","path":"static","contentType":"directory"},{"name":".flake8","path":".flake8","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".pre-commit-config.yaml","path":".pre-commit-config.yaml","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"algolia.config.json","path":"algolia.config.json","contentType":"file"},{"name":"babel.config.js","path":"babel.config.js","contentType":"file"},{"name":"docusaurus.config.js","path":"docusaurus.config.js","contentType":"file"},{"name":"package-lock.json","path":"package-lock.json","contentType":"file"},{"name":"package.json","path":"package.json","contentType":"file"},{"name":"sidebars.js","path":"sidebars.js","contentType":"file"}],"totalCount":17}},"fileTreeProcessingTime":3.358025,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/shalus0076/complete-python-course/branches":{"post":"HzF2hy1uDgy9dmpNbV2t6BwqcEMRBq-ckh4F3DLl8oH-u7BFpr7XjBnmWI3U0EPH75qgN4VdZi6uIvVxsTSq9Q"},"/shalus0076/complete-python-course/branches/fetch_and_merge/master":{"post":"KGfW8qqioQTflX_nTlxoSdzpj2D4lfKjIWDe4MkHdcWdeI3-FaUg6vQRHI7B0Si2xyDcixUF4nVFexF0cb8ZdQ"},"/shalus0076/complete-python-course/branches/fetch_and_merge/master?discard_changes=true":{"post":"JkFeuJ8r0VuZpeXQ1Brn-rwkao9FtoI4UKoOZPpVttKTXgW0ICxQtbIhhrlbl6cFp-05ZKgmku40scHwQu3aYg"}}},"title":"complete-python-course/course_contents/17_decorators at master · shalus0076/complete-python-course","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0