class Cookie.SmartCookie([input])

This class derives from BaseCookie. It overrides value_decode() to be pickle.loads() if it is a valid pickle, and otherwise the value itself. It overrides value_encode() to be pickle.dumps() unless it is a string, in which case it returns the value itself.

Deprecated since version 2.3:

Deprecated since version 2.3: The same security warning from SerialCookie applies here.