Have you been wondering how scopes and closures work in Python? Maybe you’ve just heard about object.__closure__, and you’d like to figure out what exactly it does. In this Code Conversation video course, you’ll see how to use the Thonny editor as a debugger to walk through some sample code and get a better understanding of scopes and closures in Python.
This Code Conversation video course covers how to:
Clarify code by refactoring it with descriptive names
Learn how functions access variables in local and nonlocal scopes
Understand how inner and outer function calls open and close their own scopes
You can find the complete course here:
https://realpython.com/courses/explor...
On this page of the site you can watch the video online Exploring Python's Scopes and Closures : A Code Conversation with a duration of hours minute second in good quality, which was uploaded by the user Real Python 26 May 2022, share the link with friends and acquaintances, this video has already been watched 2,927 times on youtube and it was liked by 76 viewers. Enjoy your viewing!