3 ms·
In many (most?) other languages compounds / blocks always introduce a scope. E.g. in C++ (or Java) try { /* new scope */ } catch (FooException &foo) {
by formerly_proven 5y ago
In many (most?) other languages compounds / blocks always introduce a scope. E.g. in C++ (or Java)
try { /* new scope */ }
catch (FooException &foo) { /* another scope */ }
Python is probably one of not that many languages where this is not the case.