Skip to content

Commit ebfa616

Browse files
committed
repr method now follows convention
1 parent 2b82e74 commit ebfa616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpython/cyvector.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ cdef class vector(object):
5858
return self
5959

6060
def __repr__(self):
61-
return '<{:.6g}, {:.6g}, {:.6g}>'.format(self._x, self._y, self._z)
61+
return 'vector({:.6g}, {:.6g}, {:.6g})'.format(self._x, self._y, self._z)
6262

6363
def __str__(self):
6464
return '<{:.6g}, {:.6g}, {:.6g}>'.format(self._x, self._y, self._z)

0 commit comments

Comments
 (0)