sublime.Selection
behaves like a list yet exhibits this behaviour:
>>> sel = sublime.active_window().active_view().sel()
>>> sel.clear()
>>> len(sel)
0
>>> bool(sel)
True
Shouldn’t sublime.Selection.__bool__()
return False
when there are no selections?
I’m using Sublime Text 3.2.2 on macOS.