<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#330033" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 9/7/2017 4:19 PM, Terry Reedy wrote:<br>
</div>
<blockquote type="cite" cite="mid:oosk6i$c90$1@blaine.gmane.org">A
somewhat separate point: the name breakpoint() is slightly
misleading, which has consequences if it is (improperly) called
more than once. While breakpoint() acts as a breakpoint, what it
does (at least in the default pdb case) is <b
class="moz-txt-star"><span class="moz-txt-tag">*</span>initialize<span
class="moz-txt-tag">*</span></b> and start a <b
class="moz-txt-star"><span class="moz-txt-tag">*</span>new<span
class="moz-txt-tag">*</span></b> debugger, possibly after an
import. </blockquote>
<br>
So maybe the original debug() call should be renamed debugger() [but
with the extra optional parameters discussed], and an additional
breakpoint() call could be added that would be much more like
hitting a breakpoint in the already initialized debugger.<br>
<br>
There seem to be two directions to go here: If breakpoint is called
without a prior call to debugger, it should (1) call debugger
implicitly with defaults, or (2) be a noop.<br>
<br>
I prefer the latter, but either is workable. Or, one could add all
those parameters to every breakpoint() call, which makes (1) more
workable, but code more wordy.<br>
</body>
</html>