Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 20 by HaiZaar: config object are not passable to Queue object
from multiprocessing module.
http://code.google.com/p/iniparse/issues/detail?id=20
Python multiprocessing module have very nice Queue class to pass messages
(objects) between the processed. I've tried to use this to propagate
configuration changes between the processes. However, INIConfig instances
have trouble with this.
What steps will reproduce the problem?
1. Place attached my.conf and mysend.py in the same directory.
2. Run python ./mysend.py
3.
What is the expected output? What do you see instead?
I would expect "test1" to be printed. Instead, I see this error messages:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/multiprocessing/queues.py", line 242,
in _feed
send(obj)
TypeError: 'Undefined' object is not callable
What version of the product are you using? On what operating system?
I'm using python 2.5.2 on Debian Lenny amd 64 bit. iniparse 0.3.2.
Please provide any additional information below.
Attachments:
my.conf 69 bytes
mysend.py 391 bytes
--
To post to this group, send email to
iniparse...@googlegroups.com
To unsubscribe from this group, send email to
iniparse-commi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/iniparse-commits?hl=en