(d, key)
| 49 | import org.python.core.PyDictionary # @UnresolvedImport @UnusedImport -- just to check if it could be valid |
| 50 | |
| 51 | def dict_contains(d, key): |
| 52 | return d.has_key(key) |
| 53 | except: |
| 54 | try: |
| 55 | # Py3k does not have has_key anymore, and older versions don't have __contains__ |