easy question on input files in Python
sholden at holdenweb.com
Mon Dec 11 09:39:04 EST 2000
<jerry_spicklemire at my-deja.com> wrote in message
news:90ite3$2j0$1 at nnrp1.deja.com...
> Alex Martelli wrote:
> > What Ian wants is a 'overwritable buffer', so the _same_
> > memory area is reused at each read. But Python file
> > objects don't support that. Nor I believe do array
> > objects (their fromFile method appends to the array,
> > does not overwrite it). I think it need to be done as a
> > C extension (maybe Numeric already offers it...?).
> Good point! Object arrays, not limited to numeric objects,
> are one of the coolest features of Numeric.
> I've no clue about over-writable-ness though.
> Thanks for the reply!
> Jerry S.
> Sent via Deja.com http://www.deja.com/
> Before you buy.
The augmented assignment operations can change objects in place, but of
course they are written in C as a part of the implementation :-(
Looks like this problem might need an extension module in C?
More information about the Python-list