On Mon, Apr 6, 2020 at 9:17 PM Greg Ewing <[email protected]>
wrote:

>
>
> Something similar could be done in Python using type annotations.
>

sure can -- I've done this wrapping dataclasses -- each object in the
hierarchy knows how to serialize/deserialize itself from JSON -- so there
JSON can be totally standard.

-CHB




>
> --
> Greg
> _______________________________________________
> Python-ideas mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/[email protected]/message/C4DMLEWXAOQFDTKK7HXQSWQHW4MXDOEK/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/6YDV54WX27MMV7W4WFQ2VBFG7LR7SBMA/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to