I think this might be the best way to do it: my_dict.get(key, value_if_absent)
- [web2py] Python and Web2py dictionary behavior pbreit
- [web2py] Re: Python and Web2py dictionary behavior pbreit
- [web2py] Re: Python and Web2py dictionary behavior Anthony
I think this might be the best way to do it: my_dict.get(key, value_if_absent)