title: Pickle both class variables and instance variables?
body: <p>The <a href="https://docs.python.org/2/library/pickle.html#what-can-be-pickled-and-unpickled" rel="noreferrer">pickle documentation</a> states that "when class instances are pickled, their class’s data are not pickled along with them. Only the instance data are pickled." Can anyone provide a recipe for including class variables as well as instance variables when pickling and unpickling?</p>