Re: Suggestion: PEP for popping slices from lists

2013-08-08 Thread Neatu Ovidiu
On Thursday, August 8, 2013 4:08:13 PM UTC+3, Nicholas wrote: > On Thu, Aug 8, 2013 at 12:50 PM, Neatu Ovidiu wrote: > > > > > On Thursday, August 8, 2013 2:44:05 PM UTC+3, Neatu Ovidiu wrote: > > > On Thursday, August 8, 2013 2:12:53 PM UTC+3, Nicholas wrote: &g

Re: Suggestion: PEP for popping slices from lists

2013-08-08 Thread Neatu Ovidiu
On Thursday, August 8, 2013 2:44:05 PM UTC+3, Neatu Ovidiu wrote: > On Thursday, August 8, 2013 2:12:53 PM UTC+3, Nicholas wrote: > > > On Thu, Aug 8, 2013 at 11:38 AM, Neatu Ovidiu wrote: > > > > > > > > > > > > > >

Re: Suggestion: PEP for popping slices from lists

2013-08-08 Thread Neatu Ovidiu
On Thursday, August 8, 2013 2:12:53 PM UTC+3, Nicholas wrote: > On Thu, Aug 8, 2013 at 11:38 AM, Neatu Ovidiu wrote: > > > > > > > > > But what's your use case? > > > > > > Does it occur often enough that you cannot affor

Re: Suggestion: PEP for popping slices from lists

2013-08-08 Thread Neatu Ovidiu
On Thursday, August 8, 2013 2:12:53 PM UTC+3, Nicholas wrote: > On Thu, Aug 8, 2013 at 11:38 AM, Neatu Ovidiu wrote: > > > > > > > > > But what's your use case? > > > > > > Does it occur often enough that you cannot affor

Re: Suggestion: PEP for popping slices from lists

2013-08-08 Thread Neatu Ovidiu
On Thursday, August 8, 2013 1:07:16 PM UTC+3, Peter Otten wrote: > Neatu Ovidiu Gabriel wrote: > > > > > The list.pop(index) returns the element represented by the index and also > > > reduces the list by removing that element. So it a short one liner for > >

Suggestion: PEP for popping slices from lists

2013-08-08 Thread Neatu Ovidiu Gabriel
The list.pop(index) returns the element represented by the index and also reduces the list by removing that element. So it a short one liner for doing both things. But when it comes for popping a slice of the list there is nothing similar for doing in that simple way. If you want to remove a sl