[ZODB-Dev] Storing persistent and non-persistent data together

Dieter Maurer dieter at handshake.de
Sun Dec 5 12:33:08 EST 2004


Eric Mangold wrote at 2004-12-4 23:59 -0600:
> ...
>I'm thinking about using my own _p_ attributes for non-persistent data.
>Then, I can re-set those _p_ attributes inside __setstate__. My testing
>indicates that this will work.
>
>Does anyone see any problems with creating custom _p_ attributes?

The ZODB documentation says that attributes with a "_p_" prefix
are reserved.

Future ZODB versions might use "_p_" variables that happen to have
the same name as those chosen by you. This might change their
behaviour (maybe drastically).

-- 
Dieter


More information about the ZODB-Dev mailing list