On Mon, Apr 6, 2020 at 9:17 PM Greg Ewing <greg.ew...@canterbury.ac.nz>
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 -- 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/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 -- 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/6YDV54WX27MMV7W4WFQ2VBFG7LR7SBMA/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to