From 8e16bd42cd46d05aa2a238538f9eed8a058d9cd7 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sun, 21 Jun 2015 19:48:39 -0500
Subject: [PATCH] Fix generation of CONSTANT_CLASSES

---
 pyopencl/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py
index 0d1cd69d..376ae9ec 100644
--- a/pyopencl/__init__.py
+++ b/pyopencl/__init__.py
@@ -51,7 +51,7 @@ import inspect as _inspect
 CONSTANT_CLASSES = [
         getattr(_cl, name) for name in dir(_cl)
         if _inspect.isclass(getattr(_cl, name))
-        and name[0].islower()]
+        and name[0].islower() and name not in ["zip", "map", "range"]]
 
 
 class CompilerWarning(UserWarning):
-- 
GitLab