Skip to content

Commit 232a01b

Browse files
authored
change __str__ output similar to Numpy (#521)
1 parent 8c20103 commit 232a01b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dpnp/dparray.pyx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,7 @@ cdef class dparray:
193193

194194
"""
195195
196-
for i in range(self.size):
197-
print(self[i], end=' ')
198-
199-
return "<__str__ TODO>"
196+
return str(numpy.asarray(self))
200197
201198
# The definition order of attributes and methods are borrowed from the
202199
# order of documentation at the following NumPy document.

0 commit comments

Comments
 (0)