Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:
-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. ---------- nosy: +rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9218> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com