3 ms·
But block scope is all about modularization and ensuring that parts of the program that need not interact do not interact. Python code seems to either be writt
by Blikkentrekker 6y ago
But block scope is all about modularization and ensuring that parts of the program that need not interact do not interact.
Python code seems to either be written from a mentality of not at all caring about variable lifetime and making it far longer than it should be, or programmers that do care, and uses classes and functions as makeshift tools to attempt to limit the lifetime of variables to make up for the lack of block scope of the language.