What are SCOPES and NAMESPACES in Python?
Автор: Coders Bring Change (Python for Everyone)
Загружено: 2024-03-15
Просмотров: 795
Scope is all about the location and the scale of things and their life span. And namespaces are the mechanism to achieve this in Python. In this tutorial you learn how scopes an namespaces work, how variables are resolved, how to make namespaces and why the global and nonlocal keywords can be dangerous.
C H A P T E R S
0:25 Scopes v.s. Namespaces
0:45 Global scope
2:15 Function scope
2:50 Python name resolving
3:30 Built-in scope
4:50 Namespace with modules
6:35 Enclosing namespace
8:24 Modify out of scope
10:25 Global and nonlocal cause side effects
M Y O N L I N E T R A I N I N G
🎓Do you like my style of teaching? Try free chapters of my online courses: https://pythonforeveryone.com
#closure #scope #namespace
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: