Class/Method level doc strings are failing
Posted: Wed Feb 13, 2008 10:16 am
When I place a doc string after a class or a method definition I get this error: Expecting more doc string contents or the end of the doc string instead of "DEDENT".
Compilation failed - 1 error, 0 warnings
The doc string at the top of the file is accepted without error.
Are doc strings supported at the File, Class, Method, Property levels? If so, is it broken in this release or am I just doing something wrong?
Compilation failed - 1 error, 0 warnings
The doc string at the top of the file is accepted without error.
Are doc strings supported at the File, Class, Method, Property levels? If so, is it broken in this release or am I just doing something wrong?
- Code: Select all
class Test
"""
Test class to show doc string issue.
"""
def printTest
"""
this doc string fails also
"""
print 'Test'