I have personally found that when searching for developer documentation, as you mentioned, unfortunately nothing beats Google. I can always find what I’m looking for very quickly. But when I try DuckDuckGo, it’s a mess of irrelevant or weak pages.
It kind of makes sense that w3schools would spend much more time on the SEO game than docs.python.org, but it just drives me back to google