[New-bugs-announce] [issue32265] Correctly classify builtin static and class methods
report at bugs.python.org
Sat Dec 9 17:54:10 EST 2017
New submission from Serhiy Storchaka <storchaka+cpython at 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)
nosy: serhiy.storchaka, yselivanov
title: Correctly classify builtin static and class methods
versions: Python 3.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce