Home | Trees | Indices | Help |
|
---|
|
object --+ | LookupBase --+ | StrictLookup
Strict variable lookup mechanism for expressions.
Referencing an undefined variable using this lookup style will immediately raise an UndefinedError:
>>> expr = Expression('nothing', lookup='strict') >>> try: ... expr.evaluate({}) ... except UndefinedError, e: ... print e.msg "nothing" not defined
The same happens when a non-existing attribute or item is accessed on an existing object:
>>> expr = Expression('something.nil', lookup='strict') >>> try: ... expr.evaluate({'something': dict()}) ... except UndefinedError, e: ... print e.msg {} has no member named "nil"
Instance Methods | |
Inherited from |
Class Methods | |||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jan 27 18:17:20 2013 | http://epydoc.sourceforge.net |