Georg Brandl added the comment:

The rules are as they are mostly for backwards compatibility. But it is rarely 
a problem since there is only one object with a given name.

:class:`Cookie` within the docs for cookielib would not be able to link to 
Cookie.Cookie since it is not found in its scope. :class:`Cookie.Cookie` works, 
as does :class:`~Cookie.Cookie`.

When you use the "find-in-any-namespace" syntax, i.e. :class:`.Cookie` the type 
*will* be taken into account.

----------

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

Reply via email to