mirror of https://github.com/dirtbags/netarch.git
Update trilobytes.py
This commit is contained in:
parent
94ef0aba57
commit
0b7bcfd633
|
@ -39,6 +39,12 @@ class TriloBytes:
|
||||||
>>> bytes(tb)
|
>>> bytes(tb)
|
||||||
b'hiOPDROPD'
|
b'hiOPDROPD'
|
||||||
|
|
||||||
|
>>> tb = TriloBytes(b'00')^1
|
||||||
|
>>> tb[0]
|
||||||
|
1
|
||||||
|
>>> bytes(TriloBytes(b'00'))
|
||||||
|
b'\x00'
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, initializer=(), drop=b'?'):
|
def __init__(self, initializer=(), drop=b'?'):
|
||||||
|
|
Loading…
Reference in New Issue