A Wednesday 21 May 2008, Francesc Altet escrigué: > A Wednesday 21 May 2008, Glenn escrigué: [snip] > > Thank you for the suggestion, but this also seems clumsy, because > > my routine still needs to parts, one to replace the original > > values, and then a second to add the new values. Most often, I make > > an error in the first row or two, so the EArray has one incorrect > > row that I need to reassign, so it seems like a lot of extra code > > just to treat the first row or two as a special case. To me, it > > would be ideal if the indexing notation could be extended to allow > > res[length_of_growable_dimension] = new_data to be equivalent to > > res.append(new_data). That is, if you index one beyond the end of > > the growable dimension, it automatically creates a new row. > > Nice suggestion. Added a ticket so as to not forget it: > > http://www.pytables.org/trac/ticket/170
Well, fortunately enough (because, provided its simplicity, I was going to implement that functionality pretty soon), Ivan has realised very valid reasons for not adding this. For more info, read his note in the ticket. Cheers, -- Francesc Altet Freelance developer Tel +34-964-282-249 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users