Ezio Melotti added the comment: This seems to have been fixed/improved already. A search for "random" now returns the random module as first result and random.random as second. Searching for "print" returns the pprint module first, and then the print function. With "str" or "list" the results are a bit worse, with the builtin function in 6th and 4th position respectively. Searching for keywords (e.g. "with") still doesn't give useful results.
The code now uses something similar to what I suggested in the previous message (if ((fullname == object) || (fullname.split('.').pop() == object)) {...}) and a scoring system. It might still need some tweaking to get better results with "str" and "list" and for keywords, but it's already much better. Terry, given these improvements, do you still think that using the index is better? Are there still searches that don't return the desired results? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15871> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com