def __init__(self, ctx=None): super().__init__() if ctx is None: ctx = Context.get_default_context() self._ctx = ctx