5 ms·
I personally configure custom search engines for things like this so if I want docs specifically, I'll type something like "py collections" which directs me to
by vitus 5y ago
I personally configure custom search engines for things like this so if I want docs specifically, I'll type something like "py collections" which directs me to https://docs.python.org/3.10/search.html?q=collections https://docs.python.org/3.10/search.html?q=collections.
I find this especially useful since I often otherwise find myself typing site:python.org (or similar things, like if I just want to see the MDN page instead of going through w3schools or blog posts for examples).
edit: in the particular example for str.replace, I found it buried in the results for "py replace", at the top of "py str.replace" (helps if you know what Python calls the type) and basically nowhere for "py string replace".