(Jan-24-2019, 07:01 PM)Skaperen Wrote: in a function being passed an argument, it might be a single data type or it might be a container of some type. i need to do different callbacks depending on that.
in addition to ichabood's suggestion, I would recommend to look at @functools.singledispatch
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs