On 12/10/2020 10:08 AM, Eric V. Smith wrote:

The dataclass metadata feature was added for this type of use, or at least experimenting with it:

...

I realize this isn't helpful in general, where a dataclass is a member of another object hierarchy. But it could be leveraged by a json.JSONEncoder (though I haven't tried it).

Eric
_______________________________________________
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/ZO2KE77AZUMDZXX6YAANEFFFY5K6WOYQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to