Message128200
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]]) |
|
Date |
User |
Action |
Args |
2011-02-09 00:35:47 | Erik.Cederstrand | set | recipients:
+ Erik.Cederstrand, docs@python |
2011-02-09 00:35:47 | Erik.Cederstrand | set | messageid: <1297211747.04.0.707896670759.issue11155@psf.upfronthosting.co.za> |
2011-02-09 00:35:46 | Erik.Cederstrand | link | issue11155 messages |
2011-02-09 00:35:46 | Erik.Cederstrand | create | |
|