From 3adf4e2d344cc49ca9c71e3a887f2e9efc00866f Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 27 May 2014 18:46:07 -0500
Subject: [PATCH] Fix PyPy object dtype comment

---
 pyopencl/array.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyopencl/array.py b/pyopencl/array.py
index e8255393..1fde923f 100644
--- a/pyopencl/array.py
+++ b/pyopencl/array.py
@@ -46,9 +46,12 @@ def _get_common_dtype(obj1, obj2, queue):
     return _get_common_dtype_base(obj1, obj2,
             has_double_support(queue.device))
 
-# PyPy does not and is not planning to support object dtype.
+# Work around PyPy not currently supporting the object dtype.
+# (Yes, it doesn't even support checking!)
+# (as of May 27, 2014 on PyPy 2.3)
 try:
     np.dtype(object)
+
     def _dtype_is_object(t):
         return t == object
 except:
-- 
GitLab