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 <1591688554.03.0.720650088343.issue21756@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2020-06-09 07:42:34taleinatsetrecipients: + taleinat, terry.reedy
2020-06-09 07:42:34taleinatsetmessageid: <1591688554.03.0.720650088343.issue21756@roundup.psfhosted.org>
2020-06-09 07:42:34taleinatlinkissue21756 messages
2020-06-09 07:42:33taleinatcreate