How to use the execnet.gateway_base.opcode function in execnet

To help you get started, we’ve selected a few execnet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_str(self, s):
            self._write(opcode.PY3STRING)
            self._write_unicode_string(s)
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_long(self, l):
        self._save_integral(l, opcode.LONG, opcode.LONGLONG)
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_complex(self, cpx):
        self._write(opcode.COMPLEX)
        self._write(struct.pack(COMPLEX_FORMAT, cpx.real, cpx.imag))
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_Channel(self, channel):
        self._write(opcode.CHANNEL)
        self._write_int4(channel.id)
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_bool(self, boolean):
        if boolean:
            self._write(opcode.TRUE)
        else:
            self._write(opcode.FALSE)
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_frozenset(self, s):
        self._write_set(s, opcode.FROZENSET)
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_int(self, i):
        self._save_integral(i, opcode.INT, opcode.LONGINT)
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_set(self, s):
        self._write_set(s, opcode.SET)
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def save_float(self, flt):
        self._write(opcode.FLOAT)
        self._write(struct.pack(FLOAT_FORMAT, flt))
github pytest-dev / execnet / execnet / gateway_base.py View on Github external
def _write_setitem(self, key, value):
        self._save(key)
        self._save(value)
        self._write(opcode.SETITEM)