diff --git a/pyopencl/array.py b/pyopencl/array.py index f40cfbbcd65d27f776f1fd60e2c37d79d431f516..9ee94a15ea8b4ca3458ab5499f6ba4c6b04eef95 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -643,6 +643,9 @@ class Array(object): def __repr__(self): return repr(self.get()) + def safely_stringify_for_pudb(self): + return "cl.Array %s %s" % (self.dtype, self.shape) + def __hash__(self): raise TypeError("pyopencl arrays are not hashable.")