changeset 56:cfd400983f45

Raise exceptions when target is not implemented.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Tue, 26 May 2009 17:14:51 +0200
parents de686d4704ee
children 996d9e5da978
files pysmcl/range_analysis.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/range_analysis.py	Tue May 26 17:12:07 2009 +0200
+++ b/pysmcl/range_analysis.py	Tue May 26 17:14:51 2009 +0200
@@ -189,10 +189,10 @@
         self.range = range
 
     def visit_Attribute(self, value, attr, ctx):
-        pass
+        raise Exception("NYI, attribute targets")
 
     def visit_Subscript(self, value, slice, ctx):
-        pass
+        raise Exception("NYI, subscript targets")
 
     def visit_Name(self, id):
         if id in self.env.keys():
@@ -201,10 +201,10 @@
             self.env[id.id] = self.range
 
     def visit_List(self, elts, ctx):
-        pass
+        raise Exception("NYI, list targets")
 
     def visit_Tuple(self, elts, ctx):
-        pass
+        raise Exception("NYI, tuple targets")
 
 def combine_env(env1, env2):
     """Combine the two environments env1 and env2."""