Lorenz Quack added the comment: sorry for the delay but here is a new patch with a test.
I changed the strategy for fixing the bug because the dealing with the opening parenthesis became to complicated. So, now I simply check whether the match actually startswith the search phrase before adding the match to the results. This is like a sanity check which fixes this bug. ---------- Added file: http://bugs.python.org/file37063/rlcompleter_22141.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22141> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com