Antoine Pitrou added the comment: self._finalizer can be None if an exception was raised during __init__(). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22427> _______________________________________