[Python-ideas] Jump to function as an an alternative to call function

Chris Barker chris.barker at noaa.gov
Thu Aug 16 12:34:57 EDT 2018


On Thu, Aug 16, 2018 at 1:28 AM, Steven D'Aprano <steve at pearwood.info>
wrote:

> there
> are times where I have really wanted to access the caller's environment,
> not the environment where my function was defined.
>

what am I missing? can't you get that by passing locals() in to a function?

A bit clunky, sure, but everyone seems to agree that this a fairly rarely
used approach.

-CHB

-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180816/9684f087/attachment.html>


More information about the Python-ideas mailing list