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

Function getClass

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

Source from the content-addressed store, hash-verified

215# Get a bytes or string representation of an object in the process
216@process_task
217def getClass(name, process, shell):
218 try:
219 obj = get_env(shell.user_ns)[name]
220 obj_type = type(obj)
221 return obj_type.__module__ + "." + obj_type.__name__
222 except:
223 return None
224
225
226@process_task

Callers 1

getRepresentationFunction · 0.85

Calls 1

get_envFunction · 0.85

Tested by

no test coverage detected