Message307928
Currently class and some static methods of builtin types are classified as plain methods. The proposed patch adds types.ClassMethodDescriptorType for unbound class methods of builtin types and makes inspect.classify_class_attrs() correctly classifying static and class methods of builtin types. This results in changing the help() output.
All __new__ methods now are classified as static.
Examples of class methods are dict.fromkeys and int.from_bytes. |
|
Date |
User |
Action |
Args |
2017-12-09 22:54:10 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, yselivanov |
2017-12-09 22:54:10 | serhiy.storchaka | set | messageid: <1512860050.29.0.213398074469.issue32265@psf.upfronthosting.co.za> |
2017-12-09 22:54:10 | serhiy.storchaka | link | issue32265 messages |
2017-12-09 22:54:10 | serhiy.storchaka | create | |
|