Support PEP 553, built-in breakpoint()
PEP 553 has been accepted and committed to the Python 3.7 tree. python-mode should support the new built-in function breakpoint()
.
I think two things need to happen. breakpoint
needs to be added to the list of builtins so that it will get syntax highlighted correctly.
python-mode also needs to make sure that dedents don't happen after breakpoint()
is seen. Right now this happens:
def foo(x):
if x == 7:
breakpoint() # point is at the end of this line, now hit return
# point ends up here when it should line up under the 'b'
This latter is probably because it's recognizing the line as a break
statement.