Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

This is not a bug. ``sys.maxsize`` is just an int instance, and it has no 
docstring itself. When you look up ``sys.maxsize.__doc__``, or call 
``help(sys.maxsize)``, the ordinary inheritance rules apply and you get the 
class docstring.

There is nothing magical about ``sys.maxsize``. You will get the same result 
for ``help(2147483647)`` or ``help(1234)`` or any other int. So you are getting 
the correct docstring, the one which belongs to the class.

I'm going to close this as "not a bug", but if you believe that you have a good 
reason to treat this as a bug, please reply. If your argument is convincing, we 
can re-open the ticket.

----------
nosy: +steven.daprano
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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

Reply via email to