False and 0 in the same dictionary

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Wed Nov 5 07:23:55 EST 2008


Prateek:
> How do I make a dictionary which has distinct key-value pairs for 0,
> False, 1 and True.

Why do you have to do that? What's the problem you have to solve?
Maybe (probably) there are better or more clean alternative solutions.

Bye,
bearophile



More information about the Python-list mailing list