Python version support
Python SDK versions 5.0.0 and higher no longer support Python v2.7 and the Twisted and Tornado frameworks. If you require support for any of these, use SDK version 4.8.1.
Note that PubNub will stop supporting versions of Python lower than 3.7 by the end of 2021.
Python SDK has three types of Reconnection Policies when there is a network or internet issue.
PNReconnectionPolicy.NONE- indicates that
NOaction will taken when there is a network or internet issue.
PNReconnectionPolicy.LINEAR- SDK will try to reconnect each 3 seconds.
PNReconnectionPolicy.EXPONENTIAL- SDK uses the Exponential Backoff algorithm to reconnect when there is a network or internet issue. SDK uses
MINEXPONENTIALBACKOFF= 1 second and
MAXEXPONENTIALBACKOFF= 32 seconds. See: https://en.wikipedia.org/wiki/Exponential_backoff for more details.