Help Create Good Data Model

fumanchu fumanchu at
Sat Mar 11 21:27:39 CET 2006

There's nothing really *broken* jumping out at me. The last three
methods (set_value, set_data, and clear_data) probably don't need a
mutex, since they will each have their own frame, and the operations
are atomic. If that makes no sense, Google for "Python GIL" ;). If you
just returned a value from the dict instead of using copy, the same
might be said for the get methods--it depends on whether you're storing
mutable objects in or not.

When you're done with the exercise and want to persist those values
somewhere, give Dejavu a try:

Robert Brewer
System Architect
Amor Ministries
fumanchu at

More information about the Python-list mailing list