3 Comments

I don't want to argue your example too much, because I understand that you wanted something simple to illustrate your main point. However, being as I am someone in the same boat as you when it comes to things like syntax of less-frequently used aspects of Python, I do want to point out a fourth option, which, for me, would actually be the first option: docs.python.org.

For things like straight syntax questions, I find it is the most efficient.

I have found that I can save a few more seconds by creating a search shortcut in Firefox (details upon request), which would let me get the answer, in this example, by typing Ctrl-L, py enumerate, Enter.

Either way, here's where I'd end up:

https://docs.python.org/3/library/functions.html?highlight=enumerate#enumerate

I think that would color-code, following your scheme, to almost all blue, and the non-blue part would be due solely to the fact that the documentation for enumerate() only takes up half a screen.

Expand full comment