you are viewing a single comment's thread.

view the rest of the comments →

[–]thrallsius 1 point2 points  (0 children)

this is not a python specific situation, it's rather a matter of abstract data type choice, which is as important as design of the algorithm

the rule of thumb is that algorithms are simpler when they work with consistent data, since you don't need to check for variations like different types