Message96849
At the top of my program, I have 'from __future__ import
unicode_literals'.
I subclassed Process, and passed "name='test'" as an argument. I got
the following traceback.
Traceback (most recent call last):
File "F:\junk\multiprocess\mp5.py", line 37, in <module>
p = Frank(name='test')
File "F:\junk\multiprocess\mp5.py", line 18, in __init__
self.name = name
File "C:\Python26\lib\multiprocessing\process.py", line 141, in name
assert isinstance(name, str), 'name must be a string'
AssertionError: name must be a string
If I change the argument to "name=str('test')" there is no error.
For Python 2.x I think the assertion should be "isinstance(name,
basestring)" to prevent this from happening. |
|
Date |
User |
Action |
Args |
2009-12-24 06:48:43 | frankmillman | set | recipients:
+ frankmillman |
2009-12-24 06:48:42 | frankmillman | set | messageid: <1261637322.52.0.734915496426.issue7571@psf.upfronthosting.co.za> |
2009-12-24 06:48:39 | frankmillman | link | issue7571 messages |
2009-12-24 06:48:38 | frankmillman | create | |
|