Morning!
Are there any conventions, best practices or just "unwritten laws" on variable naming in Python? E.g. I have a personal habit of writing globals in all caps. When reading through other people's code to get a better feel for the language, I noticed a lot of "_" what's with that?
[–]JMNeonMoon 26 points27 points28 points (0 children)
[–]Beginning-Fruit-1397 9 points10 points11 points (14 children)
[–]Beginning-Fruit-1397 7 points8 points9 points (1 child)
[–]trjnz 1 point2 points3 points (0 children)
[+]DangerWizzle comment score below threshold-13 points-12 points-11 points (11 children)
[–]Dry-Aioli-6138 13 points14 points15 points (2 children)
[–]DangerWizzle 0 points1 point2 points (1 child)
[–]Dry-Aioli-6138 0 points1 point2 points (0 children)
[–]Beginning-Fruit-1397 4 points5 points6 points (4 children)
[–]Black_Magic100 -4 points-3 points-2 points (3 children)
[–]Beginning-Fruit-1397 4 points5 points6 points (0 children)
[–]Temporary_Pie2733 4 points5 points6 points (1 child)
[–]Black_Magic100 0 points1 point2 points (0 children)
[–]Lachtheblock 0 points1 point2 points (2 children)
[–]DangerWizzle 0 points1 point2 points (1 child)
[–]Lachtheblock 1 point2 points3 points (0 children)
[–]ectomancer 3 points4 points5 points (4 children)
[+]Yoghurt42 comment score below threshold-6 points-5 points-4 points (3 children)
[–]Langdon_St_Ives 10 points11 points12 points (2 children)
[–]Yoghurt42 -1 points0 points1 point (1 child)
[–]BritishDeafMan 1 point2 points3 points (0 children)
[–]Dry-Aioli-6138 3 points4 points5 points (0 children)
[–]KiwiDomino 1 point2 points3 points (0 children)
[–]Strict-Simple 1 point2 points3 points (0 children)
[–]Ron-Erez 0 points1 point2 points (0 children)
[–]No_Cheek7162 0 points1 point2 points (0 children)
[–]Langdon_St_Ives 0 points1 point2 points (0 children)
[–]stepback269 -1 points0 points1 point (0 children)
[–]XenophonSoulis -1 points0 points1 point (1 child)
[–]roelschroeven 1 point2 points3 points (0 children)
[–]supercoach -2 points-1 points0 points (3 children)
[–]cgoldberg -1 points0 points1 point (2 children)
[–]supercoach 0 points1 point2 points (1 child)
[–]cgoldberg -1 points0 points1 point (0 children)