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,...

Thanks,

David
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to