flox <laxyf at yahoo.fr> added the comment: I proposed a patch which solve this issue and improve performance of str.rfind. See issue 7462. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue7458> _______________________________________