pypy /pypy/module/thread/error.py

Language Python Lines 10
MD5 Hash aa0ddba06b17e5829027064290a84867 Estimated Cost $148 (why?)
Repository https://bitbucket.org/dac_io/pypy View Raw File View Project SPDX
1
2
3
4
5
6
7
8
9
from pypy.interpreter.error import OperationError

class Cache:
    def __init__(self, space):
        self.w_error = space.new_exception_class("thread.error")

def wrap_thread_error(space, msg):
    w_error = space.fromcache(Cache).w_error
    return OperationError(w_error, space.wrap(msg))
Back to Top