<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 16, 2018 at 1:28 AM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">there <br>
are times where I have really wanted to access the caller's environment, <br>
not the environment where my function was defined.<br></blockquote><div><br></div><div>what am I missing? can't you get that by passing locals() in to a function?</div><div><br></div><div>A bit clunky, sure, but everyone seems to agree that this a fairly rarely used approach.</div><div><br></div><div>-CHB</div></div><div class="gmail_extra"><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R (206) 526-6959 voice<br>7600 Sand Point Way NE (206) 526-6329 fax<br>Seattle, WA 98115 (206) 526-6317 main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>