Insert a new function into the chain at *index*.
(self, index, function, update=True)
| 685 | return self.functions[k] |
| 686 | |
| 687 | def insert(self, index, function, update=True): |
| 688 | """Insert a new function into the chain at *index*.""" |
| 689 | self._funcs.insert(index, function) |
| 690 | self._add_dep(function) |
| 691 | if update: |
| 692 | self._update() |
| 693 | |
| 694 | def remove(self, function, update=True): |
| 695 | """Remove a function from the chain.""" |