On 27/11/20 2:25 am, Steven D'Aprano wrote:
Block scoping adds semantic and implementation complexity and annoyance, while giving very little benefit.
Yet in *certain situations* it seems that block scoping is what people subconsciously assume. For example, loop variables in list comprehensions, the leaking of which unsettled enough people that it got changed. -- Greg _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/LHLTVILWAMBELTQEMEIIW76XNORSP4SL/ Code of Conduct: http://python.org/psf/codeofconduct/