Object help

Terry Reedy tjreedy at udel.edu
Sun Jan 11 19:44:09 EST 2009


killsto wrote:

> Just curious, is there another way? How would I do this in c++ which
> is listless IIRC.

If you do not have 0) built-in expandable arrays, as in Python, one can

1) program (or find) the equivalent of Python lists;
2) use linked-lists (as long as one does not need O(1) random access);
3) pick a maximum number of items, either for the app or for the run, 
and allocate space for that.

Python enthusiasts include those who see the virtue of option 0).




More information about the Python-list mailing list