Show More
@@ -6,7 +6,8 b' To remedy this, the following methods are added to :class:`BaseFormatter`:' | |||||
6 |
|
6 | |||
7 | - ``lookup(instance)`` - return appropriate callback or a given object |
|
7 | - ``lookup(instance)`` - return appropriate callback or a given object | |
8 | - ``lookup_by_type(type_or_str)`` - return appropriate callback for a given type or ``'mod.name'`` type string |
|
8 | - ``lookup_by_type(type_or_str)`` - return appropriate callback for a given type or ``'mod.name'`` type string | |
9 |
- ``pop(type_or_str)`` - remove a |
|
9 | - ``pop(type_or_str)`` - remove a type (by type or string). | |
|
10 | Pass a second argument to avoid KeyError (like dict). | |||
10 |
|
11 | |||
11 | All of the above methods raise a KeyError if no match is found. |
|
12 | All of the above methods raise a KeyError if no match is found. | |
12 |
|
13 |
General Comments 0
You need to be logged in to leave comments.
Login now