Jan-17-2019, 09:10 PM
i have a function that needs to test if a value given to it in an argument is a dictionary or not. doing
isinstance(thevalue,dict)
is not good enough when the value comes from os.environ. but i would want the test to be positive for os.environ and anything like it as well as any genuine dictionary. what kind of test would work?