This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients epsilon_da, eric.araujo, jacobidiego, mark.dickinson, rhettinger
Date 2010-07-12.06:53:15
SpamBayes Score 0.074547626
Marked as misclassified No
Message-id <1278917597.77.0.273794683184.issue9218@psf.upfronthosting.co.za>
In-reply-to
Content
-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.
History
Date User Action Args
2010-07-12 06:53:17rhettingersetrecipients: + rhettinger, mark.dickinson, eric.araujo, epsilon_da, jacobidiego
2010-07-12 06:53:17rhettingersetmessageid: <1278917597.77.0.273794683184.issue9218@psf.upfronthosting.co.za>
2010-07-12 06:53:16rhettingerlinkissue9218 messages
2010-07-12 06:53:15rhettingercreate