Append a new function to the end of this chain.
(self, function, update=True)
| 668 | return {} |
| 669 | |
| 670 | def append(self, function, update=True): |
| 671 | """Append a new function to the end of this chain.""" |
| 672 | self._funcs.append(function) |
| 673 | self._add_dep(function) |
| 674 | if update: |
| 675 | self._update() |
| 676 | |
| 677 | def __setitem__(self, index, func): |
| 678 | self._remove_dep(self._funcs[index]) |