This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author frankmillman
Recipients frankmillman
Date 2009-12-24.06:48:38
SpamBayes Score 7.231048e-08
Marked as misclassified No
Message-id <1261637322.52.0.734915496426.issue7571@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-12-24 06:48:43frankmillmansetrecipients: + frankmillman
2009-12-24 06:48:42frankmillmansetmessageid: <1261637322.52.0.734915496426.issue7571@psf.upfronthosting.co.za>
2009-12-24 06:48:39frankmillmanlinkissue7571 messages
2009-12-24 06:48:38frankmillmancreate