diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 85791809df3f97324a616f4a16de51fe330ea145..9956036366e3b6c6d5ced969edcaea50c2284e74 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -314,7 +314,7 @@ def _add_functionality(): # {{{ Context def context_repr(self): - return "<pyopencl.Context at 0x%x on %s>" % (self.obj_ptr, + return "<pyopencl.Context at 0x%x on %s>" % (self.int_ptr, ", ".join(repr(dev) for dev in self.devices)) def context_get_cl_version(self):