minor fixes
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 8 Oct 2008 06:38:32 +0000 (23:38 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 8 Oct 2008 06:38:32 +0000 (23:38 -0700)
Cython/Compiler/ExprNodes.py

index be4389eecab46bf3f024f33eee5201d8f6fd0bfe..978d9ef68e253923fba5e39ee238adb8c0ff90de 100644 (file)
@@ -2914,12 +2914,12 @@ class DictNode(ExprNode):
     
     def analyse_types(self, env):
         hold_errors()
+        self.type = dict_type
         for item in self.key_value_pairs:
             item.analyse_types(env)
         self.gil_check(env)
         self.obj_conversion_errors = held_errors()
         release_errors(ignore=True)
-        self.type = dict_type
         self.is_temp = 1
         
     def coerce_to(self, dst_type, env):