WISP ERT (Server)  1.0.0
The WISP Extended Runtime (Server side)
wtp.util Namespace Reference

Classes

class  ChecksumStream
 Byte data stream with checksum functionality. More...
 
class  CyclicInt
 Cyclic integer type. More...
 
class  CyclicRange
 Cyclic range type. More...
 
class  DataStreamMixin
 Byte stream mix-in for reading and writing Python values. More...
 
class  EventTarget
 Event target mix-in class. More...
 

Functions

def xor_checksum (buf)
 Xor checksum function. More...
 
def _check_radix (x, y)
 Check the radix of two cyclic integers or ranges. More...
 
def force_print_exc (func)
 Force printing traceback when exception is thrown. More...
 

Function Documentation

◆ _check_radix()

def wtp.util._check_radix (   x,
  y 
)
private

Check the radix of two cyclic integers or ranges.

Parameters
xCyclic integer or range.
yCyclic integer or range.
Exceptions
ValueErrorif radix of x and y mismatch.

◆ force_print_exc()

def wtp.util.force_print_exc (   func)

Force printing traceback when exception is thrown.

(Used for debugging code inside Twisted deferred object)

Parameters
funcFunction to wrap.
Returns
Wrapper function.

◆ xor_checksum()

def wtp.util.xor_checksum (   buf)

Xor checksum function.

Parameters
bufBuffer to calculate checksum.