Show More
@@ -11,6 +11,14 b' To change the attributes displayed by tab-completing your object, define a' | |||
|
11 | 11 | ``__dir__(self)`` method for it. For more details, see the documentation of the |
|
12 | 12 | built-in `dir() function <http://docs.python.org/library/functions.html#dir>`_. |
|
13 | 13 | |
|
14 | You can also customise key completions for your objects, e.g. pressing tab after | |
|
15 | ``obj["a``. To do so, define a method ``_ipython_key_completions_()``, which | |
|
16 | returns a list of objects which are possible keys in a subscript expression | |
|
17 | ``obj[key]``. | |
|
18 | ||
|
19 | .. versionadded:: 5.0 | |
|
20 | Custom key completions | |
|
21 | ||
|
14 | 22 | Rich display |
|
15 | 23 | ============ |
|
16 | 24 |
General Comments 0
You need to be logged in to leave comments.
Login now