On 8/9/07, Joel Bender <[EMAIL PROTECTED]> wrote: > Jason Orendorff wrote: > > Hooks would help with that, or even eliminate the need altogether. > > IMHO, having a __bytes__ method would go a long way.
Well, it would go halfway--you also need to deserialize. __bytes__ alone would be useless. Of course Python does have a library for serializing and deserializing practically anything: pickle. What I proposed is a generalization of shelve. http://docs.python.org/lib/module-shelve.html -j _______________________________________________ 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
