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 gregory.p.smith
Recipients gregory.p.smith, jftuga, rbcollins, rhettinger, tim.peters, vstinner
Date 2022-02-07.08:22:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644222178.19.0.873824822779.issue24904@roundup.psfhosted.org>
In-reply-to
Content
The way I'd go about this is to support some form of periodic checkpoint in the algorithm where it checks in with code supplied by the difflib user. Traditionally that'd have been via callbacks, there might be an async style way to express that these days. Those could indicate that they want the operation to be aborted. If it is possible to estimate progress, supplying that as input to the checkpoint API would be useful.

This leaves decision logic on when to abort something entirely up to the user rather than being clock based which is often not what the user wants.

I'm re-titling the issue as the original patch and proposal of a timeout isn't the direction several core devs have suggested we head.
History
Date User Action Args
2022-02-07 08:22:58gregory.p.smithsetrecipients: + gregory.p.smith, tim.peters, rhettinger, vstinner, rbcollins, jftuga
2022-02-07 08:22:58gregory.p.smithsetmessageid: <1644222178.19.0.873824822779.issue24904@roundup.psfhosted.org>
2022-02-07 08:22:58gregory.p.smithlinkissue24904 messages
2022-02-07 08:22:57gregory.p.smithcreate