This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients benjamin.peterson, eric.araujo, r.david.murray, serhiy.storchaka, torsten, yselivanov
Date 2017-03-26.13:36:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490535362.01.0.186655133036.issue8488@psf.upfronthosting.co.za>
In-reply-to
Content
Since the descriptor is classified as a routine (inspect.isroutine() returns True because inspect.ismethoddescriptor() returns True), pydoc outputs it in the "Methods defined here" section and uses the docroutine(). But docroutine() requires the __name__ attribute for determining whether this is an original method or an alias. That descriptor doesn't have the __name__ attribute. Actually it is even not callable, so it is questionable whether it can be classified as a method.

I don't know on what level this should be fixed. docroutine()? classify_class_attrs()? isroutine()? ismethoddescriptor()?
History
Date User Action Args
2017-03-26 13:36:02serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson, eric.araujo, r.david.murray, torsten, yselivanov
2017-03-26 13:36:02serhiy.storchakasetmessageid: <1490535362.01.0.186655133036.issue8488@psf.upfronthosting.co.za>
2017-03-26 13:36:01serhiy.storchakalinkissue8488 messages
2017-03-26 13:36:01serhiy.storchakacreate