1.1 --- a/TO_DO.txt Mon May 14 00:19:56 2012 +0200
1.2 +++ b/TO_DO.txt Thu May 17 20:29:45 2012 +0200
1.3 @@ -118,9 +118,15 @@
1.4 AttributeError
1.5 --------------
1.6
1.7 -Consider attribute usage observations being suspended inside blocks where AttributeError
1.8 -may be caught (although this doesn't anticipate such exceptions being caught outside a
1.9 -function altogether).
1.10 +Consider attribute usage observations being suspended or optional inside blocks where
1.11 +AttributeError may be caught (although this doesn't anticipate such exceptions being
1.12 +caught outside a function altogether). For example:
1.13 +
1.14 + y = a.y
1.15 + try:
1.16 + z = a.z # z is an optional attribute
1.17 + except AttributeError:
1.18 + z = None
1.19
1.20 Instantiation Deduction
1.21 -----------------------
1.22 @@ -197,14 +203,12 @@
1.23
1.24 Check name origin where multiple branches could yield multiple scope interpretations:
1.25
1.26 -----
1.27 -try:
1.28 - set # built-in name
1.29 -except NameError:
1.30 - from sets import Set as set # local definition of name
1.31 + try:
1.32 + set # built-in name
1.33 + except NameError:
1.34 + from sets import Set as set # local definition of name
1.35
1.36 -set # could be confused by the local definition at run-time
1.37 -----
1.38 + set # could be confused by the local definition at run-time
1.39
1.40 Object Coverage
1.41 ===============