[Python-Dev] PEP 572: Write vs Read, Understand and Control Flow
Nathaniel Smith
njs at pobox.com
Wed Apr 25 00:05:27 EDT 2018
On Tue, Apr 24, 2018 at 8:56 PM, Tim Peters <tim.peters at gmail.com> wrote:
> It would actually be quite convenient, and far less error-prone, to
> add a binding construct inside a complicated expression for purposes
> of running under a debugger. The alternative is typing the
> sub-expression(s) of interest by hand at the debugger prompt, or
> adding print()s, both of which are prone to introducing typos, or
> changing results radically due to triggering side effects in the code
> invoked by the duplicated sub-expression(s). Adding a binding
> construct wouldn't change anything about how the code worked (apart
> from possibly clobbering a local name).
I thought this was what q was for :-)
https://pypi.org/project/q/
-n
--
Nathaniel J. Smith -- https://vorpus.org
More information about the Python-Dev
mailing list