Message110072
-1 on multi-popping. The semantics aren't obvious -- is the order the same as s[-n:] or the same as a [s.pop() for i in range(n)] ?
Also, this is an unnecessary extension of the list API, one that has not been previously requested, nor is the extension something that other languages find it necessary to implement. Besides, it already suffices to write:
result = s[-n:]; del s[-n:]
I recommend that this be rejected in favor of keeping the API relatively small and clean. |
|
Date |
User |
Action |
Args |
2010-07-12 06:53:17 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, eric.araujo, epsilon_da, jacobidiego |
2010-07-12 06:53:17 | rhettinger | set | messageid: <1278917597.77.0.273794683184.issue9218@psf.upfronthosting.co.za> |
2010-07-12 06:53:16 | rhettinger | link | issue9218 messages |
2010-07-12 06:53:15 | rhettinger | create | |
|