Skip to content

Commit fc50143

Browse files
authored
Merge pull request #231 from aherrera1721/master
vector.__repr__ method now follows convention
2 parents 02ae301 + 2b82e74 commit fc50143

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ We are certain the list is incomplete; please let one of us know by opening an [
3333
+ [@0dminnimda](https://github.com/0dminnimda)
3434
+ Mike Miller ([@Axe319](https://github.com/axe319))
3535
+ Dan Miller ([@danx0r(https://github.com/danx0r))
36+
+ Alex Herrera ([@aherrera1721](https://github.com/aherrera1721))
3637

3738
## Full timeline of vpython development
3839

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)