[Python-ideas] Limit scope of variables using round brackets

2022-01-17 Thread Stephen J. Turnbull
Iyad Ahmed writes: > Example use cases: > >- Loop variables and similar, it is sometimes more comfortable to scope >it to the loop body only >- Not having to name variables var1, var2, var3, or makeup unnecessarily >unique variable names, in some situations I am not authorit

[Python-ideas] Limit scope of variables using round brackets

2022-01-16 Thread Iyad Ahmed
Example use cases: - Loop variables and similar, it is sometimes more comfortable to scope it to the loop body only - Not having to name variables var1, var2, var3, or makeup unnecessarily unique variable names, in some situations In other languages the curly bracket is used, in Pyt