[Python-Dev] PEP 553; the interaction between $PYTHONBREAKPOINT and -E

Barry Warsaw barry at python.org
Wed Oct 4 23:31:05 EDT 2017


On Oct 4, 2017, at 21:52, Nick Coghlan <ncoghlan at gmail.com> wrote:
> 
>> Unfortunately we probably won’t really get a good answer in practice until Python 3.7 is released, so maybe I just choose one and document that the behavior of PYTHONBREAKPOINT under -E is provision for now.  If that’s acceptable, then I would just treat -E for PYTHONBREAKPOINT the same as all other environment variables, and we’ll see how it goes.
> 
> I'd be fine with this as the main reason I wanted PYTHONBREAKPOINT=0
> was for pre-merge CI systems, and those tend to have tightly
> controlled environment settings, so you don't need to rely on -E or -I
> when running your tests.
> 
> That said, it may also be worth considering a "-X nobreakpoints"
> option (and then -I could imply "-E -s -X nobreakpoints").

Thanks for the feedback Nick.  For now we’ll go with the standard behavior of -E and see how it goes.  We can always add a -X later.

Cheers,
-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171004/87c8c215/attachment.sig>


More information about the Python-Dev mailing list