[Python-ideas] PEP 550 v2
Stefan Krah
stefan at bytereef.org
Wed Aug 16 13:13:04 EDT 2017
On Wed, Aug 16, 2017 at 12:40:26PM -0400, Yury Selivanov wrote:
> On Wed, Aug 16, 2017 at 12:08 PM, Stefan Krah <stefan at bytereef.org> wrote:
> > On Wed, Aug 16, 2017 at 11:00:43AM -0400, Yury Selivanov wrote:
> >> "Context" is an established term for what PEP 550 tries to accomplish.
> >> It's used in multiple languages and runtimes, and while researching
> >> this topic I didn't see anybody confused with the concept on
> >> StackOverflow/etc.
> >
> > For me a context is a "single thing" that is usually used to thread state
> > through functions.
> >
> > I guess I'd call "environment" what you call "context".
>
> "environment" is also an overloaded term, and when I hear it I usually
> think about os.getenv().
Yeah, I usually think about symbol tables. FWIW, I find this terminology
quite reasonable:
https://hackernoon.com/execution-context-in-javascript-319dd72e8e2c
The main points are ExecutionContextStack/FunctionalExecutionContext
vs. ExecutionContext/LocalContext.
Stefan Krah
More information about the Python-ideas
mailing list