MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/test/test_bytes.py:2210–2213  ·  view source on GitHub ↗
(me, *args, **kwargs)

Source from the content-addressed store, hash-verified

2208
2209 class B2(self.basetype):
2210 def __init__(me, *args, **kwargs):
2211 if self.basetype is not bytes:
2212 self.basetype.__init__(me, *args, **kwargs)
2213 me.foo = 'bar'
2214
2215 b = B2.fromhex('1a2B30')
2216 self.assertEqual(b, b'\x1a\x2b\x30')

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected