Message140056
| Author |
ned.deily |
| Recipients |
Roy.Fox, ned.deily, terry.reedy |
| Date |
2011年07月09日.09:31:41 |
| SpamBayes Score |
0.00022957151 |
| Marked as misclassified |
No |
| Message-id |
<1310203902.18.0.984438267831.issue12510@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The problem is easily reproducible. Although it shouldn't give that error (and that can be fixed), it seems to me that IDLE should not be trying to give a calltip in that context. What it is trying to do is display the __doc__ attribute of the string but the __doc__ is really for the str() constructor:
>>> 'a'.__doc__
"str(string[, encoding[, errors]]) -> str\n\nCreate a new string object from the given encoded string.\nencoding defaults to the current default string encoding.\nerrors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'." |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月09日 09:31:42 | ned.deily | set | recipients:
+ ned.deily, terry.reedy, Roy.Fox |
| 2011年07月09日 09:31:42 | ned.deily | set | messageid: <1310203902.18.0.984438267831.issue12510@psf.upfronthosting.co.za> |
| 2011年07月09日 09:31:41 | ned.deily | link | issue12510 messages |
| 2011年07月09日 09:31:41 | ned.deily | create |
|