This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taleinat
Recipients taleinat, terry.reedy
Date 2020-06-09.07:42:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> You solution is to add a new parameter to __init__ only used by 'flash'.  I would rather replace 'mustclose' with mode = 'tip', 'flash', or 'close'.  I believe that Stopatindex could be revised within the call.

The problem with this suggestion is that 'mustclose' is a parameter for HyperParser.get_surrounding_brackets(). When that is called, it is too late to affect whether the parsing goes beyond the end of the current line. We could add a 'mode' parameter to the HyperParser constructor, though.

Still, I don't like that approach: HyperParser is currently well encapsulated, but giving it such "modes" would tightly couple it with its current specific uses in IDLE. The approach used in the current patch, with the 'end_at_eol' parameter, preserves HyperParser's encapsulation.
Date User Action Args
2020-06-09 07:42:34taleinatsetrecipients: + taleinat, terry.reedy
2020-06-09 07:42:34taleinatsetmessageid: <>
2020-06-09 07:42:34taleinatlinkissue21756 messages
2020-06-09 07:42:33taleinatcreate