Is there a guideline for when to edit an existing answer vs. adding a new answer with your improvements?
Questions, I don't care about editing - after all, they are requests for information.
Answers are a different story - they are representative of the answerer, so I tend towards preferring to leave what the original poster intended, even if it's not perfect.
E.G. let's say that a user used a generic instead of a specific exception (for python guys, using
except: instead of
except ValueError as e:). Is that small enough to just edit into the question? This one seems to be, since it's common, clear enough, and doesn't substantively change the answer.
There are other edits on the other end which are clearly over the line e.g. ones that refactor the code. Even if they are actually improvements on the original code, they aren't the answerer's code, and so should be a new answer, not an edit.
Just looking to see if there is guideline for the line between the two, to verify I'm doing the right things.