diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-02 04:15:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 04:15:47 (GMT) |
commit | 3ec3e0f83c34eda1ad89b731e68f4a22a5f39333 (patch) | |
tree | 4f369f669c2bf927aa7df4e2b40965014d31a54a /Lib/multiprocessing/managers.py | |
parent | 956f1fc89475f6c8252a9eb0689bcf0eb69c15ea (diff) | |
download | cpython-3ec3e0f83c34eda1ad89b731e68f4a22a5f39333.zip cpython-3ec3e0f83c34eda1ad89b731e68f4a22a5f39333.tar.gz cpython-3ec3e0f83c34eda1ad89b731e68f4a22a5f39333.tar.bz2 |
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (#26987)
Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
(cherry picked from commit 85b920498b42c69185540ecc2f5c4907fd38d877)
Co-authored-by: finefoot <33361833+finefoot@users.noreply.github.com>
Diffstat (limited to 'Lib/multiprocessing/managers.py')
-rw-r--r-- | Lib/multiprocessing/managers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index 6ee9521..b981b0e 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -967,7 +967,7 @@ def MakeProxyType(name, exposed, _cache={}): 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` ''' @@ -987,7 +987,7 @@ def AutoProxy(token, serializer, manager=None, authkey=None, 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 |