bpo-41354: Add .ratio_min() function with minimum substring length option for matching score by gi-ba-bu · Pull Request #30120 · python/cpython

@gi-ba-bu

.ratio_min(self,m) is an extension of the difflib's function .ratio(self). Equivalently to .ratio(self), .ratio_min(self,m) returns a measure of two sequences' similarity (float in [0,1]). In addition to .ratio(), it can ignore matched substrings of length less than a given threshold m.

https://bugs.python.org/issue41354

@gi-ba-bu

.ratio_min(self,m) is an extension of the difflib's function .ratio(self). Equivalently to .ratio(self), .ratio_min(self,m) returns a measure of two sequences' similarity (float in [0,1]). In addition to .ratio(), it can ignore matched substrings of length less than a given threshold m.

@the-knights-who-say-ni

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@gi-ba-bu

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@AlexWaygood

Hi! Please create a new BPO issue if you want to propose adding a new function to the standard library. Adding a new function is a significant change, so needs to be discussed before it can be merged. The issue you have linked to (bpo-41354) appears to have nothing to do with this proposed addition.

This PR is also missing other things, such as a NEWS entry, documentation for your proposed new function, tests for your proposed new function, and a "What's New in Python 3.11" entry. Do take a look at the Dev Guide, if you have a chance 🙂

@AlexWaygood

I am closing this, since #30125 has now been opened.