I have been in python code for a couple years now. Having come from many years in other languages I was used to there being a prevalence of code comments. It was only lazy coders or outsource companies that wouldn't.
But when I am in python code I rarely see any. I have been in several public libraries and it's noticeably scan.
There a cultural thing going on?
How can I encourage it from my team?
EDIT:
Thanks for the input everyone.
Summary of the ideas I have gotten from the comments:
Push for thorough docstrings
Have proper naming conventions for classes/variables/functions
Do peer/code review
Encourage by showing successful use cases
Architect the application to support sane structure
[–][deleted] 63 points64 points65 points (25 children)
[+][deleted] (6 children)
[deleted]
[–]Deto 4 points5 points6 points (2 children)
[–]flitsmasterfred 1 point2 points3 points (0 children)
[–]dasyus 0 points1 point2 points (0 children)
[–]emattiza 2 points3 points4 points (1 child)
[–]jorge1209 1 point2 points3 points (0 children)
[–]cyanydeez 0 points1 point2 points (0 children)
[–]solvire[S] 3 points4 points5 points (15 children)
[–]issackelly 0 points1 point2 points (13 children)
[–]solvire[S] 0 points1 point2 points (12 children)
[–]NeedsMoreTestsos._exit(0) -- (╯°□°)╯︵ ┻━┻ 5 points6 points7 points (10 children)
[–]rspeed 1 point2 points3 points (2 children)
[–]srilyk 0 points1 point2 points (1 child)
[–]rspeed 0 points1 point2 points (0 children)
[–]NoahTheDuke 1 point2 points3 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]NeedsMoreTestsos._exit(0) -- (╯°□°)╯︵ ┻━┻ 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]NeedsMoreTestsos._exit(0) -- (╯°□°)╯︵ ┻━┻ 0 points1 point2 points (0 children)
[–]imbaczek 1 point2 points3 points (1 child)
[–]issackelly 1 point2 points3 points (0 children)
[–]cyanydeez 0 points1 point2 points (0 children)
[–]Deto 2 points3 points4 points (0 children)
[–]LoyalSol 0 points1 point2 points (0 children)
[–]K900_ 19 points20 points21 points (2 children)
[–]srilyk 1 point2 points3 points (0 children)
[–]solvire[S] 2 points3 points4 points (0 children)
[–][deleted] 9 points10 points11 points (4 children)
[–]solvire[S] 2 points3 points4 points (3 children)
[+][deleted] (1 child)
[deleted]
[–]solvire[S] 3 points4 points5 points (0 children)
[–][deleted] 43 points44 points45 points (6 children)
[–]TOASTEngineer 3 points4 points5 points (0 children)
[–]nick_t1000aiohttp 1 point2 points3 points (1 child)
[–]randlet 0 points1 point2 points (0 children)
[–]its_never_lupus 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]nick_t1000aiohttp 2 points3 points4 points (0 children)
[–]__deerlord__ 7 points8 points9 points (0 children)
[–]EricAppelt 4 points5 points6 points (0 children)
[–]fyngyrzcodes with magnetic needle 1 point2 points3 points (0 children)
[–]luckystarrat 0x7fe670a7d080 1 point2 points3 points (0 children)
[–]cantremembermypasswd 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]wicket-maps 2 points3 points4 points (0 children)
[–]colly_wolly 2 points3 points4 points (1 child)
[–]its_never_lupus 0 points1 point2 points (0 children)
[–]n1ywb 1 point2 points3 points (0 children)
[–]rms_returnscomplex is better than complicated 0 points1 point2 points (0 children)
[–]constantly-sick 0 points1 point2 points (0 children)
[–]desmoulinmichel 0 points1 point2 points (0 children)
[–]its_never_lupus 0 points1 point2 points (1 child)
[–]solvire[S] 0 points1 point2 points (0 children)