[New-bugs-announce] [issue32265] Correctly classify builtin static and class methods
Serhiy Storchaka
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)
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 <report at bugs.python.org>
<https://bugs.python.org/issue32265>
_______________________________________
More information about the New-bugs-announce
mailing list