MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / dict_contains

Function dict_contains

pydev_sitecustomize/sitecustomize.py:51–52  ·  view source on GitHub ↗
(d, key)

Source from the content-addressed store, hash-verified

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)
53except:
54 try:
55 # Py3k does not have has_key anymore, and older versions don't have __contains__

Callers 1

sitecustomize.pyFile · 0.85

Calls 1

has_keyMethod · 0.45

Tested by

no test coverage detected