##// END OF EJS Templates
[fix] do not call signature(obj) for non-callables. signature, will check and raise a exception where the message will contain obj.__repr__ and that can be very expensive on certain objects.
Zoltan Farkas -
Show More
@@ -416,6 +416,8 b' class Inspector(Colorable):'
416 416
417 417 If any exception is generated, None is returned instead and the
418 418 exception is suppressed."""
419 if not callable(obj):
420 return None
419 421 try:
420 422 return _render_signature(signature(obj), oname)
421 423 except:
General Comments 0
You need to be logged in to leave comments. Login now