14
14
# You should have received a copy of the GNU General Public License
15
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
18
"""This module provides an IdentityMap."""
26
27
class IdentityMap(object):
27
28
"""An in memory map from object id to instance.
29
30
An IdentityMap maps from keys to single instances of objects in memory.
30
31
We have explicit calls on the map for the root of each inheritance tree
31
32
that is store in the map. Look for find_CLASS and add_CLASS methods.