I am adding ragdoll to my character and I need this without logic bricks, thanks…
Edit: ok solution is
bge.logic.getCurrentScene().objects[ARMATURE].constraints[pair_bone-constraint].active = False
#example:
pair_bone-constraint = "lFoot:Copy Transforms"