Thomas Wouters
3ccec68a05
Improve extended slicing support in builtin types and classes. Specifically:
...
- Specialcase extended slices that amount to a shallow copy the same way as
is done for simple slices, in the tuple, string and unicode case.
- Specialcase step-1 extended slices to optimize the common case for all
involved types.
- For lists, allow extended slice assignment of differing lengths as long
as the step is 1. (Previously, 'l[:2:1] = []' failed even though
'l[:2] = []' and 'l[:2:None] = []' do not.)
- Implement extended slicing for buffer, array, structseq, mmap and
UserString.UserString.
- Implement slice-object support (but not non-step-1 slice assignment) for
UserString.MutableString.
- Add tests for all new functionality.
2007-08-28 15:28:19 +00:00
..
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-08-20 06:49:18 +00:00
2006-08-13 18:12:26 +00:00
2006-01-03 06:48:38 +00:00
2006-02-27 17:20:04 +00:00
2007-07-21 06:55:02 +00:00
2007-08-17 16:41:28 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2006-02-16 19:21:53 +00:00
2007-07-21 06:55:02 +00:00
2007-04-03 04:35:59 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-08-27 18:42:23 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-08-09 21:47:11 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2004-07-10 19:30:39 +00:00
2006-09-23 04:11:38 +00:00
2007-08-28 15:28:19 +00:00
2006-10-19 11:00:37 +00:00
2007-05-09 18:10:47 +00:00
2006-02-15 17:27:45 +00:00
2007-07-21 06:55:02 +00:00
2006-01-19 06:09:39 +00:00
2004-07-18 06:16:08 +00:00
2006-01-19 06:09:39 +00:00
2006-01-19 06:09:39 +00:00
2006-07-27 23:43:15 +00:00
2007-07-21 06:55:02 +00:00
2006-07-10 01:18:57 +00:00
2007-08-08 13:50:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2006-01-19 06:09:39 +00:00
2006-07-29 15:43:13 +00:00
2006-05-29 21:58:42 +00:00
2006-05-29 13:53:16 +00:00
2006-07-10 01:18:57 +00:00
2006-01-19 06:09:39 +00:00
2004-10-30 23:09:22 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-06-07 23:53:49 +00:00
2007-03-10 07:38:14 +00:00
2006-05-25 22:00:14 +00:00
2006-01-19 06:09:39 +00:00
2006-01-19 06:09:39 +00:00
2007-07-21 06:55:02 +00:00
2005-10-03 03:57:09 +00:00
2007-07-21 06:55:02 +00:00
2007-08-25 10:50:41 +00:00
2005-09-14 18:09:42 +00:00
2006-11-19 21:26:53 +00:00
2006-04-03 16:27:50 +00:00
2006-04-03 16:27:50 +00:00
2007-07-21 06:55:02 +00:00
2007-08-28 15:28:19 +00:00
2006-02-27 16:46:16 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-08-12 17:11:13 +00:00
2006-01-19 06:09:39 +00:00
2006-04-16 18:55:50 +00:00
2007-07-21 06:55:02 +00:00
2007-04-19 05:52:37 +00:00
2006-09-16 17:36:37 +00:00
2006-02-15 03:01:30 +00:00
2006-04-22 01:58:40 +00:00
2007-07-21 06:55:02 +00:00
2007-05-20 07:09:50 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2006-01-19 06:09:39 +00:00
2007-07-21 06:55:02 +00:00
2007-02-14 10:07:37 +00:00
2006-08-02 06:15:10 +00:00
2006-06-12 03:05:40 +00:00
2006-04-13 07:34:09 +00:00
2007-07-21 06:55:02 +00:00
2006-01-19 06:09:39 +00:00
2006-01-19 06:09:39 +00:00
2006-05-29 21:04:52 +00:00
2006-01-19 06:09:39 +00:00
2007-07-21 06:55:02 +00:00
2007-03-29 12:42:07 +00:00
2004-06-13 20:29:55 +00:00
2006-03-09 23:38:20 +00:00
2007-07-28 07:03:05 +00:00
2006-03-09 23:38:20 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00
2007-07-21 06:55:02 +00:00