April 10, 2006; last modified March 12, 2009
Copyright © 2006, 2009 by Allan M. Stavely. All rights reserved.
Table of Contents
This document presents code in the Python language to implement named objects. Such an object will have a name that identifies it uniquely within a given name space, like a primary key in a database relation. I expect that the names will usually be strings, but the only requirement is that a name must be usable as a key in a Python dictionary. This excludes only mutable types such as lists and other dictionaries.
The fundamental operations on such objects will be:
to create an object with a given name
to find the object with a given name, if there is one