I recently came across this question, which has an interesting detail in the accepted answer:
Also be aware that sometimes you should be checking for
context.active_object
rather than justcontext.object
.
I have wondered a few times already, and also searched the API docs, but could not find a clear answer on it: What is the difference between the two? Up until now, I had always thought they would yield exactly the same thing, but the given answer indicates that there are situations in which the content can differ.