No subject

Ethan Furman ethan at stoneleaf.us
Wed Mar 23 14:26:46 EDT 2016


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~



More information about the Python-list mailing list