Tue, 24 Apr 2007 20:04:25 +0200, Francesc Altet kirjoitti: > El dt 24 de 04 del 2007 a les 11:39 -0400, en/na David Huard va > escriure: >> Hi, >> >> I manage a dynamic table where I need to flush the table each time a >> row is appended (because the table can be read at any time), and I >> spent a lot of time trying to understand why my code didn't work. It >> turns out that whenever table.flush() is called, a new instance of >> table.row must be created, or else you get some weird errors (not to >> mention difficult to track down...) I think the documentation should >> say something about this feature. Maybe better even would be to raise >> some kind of error whenever a flushed row instance gets appended. >> Right now, what happens is that n rows with zeros are appended, where >> n is the number of times append has been called. So basically, nrows >> grows as 0,1,3,6,10,15,... > > I don't quite understand what do you mean. Please, always try to add > code so that we can see better what you are trying to do.
Hi, I also have hit this problem, but forgot about it. I have filed a bug report with an example program: http://www.pytables.org/trac/ticket/65 -- Pauli Virtanen ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users