Message290527
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()? |
|
Date |
User |
Action |
Args |
2017-03-26 13:36:02 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, benjamin.peterson, eric.araujo, r.david.murray, torsten, yselivanov |
2017-03-26 13:36:02 | serhiy.storchaka | set | messageid: <1490535362.01.0.186655133036.issue8488@psf.upfronthosting.co.za> |
2017-03-26 13:36:01 | serhiy.storchaka | link | issue8488 messages |
2017-03-26 13:36:01 | serhiy.storchaka | create | |
|