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

Rhodri James rhodri at kynesim.co.uk
Thu May 9 10:55:47 EDT 2019


On 09/05/2019 14:42, Ricky Teachey wrote:
> I do not have a list of obviously mapping-like things that eschew the
> mapping protocol, other than NT and dclses. It would be helpful to know if
> more of these exist. I'd be happy to try and look for them, but I don't
> really know how I'd do that.

The only thing I can think of is going through the standard library 
documentation (or the code if you prefer) and seeing what leaps out as 
dict-like but not actually a mapping.  That sounds like a lot of work to 
me :-(

-- 
Rhodri James *-* Kynesim Ltd


More information about the Python-ideas mailing list