replace the now missing PyNumber_Divide() by PyNumber_TrueDivide()
authorStefan Behnel <scoder@users.berlios.de>
Wed, 14 May 2008 22:09:18 +0000 (00:09 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 14 May 2008 22:09:18 +0000 (00:09 +0200)
Cython/Compiler/ModuleNode.py

index 3a25b73ed4c229f2e0f881a16d5614a937f72f47..095303a42b8562f331ae071aef574c61dddd383a 100644 (file)
@@ -419,6 +419,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
 
         code.putln("#if PY_MAJOR_VERSION >= 3")
         code.putln("  #define PyMethod_New(func, self, klass) (func!=NULL?(Py_INCREF(func),func):NULL)")
+        code.putln("  #define PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)")
         code.putln("#endif")
 
         code.putln("#ifndef __stdcall")