Comments by "Anony Mousse" (@anon_y_mousse) on "5 Useful Dunder Methods In Python" video.
-
Personally, I would require that the name representation was always lowercase anyway, even on initialization. As for fun with operators, I like to overload / on strings in languages that don't already do so to act as the split operation. Say you've got a string that's s = "foo,bar,baz,luhrmann"; then a = s / ','; would yield an array of strings containing ["foo", "bar", "baz", "luhrmann"].
5
-
2
-
1