[New-bugs-announce] [issue11155] multiprocessing.Queue's put() signature differs from docs

Erik Cederstrand report at bugs.python.org
Wed Feb 9 01:35:47 CET 2011


New submission from Erik Cederstrand <ec at 1calendar.dk>:

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]])

----------
assignee: docs at python
components: Documentation
messages: 128200
nosy: Erik.Cederstrand, docs at python
priority: normal
severity: normal
status: open
title: multiprocessing.Queue's put() signature differs from docs
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11155>
_______________________________________


More information about the New-bugs-announce mailing list