Eric V. Smith <e...@trueblade.com> added the comment:
Good catch, @xtreak. I think something like the discussed (but not implemented) custom matching protocol would be required here. __match_args__ won't work, because it's a special attribute only checked on classes, not instances. Of course, I'm still not sure this is what the original poster is requesting! But assuming so, this would require a PEP, and should be discussed with the PEP 634 authors. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46692> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com