Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r59043:a86af9995ebd
Date: 2012-11-22 22:46 +0100
http://bitbucket.org/pypy/pypy/changeset/a86af9995ebd/

Log:    Rename nb_nonzero to nb_bool

diff --git a/pypy/module/cpyext/include/object.h 
b/pypy/module/cpyext/include/object.h
--- a/pypy/module/cpyext/include/object.h
+++ b/pypy/module/cpyext/include/object.h
@@ -205,7 +205,7 @@
        unaryfunc nb_negative;
        unaryfunc nb_positive;
        unaryfunc nb_absolute;
-       inquiry nb_nonzero;
+       inquiry nb_bool;
        unaryfunc nb_invert;
        binaryfunc nb_lshift;
        binaryfunc nb_rshift;
diff --git a/pypy/module/cpyext/typeobjectdefs.py 
b/pypy/module/cpyext/typeobjectdefs.py
--- a/pypy/module/cpyext/typeobjectdefs.py
+++ b/pypy/module/cpyext/typeobjectdefs.py
@@ -76,7 +76,7 @@
     ("nb_negative", unaryfunc),
     ("nb_positive", unaryfunc),
     ("nb_absolute", unaryfunc),
-    ("nb_nonzero", inquiry),
+    ("nb_bool", inquiry),
     ("nb_invert", unaryfunc),
     ("nb_lshift", binaryfunc),
     ("nb_rshift", binaryfunc),
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to