On 11/2/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > The general idea is good however a single magic method won't do any > good. The system must be able to handle cases where an object may > contain text strings and byte strings. Developers must be able to handle > the conversation on a per class base.
Container objects are recursively pickled. IOW, pickle doesn't know if a string is part of a user-defined class or some other container object (e.g., a dict, or a tuple). Pickling objects on a per class basis would require the pickle module to keep some sort of state mechanism to know when a class begin and end. IMHO, the complexity added wouldn't really worth it. -- Alexandre _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
