As opposed to the queue.Queue the multiprocessing.Queue does not seem to have the maxsize attribute. As I try to get the maxsize by calling queue_object.maxsize I get the following exception: AttributeError: 'Queue' object has no attribute 'maxsize'.
Is this an implementation fault on my side or does it actually not exist? And if it does not exists is there another way to get this information?
How to reproduce:
Python 3.7.6 (v3.7.6:43364a7ae0, Dec 18 2019, 14:18:50)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from multiprocessing import Queue
>>> q = Queue(maxsize=10)
>>> q.maxsize
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Queue' object has no attribute 'maxsize'
EDIT: As explained in the answers below this attribute is not supported, which leads me to the question why this is the case? I believe the multiprocessing.Queue is based on the queue.Queue which does support the attribute (which led to the confusion in the first place).