Serhiy Storchaka added the comment:

Because reprs of Python implementations of collection use a bare __name__.

__qualname__ is used only in combination with __module__. Using a single 
__qualname__ can be confused: foo.bar looks as a name bar in the module foo. 
Whether in reprs and error messages either full qualified name is used 
("{cls.__module__}.{__qualname__}") or a bare __name__. If a displayed name 
contains a dot it is always a full qualified name.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue27541>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to