MCPcopy Create free account
hub / github.com/datacamp/pythonwhat / isDefinedCollInProcess

Function isDefinedCollInProcess

pythonwhat/tasks.py:88–89  ·  view source on GitHub ↗
(name, key, process, shell)

Source from the content-addressed store, hash-verified

86# Is a key defined in a collection in the process?
87@process_task
88def isDefinedCollInProcess(name, key, process, shell):
89 return key in get_env(shell.user_ns)[name]
90
91
92# Get the signature of a function inside the process

Callers 2

check_keysFunction · 0.90
testMethod · 0.85

Calls 1

get_envFunction · 0.85

Tested by 1

testMethod · 0.68