Created originally on Bitbucket by Yannick_Jadoul (Yannick Jadoul)
Was already merged in Bitbucket before import, marked as merged by the import user
Source changeset not longer availableat the time of import. Commit listwill look empty
Replaced the proposed (https://www.python.org/dev/peps/pep-0553/#implementation)
def breakpoint(*args, **kws): import sys missing = object() hook = getattr(sys, 'breakpointhook', missing) if hook is missing: raise RuntimeError('lost sys.breakpointhook') return hook(*args, **kws)
import sys def breakpoint(*args, **kwargs): if not hasattr(sys, 'breakpointhook'): raise RuntimeError('lost sys.breakpointhook') return sys.breakpointhook(*args, **kwargs)
Tests are still missing, as they are not immediately straightforward to implement.