This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients AlexWaygood, sobolevn, terry.reedy, zach.ware
Date 2022-01-29.06:50:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I am opposed at this time.  Leaving loop variables available is an intended feature of python.

After reading point 1, I was tempted to say that you are making a fetish of typing or making the tail wag the dog. I mention this because others might have similar reactions.  After reading points 2 and 3, I am much more favorable and would allow changes in idlelib if any were needed.  A cleaner dir and help listing affects everyone.

I changed the title to be more 'neutral'.  'Leak' is perjorative.  "we need to remove these names" is a bit misleading as it implies total removal, which is not the proposal.

As it is, the PR applies a style standard on the stdlib that is not in PEP 8.  I recommend that you start by proposing an addition to PEP-8. 
 "Unless X, global loop variables should be explicitly deleted as soon as not needed.  Or use a comprehension."  (I checked and 'loop' does not currently appear in PEP-8, and none of the 5 examples I checked could use a comprehension.)

If you do, I recommend starting with dir and help, with typing third.

You might post the idea on pydev and ask how much and what sort of discussion is needed.
Date User Action Args
2022-01-29 06:50:26terry.reedysetrecipients: + terry.reedy, zach.ware, sobolevn, AlexWaygood
2022-01-29 06:50:25terry.reedysetmessageid: <>
2022-01-29 06:50:25terry.reedylinkissue46565 messages
2022-01-29 06:50:25terry.reedycreate