Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/jimmysong/programmingbitcoin
/ __repr__
Method
__repr__
code-ch13/network.py:36–40 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
34
self.magic = NETWORK_MAGIC
35
36
def
__repr__(self):
37
return
'{}: {}'
.format(
38
self.command.decode(
'ascii'
),
39
self.payload.hex(),
40
)
41
42
@classmethod
43
def
parse(cls, s, testnet=False):
Callers
nothing calls this directly
Calls
1
hex
Method · 0.45
Tested by
no test coverage detected