On 8/20/17 9:32 PM, Neil Girdhar wrote:
> This question describes an example of the
> problem:
> https://stackoverflow.com/questions/8416208/in-python-is-there-a-good-idiom-for-using-context-managers-in-setup-teardown.
> You want to invoke a context manager in your setup/tearing-down, but
> the e
I know I'm not the only one who is confused by at least some of the
alternative terminology choices. I suspect I'm not the only one who
sometimes missed part of the argument because I was distracted
figuring out what the objects were, and forgot to verify what was
being done and why. I also suspe
On Sat, Aug 19, 2017 at 3:34 AM, ?? ? wrote:
> Could you please think this way to define a variable:
>
> >> var = expr() -> g1(_) if f(_) else g2(_)
>
> which equals
>
> >> test = f(expr())
> >> var = g1(test) if f(test) else g2(test)
>
OK, I do see this as a nice way to avoid as many "temp" va
Hi Jim,
In short, yes, we can "dumb down" PEP 550 to a chain of maps.
PEP 550 does the following on top of that dumbed down version:
0. Adds execution_context "chain" root to PyThreadState.
1. Extends (async-)generator objects to support this chaining -- each
generator has its own "env" to accu
Neil, you might also bring this up on the
http://lists.idyll.org/listinfo/testing-in-python list as I suspect people
there have opinions on this topic.
-gps
On Mon, Aug 21, 2017 at 9:07 AM Ned Batchelder
wrote:
> On 8/20/17 9:32 PM, Neil Girdhar wrote:
>
> This question describes an example of
https://github.com/kachayev/fn.py/blob/master/README.rst#scala-style-lambdas-definition
On Monday, August 21, 2017, Chris Barker wrote:
>
>
> On Sat, Aug 19, 2017 at 3:34 AM, ?? ? > wrote:
>
>> Could you please think this way to define a variable:
>>
>> >> var = expr() -> g1(_) if f(_) else g
Folks, this has come up before, but: please don't post through Google
Groups, as it breaks everyone else's ability to easily reply to the
entire mailing list.
-- Forwarded message --
From: Nick Coghlan
Date: 22 August 2017 at 15:32
Subject: Re: [Python-ideas] Please consider addin
On Tue, Aug 22, 2017 at 2:56 AM, Yury Selivanov
wrote:
> Hi Jim,
>
> In short, yes, we can "dumb down" PEP 550 to a chain of maps.
>
>
I think it's also good to think about the actual problem(s) that are being
solved, without going too deeply into the implementation. It might be
useful to look at