Is it possible to know with what option a parent was created?

any idea if it is possible to find with what option parent was created.
I want to unparent an object, to parent it with an empty and then get back to the first parent relationship. but they are several options possible when parenting.
BTW I wonder how parent is done in Blender and if it could have his equivalent in Python? (just by curiosity this part)