Forums : Ohloh General Discussion

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Docstrings

Does the ohloh comment calculator also count Python Docstrings as comments? If not that would be stupid since many python projects use docstrings for their code documenation :D
I just wonder why pocoo has a so low comment ratio :-?

Regards,
Armin

Armin Ronacher over 17 years ago
 

Hi mistuhiko,

No, upon reviewing our Python parser it looks like we do not handle Docstrings. We treat them as simple string constants, which means that we count them as code.

You're correct: an application which uses Docstrings is going to look very low on comments according to Ohloh.

At some point we will revisit our language parsers to add some new languages and features, and we can take a look at adding Docstrings at that point.

Thanks for pointing this out,
Robin

Robin Luckey over 17 years ago
 

Hmm. Since the redesign pygments just contains out of 12 Lines of code Oo: http://ohloh.net/projects/3301

I guess that's not intention

Armin Ronacher over 17 years ago