Skip to content

Commit ea3bb52

Browse files
committed
repr method now follows convention
1 parent 02ae301 commit ea3bb52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpython/vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __str__(self):
5151
return '<{:.6g}, {:.6g}, {:.6g}>'.format(self._x, self._y, self._z)
5252

5353
def __repr__(self):
54-
return '<{:.6g}, {:.6g}, {:.6g}>'.format(self._x, self._y, self._z)
54+
return 'vector({:.6g}, {:.6g}, {:.6g})'.format(self._x, self._y, self._z)
5555

5656
def __add__(self, other):
5757
if type(other) is vector:

0 commit comments

Comments
 (0)