micropython

Changeset

689:23a668a62042
2013-10-09 Paul Boddie raw files shortlog changelog graph Added a reminder to introduce a proper declaration/definition counter. syspython-as-target
micropython/data.py (file)
     1.1 --- a/micropython/data.py	Wed Oct 09 01:40:16 2013 +0200
     1.2 +++ b/micropython/data.py	Wed Oct 09 01:42:20 2013 +0200
     1.3 @@ -1500,6 +1500,8 @@
     1.4          # NOTE: Handle AtLeast(n) situations, such as in cases where modules
     1.5          # NOTE: may mutate others (doctest "monkeypatching" linecache, for
     1.6          # NOTE: example).
     1.7 +        # NOTE: Should probably have a separate attribute tracking actual
     1.8 +        # NOTE: declarations rather than use the assignments attribute.
     1.9          assignments = parent[name].assignments
    1.10          if isinstance(assignments, AtLeast):
    1.11              assignments = assignments.count