March 2003
Intermediate to advanced
656 pages
39h 30m
English
connectionLost
p.connectionLost(reason)Called when the connection to the counterpart has been closed.
Argument reason is an object explaining
why the connection has been closed. reason
is not an instance of a Python exception, but has an attribute
reason
.value that
normally is such an instance. You can use
str(
reason
)
to get an explanation string, including a brief traceback, or
str(
reason
.value)
to get just the explanation string without any traceback.
Read now
Unlock full access