[Patches] [ python-Patches-400998 ] experimental support for extended slicing on lists

noreply@sourceforge.net noreply@sourceforge.net
Mon, 03 Jun 2002 14:00:32 -0700


Patches item #400998, was opened at 2000-07-27 17:27
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=400998&group_id=5470

Category: Core (C code)
Group: None
>Status: Open
>Resolution: Remind
Priority: 5
Submitted By: Michael Hudson (mwh)
Assigned to: Guido van Rossum (gvanrossum)
Summary: experimental support for extended slicing on lists

Initial Comment:
 

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-06-03 17:00

Message:
Logged In: YES 
user_id=6380

Michael, the tide has changed.  Would you be interested in
reviving this patch and finishing it?

It could possibly help to address bug 473985 and maybe also
459235.

If you have no time, let me know and I'll see if I can find
time myself.


----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2000-12-18 17:19

Message:
Rejected for lack of interest.

Sorry, Michael!

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2000-11-13 14:45

Message:
Is reviewing and applying this patch the best use of my time? I note that this is okay, but low priority -- I doubt that it will get used much. Plus, what about the array module, strings, UserList?

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2000-08-31 22:10

Message:
Too late for the release, sorry. And Tim hates negative strides.

We'll get back to this for 2.1.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-08-16 15:30

Message:
So, I missed my deadline by twenty five minutes.  Sorry :-)

This latest patch adds a fairly basic test suite, a stab at some docs, and jumps up and down on PySlice_GetIndices.

Also (wrt. stringobject.c & unicodeobject.c) it's amazing what you can break, isn't it?  Thank God for test suites...

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-08-16 15:30

Message:
So, I missed my deadline by twenty five minutes.  Sorry :-)

This latest patch adds a fairly basic test suite, a stab at some docs, and jumps up and down on PySlice_GetIndices.

Also (wrt. stringobject.c & unicodeobject.c) it's amazing what you can break, isn't it?  Thank God for test suites...

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-08-15 15:04

Message:
OK, I'll get to that soon (ie. <24hours, hopefully <4).
But bear in mind I'm now going to the pub...

I may need some advice for the docs...


----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2000-08-15 14:53

Message:
Note that without doc and test patches too, and Real Soon, I'll have to Postpone this.  Assigned to me to remind me of that.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-07-30 14:41

Message:
meep!  naughty Michael hadn't been running "make test" often enough.
this update fixes that.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-07-30 14:10

Message:
bugfixes (refounting in assignment, logic in deletion) & a few tweaks.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-07-29 06:36

Message:
updated patch to support slice assignements, deletions
(needs testing still)

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-07-28 02:47

Message:
negative indices!

for i in listvar[::-1]:
     pass

now iterates over the list backwards (rather than coredumping...)

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-07-27 17:39

Message:
c'mon michael!  at least get *some* of the boundary cases...

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2000-07-27 17:31

Message:
this 10 minute hack adds support for "extended slicing" to lists, by which I mean things like:

>>> range(100)[23:60:12]
[23, 35, 47, 59]

todo:
find out if this is the approved approach
add support for tuples
write docs, testsuite (make test passes as is, but should be extended).

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=400998&group_id=5470