<div dir="ltr"><div class="gmail_default" style="color:#000000"><span style="color:rgb(34,34,34)">On Mon, Jun 25, 2018 at 2:16 PM Steve Holden <<a href="mailto:steve@holdenweb.com">steve@holdenweb.com</a>> wrote:</span></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div style="font-size:small;display:inline">​I'd like to ask: how many readers of ​</div> <div style="font-size:small;display:inline">​this email have ever deliberately taken advantage of the limited Python 3 scope in comprehensions and generator expressions to use what would otherwise be a conflicting local variable name?​</div></div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">​No, never, but the opposite has bitten me in production code (as I related several months back, a class-level variable was being used on the lhs of a comprehension and that failed when it was run in Py3).</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">The caveat is that our code base is Py2+Py3, so we have the mindset that comprehension variables always leak.​</div></div></div>