<div dir="ltr"><div class="gmail_default" style="color:#000000"><span style="color:rgb(34,34,34)">On Tue, Mar 27, 2018 at 9:52 AM, Paul Moore </span><span dir="ltr" style="color:rgb(34,34,34)"><<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>></span><span style="color:rgb(34,34,34)"> wrote:</span><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'd actually like to see some real world use cases to get a feel for<br>
whether this is even worth worrying about. (I'm not saying it isn't,<br>
just that it's hard to get a feel for the importance based on<br>
artificial examples).<br></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">The only reason I brought it up was because I ran into this about three weeks ago porting some old Python 2 to 3, where there was a class level comprehension that referenced a class variable on the lhs. I simply removed it by enumerating the cases by hand, no big deal, but it did take me a while to figure out why that no longer worked.</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">My specific case looked approximately like this:</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">class Plugin:</div><div class="gmail_default" style="color:rgb(0,0,0)"> plugin_dir = 'somepath'</div><div class="gmail_default" style="color:rgb(0,0,0)"> plugin_names = [os.join(plugin_dir, name) for name in ('list', 'of', 'names')]</div></div><br></div></div>