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 terry.reedy
Recipients alexandre.vassalotti, georg.brandl, noel.cuillandre, terry.reedy
Date 2009-02-27.20:29:34
SpamBayes Score 0.0012368917
Marked as misclassified No
Message-id <1235766576.15.0.945939437674.issue5373@psf.upfronthosting.co.za>
In-reply-to
Content
The bug is the discrepancy between doc

"[3] A string literal appearing as the first statement in the function
body is transformed into the function’s __doc__ attribute and therefore
the function’s docstring. 
[4] A string literal appearing as the first statement in the class body
is transformed into the namespace’s __doc__ item and therefore the
class’s docstring. "

and behavior. In this case, I would agree that the behavior is wrong
unless somehow justified.

I verified in 3.0.1, winxp: '\x00' ok in function, not in class.
History
Date User Action Args
2009-02-27 20:29:36terry.reedysetrecipients: + terry.reedy, georg.brandl, alexandre.vassalotti, noel.cuillandre
2009-02-27 20:29:36terry.reedysetmessageid: <1235766576.15.0.945939437674.issue5373@psf.upfronthosting.co.za>
2009-02-27 20:29:34terry.reedylinkissue5373 messages
2009-02-27 20:29:34terry.reedycreate