Ethan Furman added the comment: Have you made sure nothing calls the replaced functions manually? Such as: ... self._set_foo(9) ... ---------- nosy: +ethan.furman _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue29776> _______________________________________