[Python-Dev] PEP 572: Write vs Read, Understand and Control Flow
Steven D'Aprano
steve at pearwood.info
Tue Apr 24 23:43:30 EDT 2018
On Tue, Apr 24, 2018 at 08:10:49PM -0500, Tim Peters wrote:
> Binding expressions are debugger-friendly in that they _don't_ just
> vanish without a trace. It's their purpose to _capture_ the values of
> the expressions they name. Indeed, you may want to add them all over
> the place inside expressions, never intending to use the names, just
> so that you can see otherwise-ephemeral intra-expression results in
> your debugger ;-)
That's a fantastic point and I'm surprised nobody has thought of it
until now (that I've seen).
Chris, if you're still reading this and aren't yet heartedly sick and
tired of the PEP *wink* this ought to go in as another motivating point.
--
Steve
More information about the Python-Dev
mailing list