Another difficulty I just thought of:
    - a NT class- and a dcls, for that matter- could also be an iterable
two-tuples that would currently get dict-ified using iteration. So a
precedence rule- does iter() win? Or the asdict functions?- would be needed
for this, too.

The answer to that seems a lot less obvious to me (compared to the mapping
protocol), since iterating k-v pairs is relying on a bit of a side effect,
but that side effect has probably existed since the dict was created.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to