We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc50143 + ebfa616 commit 55aab58Copy full SHA for 55aab58
vpython/cyvector.pyx
@@ -58,7 +58,7 @@ cdef class vector(object):
58
return self
59
60
def __repr__(self):
61
- return '<{:.6g}, {:.6g}, {:.6g}>'.format(self._x, self._y, self._z)
+ return 'vector({:.6g}, {:.6g}, {:.6g})'.format(self._x, self._y, self._z)
62
63
def __str__(self):
64
return '<{:.6g}, {:.6g}, {:.6g}>'.format(self._x, self._y, self._z)
0 commit comments