Returns True if fn is a bound method, regardless of whether fn was implemented in Python or in C.
(fn)
| 282 | return _re_stripid.sub(r'\1', text) |
| 283 | |
| 284 | def _is_bound_method(fn): |
| 285 | """ |
| 286 | Returns True if fn is a bound method, regardless of whether |
| 287 | fn was implemented in Python or in C. |
| 288 | """ |
| 289 | if inspect.ismethod(fn): |
| 290 | return True |
| 291 | if inspect.isbuiltin(fn): |
| 292 | self = getattr(fn, '__self__', None) |
| 293 | return not (inspect.ismodule(self) or (self is None)) |
| 294 | return False |
| 295 | |
| 296 | |
| 297 | def allmethods(cl): |
no test coverage detected