New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>: 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. ---------- components: Library (Lib) messages: 307928 nosy: serhiy.storchaka, yselivanov priority: normal severity: normal status: open title: Correctly classify builtin static and class methods type: enhancement versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32265> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com