MCPcopy Create free account
hub / github.com/bpython/bpython / delete

Function delete

bpython/curtsiesfrontend/manual_readline.py:224–225  ·  view source on GitHub ↗
(cursor_offset, line)

Source from the content-addressed store, hash-verified

222
223@edit_keys.on("<DELETE>")
224def delete(cursor_offset, line):
225 return (cursor_offset, line[:cursor_offset] + line[cursor_offset + 1 :])
226
227
228@edit_keys.on("<BACKSPACE>")

Callers 1

test_deleteMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_deleteMethod · 0.72