ENB: about breaking changes

24 views
Skip to first unread message

Edward K. Ream

unread,
Nov 30, 2026, 3:01:38 PM (2 days ago) Nov 30
to leo-editor
Thomas's comments concerning PR #5082 were thought-provoking.

The question is whether (and when) to make a breaking change to Leo's API.

For PR #5082, the answer seems completely clear. There is no reason to delete leoQt.py. The PR bypasses that file for some of Leo's crucial qt gui files, but that's no reason to deprecate or delete leoQt.py.

Imo, doing without leoQt.py produces clearer, more straightforward code, but the crucial point is this: leoQt.py in no way prevents progress.

In contrast, the recent revision of Leo's undo code, involving sixteen PRs, would not have been possible if Leo's API had to remain unchanged.

Summary

I never change Leo's API without extremely good reasons.

Edward

Thomas Passin

unread,
Dec 1, 2026, 10:44:39 AM (18 hours ago) Dec 1
to leo-editor
Just to be clear, my thinking was that once leoQt isn't used in Leo's core, then eventually (maybe next year) the thought might arise that it should be eliminated altogether. But some plugins use leoQt (among them are VR3 and Freewin). Maybe leoQt could be made to emit a deprecation notice when it is first imported, if it were ever decided to remove it.

Edward K. Ream

unread,
Dec 1, 2026, 2:29:00 PM (14 hours ago) Dec 1
to leo-editor
On Tuesday, December 1, 2026 at 9:44:39 AM UTC-6 tbp1 wrote:
Just to be clear, my thinking was that once leoQt isn't used in Leo's core, then eventually (maybe next year) the thought might arise that it should be eliminated altogether. But some plugins use leoQt (among them are VR3 and Freewin). Maybe leoQt could be made to emit a deprecation notice when it is first imported, if it were ever decided to remove it.

That would be a natural thing to do.

Edward
Reply all
Reply to author
Forward
0 new messages