MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / isDefinedInProcess

Function isDefinedInProcess

pythonwhat/tasks.py:70–71  ·  view source on GitHub ↗
(name, process, shell)

Source from the content-addressed store, hash-verified

68# Is a variable is defined in the process?
69@process_task
70def isDefinedInProcess(name, process, shell):
71 return name in get_env(shell.user_ns)
72
73
74# Is a variable is of a certain class in the process?

Callers 3

check_objectFunction · 0.90
has_chosenFunction · 0.90
testMethod · 0.85

Calls 1

get_envFunction · 0.85

Tested by 1

testMethod · 0.68