@stek, that’s auto-abbreviations or “snippets” firing. You can disable them in Edit menu (Komodo on OSX) > Preferences > Editor > Smart Editing > Auto-Abbreviations.
@careyh, Thanks for the info; I’ve just done as you suggest.
But disabling the irritating “snippets” for “for” and “if” in comments disables all snippets in live code. While that’s an improvement from my point of view, it renders all the work you folks did to implement snippets useless to me (and presumably quite a few other users).
As smart as your smart editing features are, might it be possible, in some future release, to prevent snippets from firing in comments? Is this already in your bug database? And if not, should I report it as a bug?