Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105566 > unrolled thread
| Started by | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| First post | 2016-03-23 11:26 -0700 |
| Last post | 2016-03-23 11:26 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Ethan Furman <ethan@stoneleaf.us> - 2016-03-23 11:26 -0700
| From | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| Date | 2016-03-23 11:26 -0700 |
| Subject | Re: |
| Message-ID | <mailman.65.1458757580.2244.python-list@python.org> |
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~
Back to top | Article view | comp.lang.python
csiph-web