Skip to content
Advertisement

Python check isinstance multiprocessing.Manager().Queue()

I am using python 2.7 multiprocessing on windows 7:

JavaScript

Output:

JavaScript

My question is: I would like to check if a variable is an instance of a multiprocessing queue, how should i go about checking?

I have referred to:

Check for instance of Python multiprocessing.Connection?

Accessing an attribute of a multiprocessing Proxy of a class

but they dont seem to address my issue. Thanks in advance!

Advertisement

Answer

Question: I would like to check if a variable is an instance of a multiprocessing queue, how should i go about checking?

It’s a Proxy object, multiprocessing.managers.BaseProxy does match:

JavaScript

Tested with Python: 3.4.2 and 2.7.9

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement