arithmatic -> arithmetic
authorCraig Citro <craigcitro@gmail.com>
Wed, 10 Mar 2010 01:07:02 +0000 (17:07 -0800)
committerCraig Citro <craigcitro@gmail.com>
Wed, 10 Mar 2010 01:07:02 +0000 (17:07 -0800)
Cython/Compiler/Main.py
Cython/Compiler/Nodes.py
Cython/Compiler/PyrexTypes.py
Cython/Compiler/Symtab.py
Cython/Compiler/TypeInference.py
tests/run/type_inference.pyx

index ac64fbeca200c10066ac1f5839e90735f7908ee7..db6d194b90aecbb50f58280e047cc614ce1c961e 100644 (file)
@@ -88,7 +88,7 @@ class Context(object):
         from ParseTreeTransforms import AnalyseDeclarationsTransform, AnalyseExpressionsTransform
         from ParseTreeTransforms import CreateClosureClasses, MarkClosureVisitor, DecoratorTransform
         from ParseTreeTransforms import InterpretCompilerDirectives, TransformBuiltinMethods
-        from TypeInference import MarkAssignments, MarkOverflowingArithmatic
+        from TypeInference import MarkAssignments, MarkOverflowingArithmetic
         from ParseTreeTransforms import AlignFunctionDefinitions, GilCheck
         from AnalysedTreeTransforms import AutoTestDictTransform
         from AutoDocTransforms import EmbedSignature
@@ -135,7 +135,7 @@ class Context(object):
             EmbedSignature(self),
             EarlyReplaceBuiltinCalls(self),
             MarkAssignments(self),
-            MarkOverflowingArithmatic(self),
+            MarkOverflowingArithmetic(self),
             TransformBuiltinMethods(self),
             IntroduceBufferAuxiliaryVars(self),
             _check_c_declarations,
index de912990bdffad1af15bac8eb4b2b65a8bd5640c..61baf8ef78ad642e11df6d56827e75d200e8cc46 100644 (file)
@@ -3292,7 +3292,7 @@ class ParallelAssignmentNode(AssignmentNode):
 
 
 class InPlaceAssignmentNode(AssignmentNode):
-    #  An in place arithmatic operand:
+    #  An in place arithmetic operand:
     #
     #    a += b
     #    a -= b
index 2e6bdc05dd5bbb464219743f3bdd5940bde439d9..fbe62628c591cec806713a69e468e77958dc7e33 100755 (executable)
@@ -999,7 +999,7 @@ class CComplexType(CNumericType):
         env.use_utility_code(complex_real_imag_utility_code)
         for utility_code in (complex_type_utility_code,
                              complex_from_parts_utility_code,
-                             complex_arithmatic_utility_code):
+                             complex_arithmetic_utility_code):
             env.use_utility_code(
                 utility_code.specialize(
                     self, 
@@ -1168,7 +1168,7 @@ static %(type)s __Pyx_PyComplex_As_%(type_name)s(PyObject* o) {
 }
 """)
 
-complex_arithmatic_utility_code = UtilityCode(
+complex_arithmetic_utility_code = UtilityCode(
 proto="""
 #if CYTHON_CCOMPLEX
     #define __Pyx_c_eq%(m)s(a, b)   ((a)==(b))
index 13395144e41bf4ea6f52ba400feeb55e9faf930e..c6107e392cf75f820824da3556c99df8b4467cf3 100644 (file)
@@ -119,7 +119,7 @@ class Entry(object):
     # inline_func_in_pxd boolean  Hacky special case for inline function in pxd file.
     #                             Ideally this should not be necesarry.
     # assignments      [ExprNode] List of expressions that get assigned to this entry.
-    # might_overflow   boolean    In an arithmatic expression that could cause
+    # might_overflow   boolean    In an arithmetic expression that could cause
     #                             overflow (used for type inference).
 
     inline_func_in_pxd = False
index 8c10bcd3dc906ff40ca7942645a315924bfacac3..794123df43e6fd3a547c77c78447e4cc1f7f9180 100644 (file)
@@ -112,7 +112,7 @@ class MarkAssignments(CythonTransform):
         self.visitchildren(node)
         return node
 
-class MarkOverflowingArithmatic(CythonTransform):
+class MarkOverflowingArithmetic(CythonTransform):
 
     # It may be possible to integrate this with the above for
     # performance improvements (though likely not worth it).
@@ -122,7 +122,7 @@ class MarkOverflowingArithmatic(CythonTransform):
     def __call__(self, root):
         self.env_stack = []
         self.env = root.scope
-        return super(MarkOverflowingArithmatic, self).__call__(root)        
+        return super(MarkOverflowingArithmetic, self).__call__(root)        
 
     def visit_safe_node(self, node):
         self.might_overflow, saved = False, self.might_overflow
index b61cf191ac724d130262efe779c158790067ff7b..7386a0bdb755cdea53b2da8e80b299b495405c25 100644 (file)
@@ -261,7 +261,7 @@ def safe_only():
     res = ~d
     assert typeof(d) == "long", typeof(d)
 
-    # potentially overflowing arithmatic
+    # potentially overflowing arithmetic
     e = 1
     e += 1
     assert typeof(e) == "Python object", typeof(e)