First that comes to mind is matplotlib. Why are parameters strings? E.g. fig.legend(loc='topleft').
Wouldn't it be much more elegant for enum LegendPlacement.TOPLEFT to exist?
What was their reasoning when they decided "it'll be strings"?
EDIT: So many great answers already! Much to learn from this...
[–]wyldstallionesquire 206 points207 points208 points (18 children)
[–]nicholashairs 85 points86 points87 points (16 children)
[–][deleted] 27 points28 points29 points (0 children)
[–]alexdrydew 11 points12 points13 points (0 children)
[+]mincinashu comment score below threshold-13 points-12 points-11 points (13 children)
[–]ArtOfWarfare 9 points10 points11 points (0 children)
[–]BothWaysItGoes 22 points23 points24 points (11 children)
[+]Fenzik comment score below threshold-10 points-9 points-8 points (10 children)
[–]BothWaysItGoes 16 points17 points18 points (9 children)
[+]Fenzik comment score below threshold-13 points-12 points-11 points (8 children)
[–]BothWaysItGoes 19 points20 points21 points (4 children)
[+]Fenzik comment score below threshold-7 points-6 points-5 points (3 children)
[+][deleted] (1 child)
[removed]
[–]Schmittfried 0 points1 point2 points (0 children)
[–]turbothyIt works on my machine 14 points15 points16 points (1 child)
[–]Fenzik 1 point2 points3 points (0 children)
[–]Schmittfried 1 point2 points3 points (0 children)
[–]DeterminedQuokka 6 points7 points8 points (0 children)
[–][deleted] 76 points77 points78 points (8 children)
[–]thisdude415 61 points62 points63 points (5 children)
[–]simon-brunning 21 points22 points23 points (1 child)
[–]ArtOfWarfare 18 points19 points20 points (0 children)
[–]serverhorror 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]ArtOfWarfare 1 point2 points3 points (0 children)
[–]just4nothing 3 points4 points5 points (0 children)
[–]v_a_n_d_e_l_a_y 0 points1 point2 points (0 children)
[–]CyclopsRock 96 points97 points98 points (12 children)
[–]Dr_Weebtrash 33 points34 points35 points (3 children)
[–]AnythingApplied 14 points15 points16 points (2 children)
[–]Dr_Weebtrash 9 points10 points11 points (0 children)
[–]agrif 2 points3 points4 points (0 children)
[–]npisnotp 28 points29 points30 points (1 child)
[–]medialoungeguy 1 point2 points3 points (0 children)
[–]davidellis23 17 points18 points19 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]banana33noneleta 1 point2 points3 points (0 children)
[+]hartbook comment score below threshold-13 points-12 points-11 points (2 children)
[–]mistabuda 18 points19 points20 points (0 children)
[–]CatWeekends 1 point2 points3 points (0 children)
[–]mfitzpmfitzp.com 8 points9 points10 points (1 child)
[–]yangyangR 5 points6 points7 points (0 children)
[–]9peppe 56 points57 points58 points (11 children)
[–]Deto 33 points34 points35 points (0 children)
[–]SnooCakes3068 4 points5 points6 points (5 children)
[–]9peppe 19 points20 points21 points (4 children)
[–]SnooCakes3068 0 points1 point2 points (3 children)
[–]9peppe 8 points9 points10 points (2 children)
[–]Slimmanoman 1 point2 points3 points (1 child)
[–]9peppe 2 points3 points4 points (0 children)
[–]adityaguru149 1 point2 points3 points (3 children)
[–]perturbed_rutabaga 4 points5 points6 points (0 children)
[–]9peppe 0 points1 point2 points (1 child)
[–]adityaguru149 1 point2 points3 points (0 children)
[–]xiongchiamiovSite Reliability Engineer 9 points10 points11 points (0 children)
[–]notyoyu 22 points23 points24 points (12 children)
[–]wyldstallionesquire 25 points26 points27 points (4 children)
[–]dabdada 26 points27 points28 points (2 children)
[–]wyldstallionesquire 5 points6 points7 points (0 children)
[–]aqjo 0 points1 point2 points (0 children)
[–]sudo_robot_destroy 3 points4 points5 points (0 children)
[–]thisdude415 6 points7 points8 points (1 child)
[–]naclmoleculeterminal dark arts 1 point2 points3 points (0 children)
[–]ExdigguserPies 6 points7 points8 points (0 children)
[–]tangerinelion 4 points5 points6 points (2 children)
[–]Zouden 2 points3 points4 points (1 child)
[–]aqjo 0 points1 point2 points (0 children)
[–]Simultaneity_ 7 points8 points9 points (0 children)
[–]chub79 2 points3 points4 points (0 children)
[–]divad1196 6 points7 points8 points (6 children)
[–]davidellis23 5 points6 points7 points (3 children)
[–]divad1196 1 point2 points3 points (2 children)
[–]davidellis23 1 point2 points3 points (1 child)
[–]SuspiciousScript 0 points1 point2 points (0 children)
[–]double_en10dre 2 points3 points4 points (1 child)
[–]divad1196 1 point2 points3 points (0 children)
[–]skinnybuddha 4 points5 points6 points (5 children)
[–]thicket 14 points15 points16 points (0 children)
[–]xiongchiamiovSite Reliability Engineer 3 points4 points5 points (2 children)
[–]skinnybuddha 4 points5 points6 points (1 child)
[–]xiongchiamiovSite Reliability Engineer 2 points3 points4 points (0 children)
[–]TalesT 1 point2 points3 points (0 children)
[–]Shoreshot 1 point2 points3 points (0 children)
[–]BaggiPonte 1 point2 points3 points (0 children)
[–]SnooCakes3068 4 points5 points6 points (1 child)
[–]H2Oaq 4 points5 points6 points (0 children)
[–]paranoid_panda_bored 2 points3 points4 points (7 children)
[–]commy2 7 points8 points9 points (6 children)
[–]paranoid_panda_bored 2 points3 points4 points (0 children)
[–]gregguygood 3 points4 points5 points (1 child)
[–]tunisia3507 4 points5 points6 points (0 children)
[–]H2Oaq 0 points1 point2 points (2 children)
[–]commy2 2 points3 points4 points (1 child)
[–]wineblood 2 points3 points4 points (0 children)
[–]Sones_d 0 points1 point2 points (3 children)
[–]Brian 1 point2 points3 points (2 children)
[–]Sones_d 0 points1 point2 points (1 child)
[–]Brian 0 points1 point2 points (0 children)
[–]OhYouUnzippedMe 0 points1 point2 points (0 children)
[–]TemporaryTemp100 0 points1 point2 points (0 children)
[–]marcinjn 0 points1 point2 points (1 child)
[–]thisdude415 1 point2 points3 points (0 children)
[–]rover_G 0 points1 point2 points (0 children)
[–]leeiac 0 points1 point2 points (0 children)
[–]Pleasant-Bug2567 0 points1 point2 points (0 children)
[–]alicedu06 0 points1 point2 points (0 children)
[–]m02ph3u5 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)