From e1304e0500f5d44aa3c70ff4807471a8d30e5eae Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 6 Jul 2013 18:45:33 -0400
Subject: [PATCH] Some more doc fixes

---
 pyopencl/algorithm.py | 2 +-
 pyopencl/array.py     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyopencl/algorithm.py b/pyopencl/algorithm.py
index 91a80dff..60e87903 100644
--- a/pyopencl/algorithm.py
+++ b/pyopencl/algorithm.py
@@ -686,7 +686,7 @@ class ListOfListsBuilder:
                 }
                 \"\"\", arg_decls=[])
 
-        result = builder(queue, 2000)
+        result, event = builder(queue, 2000)
 
         inf = result["mylist"]
         assert inf.count == 3000
diff --git a/pyopencl/array.py b/pyopencl/array.py
index d3ef426f..a5051800 100644
--- a/pyopencl/array.py
+++ b/pyopencl/array.py
@@ -359,7 +359,7 @@ class Array(object):
     Boolean arrays are stored as :class:`numpy.int8` because ``bool``
     has an unspecified size in the OpenCL spec.
 
-    .. automethod :: __bool__
+    .. automethod :: __nonzero__
 
         Only works for device scalars. (i.e. "arrays" with ``shape == ()``.)
 
-- 
GitLab