Is it bad etiquette to answer a question with lots of downvotes?
This question was prompted by the SO question How to get line->next in Python. OP clearly hadn't done much searching for a solution but also seemed looking for a solution to the wrong problem. If a question is one of those "write this code for me" questions, I don't answer, but I thought this was more ambiguous than the number of downvotes suggested.
Was I out of line to answer? How should I decided whether to answer in similar cases in the future.