python - unpickling HasTraits object: how to prevent assignment of certain traits -
i have hastraits object written , read disk using cpickle. object has trait computationally expensive assign. traits documentation , understand of traits being re-asigned when object read disk.
i prevent expensive trait being re-assigned when object read disk. possible?
make trait transient described here: http://docs.enthought.com/traits/traits_user_manual/advanced.html#persistence (btw, note newer version of docs linked to, though section in both versions.)
Comments
Post a Comment