New submission from Brian Mearns :
Created an mmap for a file in update mode, seek to end of file, and
invoke write_byte. The file is not updated (as expected), but did not
get any error indicating the write was out of bounds, and when I invoke
tell(), it reports a position that is out of bounds
New submission from Brian Mearns :
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,
Brian Mearns added the comment:
Confirmed fixed in python 2.6.2
--
___
Python tracker
<http://bugs.python.org/issue5887>
___
___
Python-bugs-list mailin
Brian Mearns added the comment:
On Wed, May 6, 2009 at 8:51 AM, Hirokazu Yamamoto
wrote:
>
> Hirokazu Yamamoto added the comment:
>
> Thank you for response. I'll close this entry.
>
> --
> resolution: -> out of date
> status: open -> closed
>
New submission from Brian Mearns :
Open a file in "w+b" mode: if you write to the file, then read from it
without seeking backward, it reads past the EOF, apparently out into
memory, which could be a pretty bad security concern. Have not checked
if "w+" mode does the sam