Jason R. Coombs <jar...@jaraco.com> added the comment:
You could just do breakpoint() if trigger else None Concise, easy, and avoids complicating set_trace(). ---------- nosy: +jaraco _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38054> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com