MCPcopy Create free account
hub / github.com/PRIME-RL/PRIME / __init__

Method __init__

eval/utils/python_interpreter.py:80–83  ·  view source on GitHub ↗
(self, timeout=5, tmp_file="cache/tmp")

Source from the content-addressed store, hash-verified

78import os
79class PythonREPL():
80 def __init__(self, timeout=5, tmp_file="cache/tmp"):
81 self.timeout = timeout
82 self.tmp_file = tmp_file
83 os.system(f"touch {self.tmp_file}.py" )
84
85 @contextmanager
86 def time_limit(self, seconds):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected