classification
Title: mmap ehancement - resize with sequence notation
Type: enhancement Stage: test needed
Components: Library (Lib) Versions: Python 3.2
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: bmearns
Priority: normal Keywords:

Created on 2009-04-30 18:34 by bmearns, last changed 2010-07-10 06:36 by terry.reedy.

Messages (1)
msg86849 - (view) Author: Brian Mearns (bmearns) Date: 2009-04-30 18:34
I thought it would be nice if mmaps could generally look a little more
like sequences. Specifically, being able to resize+write using
square-bracket notation as with lists:

>>> x = [1,2,3,4,5]
>>> x
[1, 2, 3, 4, 5]
>>> x[2:2] = [6,7,8,9]
>>> x
[1, 2, 6, 7, 8, 9, 3, 4, 5]
>>>

If that could be done when x is an mmap.mmap, it'd be great.
alternatively, if mmap had an insert or an extend method that work like
with lists, the same behavior could be achieved without relying on mmap
specific method-names.
History
Date User Action Args
2010-07-10 06:36:32terry.reedysetstage: test needed
components: + Library (Lib)
versions: + Python 3.2, - Python 2.6
2009-04-30 18:34:09bmearnscreate