Sometimes an answer can solve the OP's practical problem although it does not address the OP's exact question. Should I post answers like that?
For example consider this answer which received 3 downvotes and makes me wonder.
Sometimes an answer can solve the OP's practical problem although it does not address the OP's exact question. Should I post answers like that?
For example consider this answer which received 3 downvotes and makes me wonder.
From the help center (emphasis mine):
What, specifically, is the question asking for? Make sure your answer provides that – or a viable alternative.
So, yes, workarounds can make good answers. If this is also true for a specific answer, that's for the community to decide.
That looks like a horrendously hacky work around for OP's problem. But there's a worse problem for it on SO: it is completely localized for OP's problem. The next person who comes along wondering how to deal with multi-line expressions in Python AST is going to find that answer completely useless. I would have down voted that answer if I'd seen it (but haven't because I don't think it deserves Meta-effect!).