[3.10] bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) by miss-islington · Pull Request #26987 · python/cpython
def AutoProxy(token, serializer, manager=None, authkey=None, exposed=None, incref=True): exposed=None, incref=True, manager_owned=False): ''' Return an auto-proxy for `token` '''
ProxyType = MakeProxyType('AutoProxy[%s]' % token.typeid, exposed) proxy = ProxyType(token, serializer, manager=manager, authkey=authkey, incref=incref) incref=incref, manager_owned=manager_owned) proxy._isauto = True return proxy