29.11.20 18:27, Paul Sokolovsky пише: > Here's example of it in action: > > $ cat example_for1.py > def fun(): > x = 123 > for x in range(5): > print(x) > print("old x:", x) > > fun()
I am strong -1. 1. It will break existing code. Including a lot of code written by me. 2. Shadowing local variables considered bad practice in other programming languages, and even forbidden is some of them. So why implement a feature considered harmful? _______________________________________________ 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/WXRD25IGQ5ZHEFBZ6W5SRZE4RQAW7DBH/ Code of Conduct: http://python.org/psf/codeofconduct/