Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
bpo-23741 did not change the behavior. The specified code was added specially to preserve the existing behavior. For other base types the condition was like `issubclass(typ, list) and r is list.__repr__`, but for dict it was just `issubclass(typ, dict)`. Actually the initial behavior was changed by bad3c88094f43f3bc7dcce22f47b8c2a8dddabcf (no issue number), with adding support of OrderedDict. ---------- nosy: +rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39994> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com