[issue20712] Make inspect agnostic about whether functions are implemented in Python or C

Larry Hastings report at bugs.python.org
Fri Feb 21 02:19:47 CET 2014


New submission from Larry Hastings:

Some of the methods on the inspect module behave differently depending on whether the callable passed in was implemented in C or in Python.  For example, ismethod() only returns True for bound methods implemented in Python.

I assert that the interface presented by inspect should be agnostic about the underlying implementation.  So for example ismethod() should return True for bound methods on builtin classes.

----------
assignee: larry
messages: 211783
nosy: larry, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: Make inspect agnostic about whether functions are implemented in Python or C
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20712>
_______________________________________


More information about the Python-bugs-list mailing list