Since there's no standard for this in json, deciding to serialize to str is
quite arbitrary.

I personally serialize UUIDs to binary data as it takes less space.

Some serialize it to hexadecimal.

Tbh, it sounds like a good idea but can have it's pitfalls.

On Wed, Jun 10, 2020, 4:43 PM J. Pic <j...@yourlabs.org> wrote:

> I understand, do you think the python standard library should provide a
> JSONEncoder and JSONDecoder that supports python standard library objects ?
>
> It would be optional to use, but if you use it then any object from the
> python standard library will just work.
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/C3IW6RMZYKI36XLUZCARL4QX3ENKNLDU/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/WJW7WNBE6BPNFPU7YRUCPPD2NXTWIM6C/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to