Message5405

Author iamedu
Recipients iamedu
Date 2010-01-04.22:06:17
SpamBayes Score 1.11431e-06
Marked as misclassified No
Message-id <1262642778.04.0.0230605582414.issue1532@psf.upfronthosting.co.za>
In-reply-to
Content
This code:

class Test(object):
    "Docstring"
    test = "Test\n" + __doc__

print Test.test

Does the following with Cpython:

Test
Docstring

But with jython you get:

Traceback (most recent call last):
  File "data.py", line 1, in <module>
    class Test(object):
  File "data.py", line 3, in Test
    test = "Test\n" + __doc__
TypeError: cannot concatenate 'str' and 'NoneType' object
History
Date User Action Args
2010-01-04 22:06:18iamedusetrecipients: + iamedu
2010-01-04 22:06:18iamedusetmessageid: <1262642778.04.0.0230605582414.issue1532@psf.upfronthosting.co.za>
2010-01-04 22:06:17iamedulinkissue1532 messages
2010-01-04 22:06:17iameducreate