Feb-10-2018, 06:41 AM
(Feb-10-2018, 05:42 AM)bb8 Wrote: okay the whole idea of "overloading" the functions (is that a term in python?) is to be able to call the function with two different types, one is string, one is object.use two different names for the functions.
other option is to check what type is the supplied argument, but this may be considered as less pythonic