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...
In questa pagina del sito puoi guardare il video online Exploring Python's Scopes and Closures : A Code Conversation della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Real Python 26 May 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,927 volte e gli è piaciuto 76 spettatori. Buona visione!