[Python-ideas] add an additional dataclasses.asdict option for non-dataclasses

Christopher Barker pythonchb at gmail.com
Fri May 10 21:46:11 EDT 2019


>
> > It would still require other types to add and maintain __mapping__
> dunders.


Sure — but that is inherent in this whole idea — nothing other than the
type object itself could possibly know how to dictify itself.

Though yeah, that’s the key question— how often is this useful???

-CHB
-- 
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190510/f1ddd52f/attachment-0001.html>


More information about the Python-ideas mailing list