In article <[EMAIL PROTECTED]>,
Mike Kent <[EMAIL PROTECTED]> wrote:
>
>I figure that if instead of returning the buffer from the context
>directly, I instead returned the buffer in a list, I could then change
>the buffer, put it in the returned list, then I'd have access to it
>back inside the co
I recently found myself needing to do this a lot:
lock a record in a file
read the record into a buffer
alter the buffer
write the buffer back to the record
unlock the record
I'd love to be able to create a context for this to use with the
'with' statement, something like:
from __future__ import