MCPcopy Index your code
hub / github.com/python/cpython / octetstring

Class octetstring

Lib/test/test_descr.py:3733–3737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3731 import binascii
3732
3733 class octetstring(str):
3734 def __str__(self):
3735 return binascii.b2a_hex(self.encode('ascii')).decode("ascii")
3736 def __repr__(self):
3737 return self + " repr"
3738
3739 o = octetstring('A')
3740 self.assertEqual(type(o), octetstring)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…