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...
Nesta página do site você pode assistir ao vídeo on-line Exploring Python's Scopes and Closures : A Code Conversation duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Real Python 26 May 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,927 vezes e gostou 76 espectadores. Boa visualização!