Author Joseph.Siddall
Recipients Joseph.Siddall
Date 2014-11-14.17:34:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415986488.54.0.734820295311.issue22872@psf.upfronthosting.co.za>
In-reply-to
Content
putting something in Queue(multiprocessing.Queue) after closing it raises an AssertionError.
Getting something out of a Queue after closing it raises an OSError.
I expected both scenarios to raise the same exception.


To Reproduce:


>>> from multiprocessing import Queue
>>> q = Queue()
>>> q.close()
>>> q.put("ok")
Traceback (most recent call last):
...
AssertionError


>>> from multiprocessing import Queue
>>> q = Queue()
>>> q.close()
>>> q.get()
Traceback (most recent call last):
...
OSError: handle is closed
History
Date User Action Args
2014-11-14 17:34:48Joseph.Siddallsetrecipients: + Joseph.Siddall
2014-11-14 17:34:48Joseph.Siddallsetmessageid: <1415986488.54.0.734820295311.issue22872@psf.upfronthosting.co.za>
2014-11-14 17:34:48Joseph.Siddalllinkissue22872 messages
2014-11-14 17:34:48Joseph.Siddallcreate