(fn)
| 1198 | return pop |
| 1199 | |
| 1200 | def clear(fn): |
| 1201 | def clear(self, index=-1): |
| 1202 | for item in self: |
| 1203 | __del(self, item, None, index) |
| 1204 | fn(self) |
| 1205 | |
| 1206 | _tidy(clear) |
| 1207 | return clear |
| 1208 | |
| 1209 | # __imul__ : not wrapping this. all members of the collection are already |
| 1210 | # present, so no need to fire appends... wrapping it with an explicit |