Represents a MNEM (Mnemonic) as bytes. Created on May 26, 2011
@author: paulross
A tuple of the ordinal values of whitespace characters
A tuple of the ordinal values of characters that can be replaced with PAD_CHAR
Standard LIS mnemonic length
Represents a four byte mnemonic where tailing nulls and spaces are not considered significant. This preserves original length but replaces trailing and whitespace characters with the PAD_CHAR.
m must be a bytes object or an ‘ascii’ str that can be converted to a bytes object.
If len_mnem is positive then m is truncated or padded as necessary to achieve that length.
If len_mnem is zero then all of m is considered significant, no padding is performed.
If len_mnem is less than zero then all characters of m are considered significant and padding up to -1*len_mnem characters of m is performed if m smaller than that.
Constructor that prunes trailing nulls and spaces.
The raw bytes of the mnemonic.
String representation.
Returns a ‘pretty’ ascii string. If strip then trailing padding is removed.
repr() representation.
Hashing, this makes bytes() and Mnem() objects interchangeable.
list of weak references to the object (if defined)
True if self == other False otherwise. If other is not a Mnem it is coerced into one before the comparison is made..
True if self != other False otherwise. If other is not a Mnem it is coerced into one before the comparison is made..
True if self < other False otherwise. If other is not a Mnem it is coerced into one before the comparison is made..
Byte by byte iteration.