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 oleksandr.suvorov
Recipients Mark.Shannon, christian.heimes, oleksandr.suvorov, pablogsal
Date 2020-05-22.18:41:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590172863.07.0.273104753329.issue40728@roundup.psfhosted.org>
In-reply-to
Content
Mark, 
I'm not sure if this is even documented, 
I find this a bit inconsistent when compared to the behavior of other statements, 
E.g.: 
* list expressions do have their scope and do not overwrite local variables
* with statement does overwrite the variable value but makes it available even after with block 
* except overwrites variable value, but then the value gets cleaned and no longer accessible. 

I do understand why this happens, but I find this undesirable. At least some consistency will be nice to have, or this should be documented. Otherwise, it confuses.
History
Date User Action Args
2020-05-22 18:41:03oleksandr.suvorovsetrecipients: + oleksandr.suvorov, christian.heimes, Mark.Shannon, pablogsal
2020-05-22 18:41:03oleksandr.suvorovsetmessageid: <1590172863.07.0.273104753329.issue40728@roundup.psfhosted.org>
2020-05-22 18:41:03oleksandr.suvorovlinkissue40728 messages
2020-05-22 18:41:02oleksandr.suvorovcreate