floyd <[email protected]> added the comment:
Yes, I agree this should be closed. Especially because my proposed code is so
incredibly bad (e.g. regarding performance) that it should be rejected. Back
then I was horribly wrong and didn't understand the problem well enough yet.
If somebody would like to have such a function, this is all it needs:
def quick_ratio_ge(self, a, b, threshold):
return threshold <= 2.0*(len(a))/(len(a)+len(b))
Here is how I actually use it in code:
https://github.com/modzero/burp-ResponseClusterer/blob/master/ResponseClusterer.py#L343
Sorry for the fuzz
----------
resolution: -> rejected
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue24384>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com