Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
One way you can avoid distributing the icons in their original form is to convert them to a convenient binary format. Object persistence, sometimes called serialization, is a common programming need. Serializing takes an object and converts it into binary (or possibly text) data for storing in a file or database. This representation can be turned back into an object again later.
Python persistence with picklePython provides standard-library support for object persistence in the form of the pickle and cPickle modules. Both modules have the same interface. Under cPython, cPickle is a C extension that’s faster than pickle (a pure Python module). cPickle has been implemented for IronPython as a built-in module. As of IronPython 2, pickle and cPickle know how to serialize and deserialize .NET objects that support serialization. |