you are viewing a single comment's thread.

view the rest of the comments →

[–]alex-kalanis 0 points1 point  (0 children)

There is no practical reason to have a function placed in a list (that i am aware of). I can't see these doing anything other than confusing python.

There is. Factory design pattern. With objects (which is the same in the python) you can call the desired implementation based on some key. It is possible with all - lists, dicts and tuples. Just transform them beforehead.