Skip to content

Commit 55aab58

Browse files
authored
Merge pull request #232 from aherrera1721/master
cyvector.__repr__ method now follows convention
2 parents fc50143 + ebfa616 commit 55aab58

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)