Don't try to pickle ellipsis

This commit is contained in:
Dave Halter
2017-12-11 20:55:34 +01:00
parent fa2712a128
commit b196c6849b
5 changed files with 10 additions and 14 deletions
@@ -188,7 +188,7 @@ class _CompiledSubprocess(_Subprocess):
self._evaluator_deletion_queue.append(evaluator_id)
class Listener():
class Listener(object):
def __init__(self):
self._evaluators = {}
# TODO refactor so we don't need to process anymore just handle
@@ -263,9 +263,10 @@ class AccessHandle(object):
self.id = state
def __getattr__(self, name):
if name in ('id', '_subprocess', 'access'):
if name in ('id', 'access') or name.startswith('_'):
raise AttributeError("Something went wrong with unpickling")
#print >> sys.stderr, name
#print('getattr', name, file=sys.stderr)
def compiled_method(*args, **kwargs):
return self._subprocess.get_compiled_method_return(self.id, name, *args, **kwargs)