Python Help ...

Michael Hipp Michael
Thu Mar 29 06:59:33 PDT 2007


Ben Duncan wrote:
> What I am trying to do is to create something that, at best
> description, resembles a "spreadsheet" type memory array, where
> a character occupies one cell. It also needs to be n-dimensional,
> much like a spreadsheet can have multiple pages and I need to
> initialize it first to spaces, or some fill characters. It needs
> to be total modifiable with placement of character or strings.
> 
> So far, there is really nothing in Python, that I can see that is
> up to the task, so I am working on a C module called chararray to
> do the job.

Python lists will do exactly that.

If you want it more "tight", you might want to use the 'array' module: 
http://docs.python.org/lib/module-array.html

Michael




More information about the Linux-users mailing list