On 03/22/2016 08:17 PM, Nick Eubank wrote:
Relatedly, if this is a desired behavior, any advice one how best to work with dictionaries when one wants "True" and 1 to be different? I'm working on a function that accepts arguments that may be "True" or 1 (meaning very different things) and am seeking a pythonic solution...
If your keys are only numeric and True/False, you can check for and mutate True/False into strings "True"/"False"
-- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list