[metrics-team] Python coding style
iwakeh at torproject.org
Sat Jul 2 09:30:11 UTC 2016
-----BEGIN PGP SIGNED MESSAGE-----
On 07/01/2016 07:47 PM, Anathema wrote:
> in the last meeting we talked about coding style. I know that mostly of
> the code is done in java (as far as I can see), but I was wondering if
> it may be useful to add also a Python coding style guide.
I didn't attend the meeting, but skimmed through the notes.
> During the meeting someone pointed out to the Google Python Style Guide
> (https://google.github.io/styleguide/pyguide.html) but I was not able to
> verify how it differs from the most accepted and widely adopted PEP8
> style (https://www.python.org/dev/peps/pep-0008/).
> So I was wondering if it could be useful to add a Python coding style
> guide to our wiki and which style choose.
> What do you think?
Thanks for this question!
Yes, that should be done for sure, I already set the placeholder on
the documentation page for that. I didn't want to impose any style guide
for a language I do not use as often.
The python style should have major input from python devs here in the team, I think.
So some questions for python people:
Which of the two mentioned guides above would you prefer as a base?
Which is more practical and up-to-date?
It would be most practical to just choose one and add a little here
and there, if necessary (as we did with java).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the metrics-team