Re: TypeError: __name__ must be set to a string object

2010-01-15 Thread Frank Millman
MyManager.register('my_function', my_function) > > Inside the multiprocessing module, the following lines are executed - >@classmethod >def register(cls, typeid, ...) >[...] >def temp(...): > [...] > temp.__name__ = typei

TypeError: __name__ must be set to a string object

2010-01-11 Thread Frank Millman
hod def register(cls, typeid, ...) [...] def temp(...): [...] temp.__name__ = typeid At this point, Python raises the exception 'TypeError: __name__ must be set to a string object'. I can fix it by changing my last line to - MyManager.register(s