Message141061
| Author |
tkiss80 |
| Recipients |
tkiss80 |
| Date |
2011年07月24日.23:05:00 |
| SpamBayes Score |
8.558443e-11 |
| Marked as misclassified |
No |
| Message-id |
<1311548700.89.0.657910750952.issue12630@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If an entity does not have a docstring, pydoc.getdoc() reads the comment associated with that entity and uses that as the source of documentation. However, inspect.getcomments() returns the raw comment with the comment signs ('#') in it, thus the resulting documentation looks ugly and confusing. Is there a way to solve this problem?
I know that this is not an easy task, because by implementing a specific '#' removing solution, the format of the doc comments would be restricted to conform to that algorithm with little formatting freedom. But maybe someone can come up with a good idea, such as counting '#'-s in the first line and strip all the lines accordingly. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月24日 23:05:00 | tkiss80 | set | recipients:
+ tkiss80 |
| 2011年07月24日 23:05:00 | tkiss80 | set | messageid: <1311548700.89.0.657910750952.issue12630@psf.upfronthosting.co.za> |
| 2011年07月24日 23:05:00 | tkiss80 | link | issue12630 messages |
| 2011年07月24日 23:05:00 | tkiss80 | create |
|