Skip to content

Commit

Permalink
Merge pull request #232 from aherrera1721/master
Browse files Browse the repository at this point in the history
cyvector.__repr__ method now follows convention
  • Loading branch information
mwcraig authored Jun 8, 2023
2 parents fc50143 + ebfa616 commit 55aab58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpython/cyvector.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ cdef class vector(object):
return self

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

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

0 comments on commit 55aab58

Please sign in to comment.