Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Regarding technical queries, they consistently return links to the python 2 docs, never python 3.

What I assume people do is they click on the python 2 docs then change the version on the python website. So, from bings perspective it looks like people want the python 2 links. It always frustrates me and makes looking stuff up longer than needed.



There is a very easy workflow remedy for this, if DDG is your default search engine: type "!py [topic]"

For example, I tried searching for "python lists" in my address bar (DDG is my default) and I got all sorts of garbage.

Next, I typed "!py lists" and the browser immediately opened this page for me: https://docs.python.org/3/search.html?q=lists

So that works really nice if what you need is Python's native docs.

But there's more to "bang" syntax usage, now totaling over 13,000 bangs: https://duckduckgo.com/bang#bangs-list


Nice tip, I'll try that next time, thanks!


TIL about the DDG Bang feature. Wow.


wow this may reduce my trips via ddg to stack overflow.


Yeah, this is what I always do as well. Python is going EOL in less than two months. I hope that helps.


Maybe you need to run 2to3 on your search results? ;)





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: