summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_buffer.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 79165 via svnmerge fromEzio Melotti2010-08-021-1/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79165 | florent.xicluna | 2010-03-21 03:14:24 +0200 (Sun, 21 Mar 2010) | 2 lines #7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper. ........
* Improve extended slicing support in builtin types and classes. Specifically:Thomas Wouters2007-08-281-0/+29
- 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.