# HG changeset patch # User Paul Boddie # Date 1341183490 -7200 # Node ID f2ee197956f746a5b272c105a70f288a4d4796ee # Parent 72176cb0fe2482e5c02c92c724d9a3f25dc16788 Added minor documentation adjustments. diff -r 72176cb0fe24 -r f2ee197956f7 docs/concepts.txt --- a/docs/concepts.txt Sun Jul 01 23:52:59 2012 +0200 +++ b/docs/concepts.txt Mon Jul 02 00:58:10 2012 +0200 @@ -4,6 +4,7 @@ This document describes the underlying concepts employed in micropython. * Namespaces and attribute definition + * Attribute usage observations * Contexts and values * Tables, attributes and lookups * Objects and structures diff -r 72176cb0fe24 -r f2ee197956f7 micropython/__init__.py --- a/micropython/__init__.py Sun Jul 01 23:52:59 2012 +0200 +++ b/micropython/__init__.py Mon Jul 02 00:58:10 2012 +0200 @@ -534,8 +534,15 @@ self.name_references[from_name] = set() attrnames = ObjectSet([name]) + + # Note the assignment in association with the given attribute name. + if value is not None: attrnames[name].add(value) + + # Only a single set of usage is recorded here, but other situations + # may involve multiple usage observations. + usage = (attrnames,) self.name_references[from_name].add((None, None, usage))