This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients barry, eric.snow, ncoghlan
Date 2013-06-19.14:03:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371650581.15.0.105009414635.issue18264@psf.upfronthosting.co.za>
In-reply-to
Content
It's for times like this that I wonder if a simple serialization protocol might be worth it--something separate from __str__() but much simpler than the pickle protocol.  __str__() could be the fallback.  In the end, though, I always conclude that it's not worth adding yet another optional protocol to objects.  Still, it would help in this case (at least for anything that knows to make use of the simple serialization protocol).

Alternately, would it make sense to add special handling of enums to the json module?  Do we already with pickle?
History
Date User Action Args
2013-06-19 14:03:01eric.snowsetrecipients: + eric.snow, barry, ncoghlan
2013-06-19 14:03:01eric.snowsetmessageid: <1371650581.15.0.105009414635.issue18264@psf.upfronthosting.co.za>
2013-06-19 14:03:01eric.snowlinkissue18264 messages
2013-06-19 14:03:01eric.snowcreate