From 0b7bcfd6334ee02c65ea4e26ea9462e9773b521e Mon Sep 17 00:00:00 2001 From: elliottbinder Date: Wed, 11 Jul 2018 19:36:43 -0600 Subject: [PATCH] Update trilobytes.py --- netarch/trilobytes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netarch/trilobytes.py b/netarch/trilobytes.py index dd93d8d..b371f47 100644 --- a/netarch/trilobytes.py +++ b/netarch/trilobytes.py @@ -39,6 +39,12 @@ class TriloBytes: >>> bytes(tb) b'hiOPDROPD' + >>> tb = TriloBytes(b'00')^1 + >>> tb[0] + 1 + >>> bytes(TriloBytes(b'00')) + b'\x00' + """ def __init__(self, initializer=(), drop=b'?'):