> Well, I didn't get a single answer to my garbage collection question, so
> maybe I'll have better luck with this.
I'll get back to you on that one.
> I watched the learning map on storable object and am trying it. I have a
> loop that stored thousands of object to the file system using
> independent_store from SED_STORABLE_FACILITIES, called as:
>
> store_handler.independent_store (a_history, writer, True).
>
> The loop works fine for over 17,000 objects and then throws an
> precondition exception of:
>
> a_writer_ready: <0000000000E51D24> Precondition violated.
>
> I looked at this precondition andit is just the result of a function,
> which I can't decipher further. Does anyone know what it means I'm doing
> wrong when this precondition gets triggered? (Also, it would help if
> there were comments in the code to explain non-obvious preconditions.)
Basically it requires you to set the associated `writer' to write mode, and if the
`writer' represents a FILE, that the file has `is_open_write' property.
Usually before calling independent_store, you just need to do:
writer.set_for_writing
store_handler.independent_store (a_history, writer, True)
Hope this helps,
Manu