Message82867
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. |
|
Date |
User |
Action |
Args |
2009-02-27 20:29:36 | terry.reedy | set | recipients:
+ terry.reedy, georg.brandl, alexandre.vassalotti, noel.cuillandre |
2009-02-27 20:29:36 | terry.reedy | set | messageid: <1235766576.15.0.945939437674.issue5373@psf.upfronthosting.co.za> |
2009-02-27 20:29:34 | terry.reedy | link | issue5373 messages |
2009-02-27 20:29:34 | terry.reedy | create | |
|