Fuzzyman wrote:I've had problems in code that needs to treat strings, lists and dictionaries differently (assigning values to a container where all three need different handling) and telling the difference but allowing duck typing is *problematic*.You need to rethink your design so that you don't have to make that kind of distinction.