How do I make IPython organize tab completion possibilities by class?
问题 When an object has hundreds of methods, tab completion is hard to use. More often than not the interesting methods are the ones defined or overridden by the inspected object's class and not its base classes. How can I get IPython to group its tab completion possibilities so the methods and properties defined in the inspected object's class come first, followed by those in base classes? It looks like the undocumented inspect.classify_class_attrs(cls) function along with inspect.getmro(cls)