This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Erik.Cederstrand
Recipients Erik.Cederstrand, docs@python
Date 2011-02-09.00:35:46
SpamBayes Score 0.00017250667
Marked as misclassified No
Message-id <1297211747.04.0.707896670759.issue11155@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 2.6.6 on OSX:

>>> import inspect
>>> from multiprocessing import Queue
>>> q = Queue()
>>> print(inspect.getargspec(q.put))
ArgSpec(args=['self', 'obj', 'block', 'timeout'], varargs=None, keywords=None, defaults=(True, None))
>>> from Queue import Queue
>>> q = Queue()
>>> print(inspect.getargspec(q.put))
ArgSpec(args=['self', 'item', 'block', 'timeout'], varargs=None, keywords=None, defaults=(True, None))

Notice the 'obj' argument in the multiprocessing version and the 'item' argument in the Queue version. I think 'obj' should be renamed to 'item' to be in line with the other implementation and to agree with the docs: (http://docs.python.org/library/multiprocessing.html?highlight=multiprocessing#multiprocessing.Queue.put):

    put(item[, block[, timeout]])
History
Date User Action Args
2011-02-09 00:35:47Erik.Cederstrandsetrecipients: + Erik.Cederstrand, docs@python
2011-02-09 00:35:47Erik.Cederstrandsetmessageid: <1297211747.04.0.707896670759.issue11155@psf.upfronthosting.co.za>
2011-02-09 00:35:46Erik.Cederstrandlinkissue11155 messages
2011-02-09 00:35:46Erik.Cederstrandcreate