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

Function breakDownNewEnvInProcess

pythonwhat/tasks.py:203–210  ·  view source on GitHub ↗
(process, shell)

Source from the content-addressed store, hash-verified

201
202@process_task
203def breakDownNewEnvInProcess(process, shell):
204 try:
205 res = context_objs_exit(shell.user_ns["__exit_stack__"])
206 del shell.user_ns["__exit_stack__"]
207 del shell.user_ns["__env__"]
208 return res
209 except:
210 return False
211
212
213# Tasks that may need to serialize across processes ===========================

Callers 1

with_contextFunction · 0.90

Calls 1

context_objs_exitFunction · 0.85

Tested by

no test coverage detected