From ea3bb529b8edb816d6f5d3d779086678f1a9092d Mon Sep 17 00:00:00 2001 From: Alex Herrera Date: Wed, 7 Jun 2023 12:10:49 -0700 Subject: [PATCH 1/2] repr method now follows convention --- vpython/vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpython/vector.py b/vpython/vector.py index ab142cf5..7f6c4836 100644 --- a/vpython/vector.py +++ b/vpython/vector.py @@ -51,7 +51,7 @@ def __str__(self): return '<{:.6g}, {:.6g}, {:.6g}>'.format(self._x, self._y, self._z) 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 __add__(self, other): if type(other) is vector: From 2b82e74411b4eb0d39329c2b5541650a9d39eb0d Mon Sep 17 00:00:00 2001 From: Alex Herrera Date: Wed, 7 Jun 2023 12:11:12 -0700 Subject: [PATCH 2/2] updated additional contributors list --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index a9a72ecc..4d48aa06 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -33,6 +33,7 @@ We are certain the list is incomplete; please let one of us know by opening an [ + [@0dminnimda](https://github.com/0dminnimda) + Mike Miller ([@Axe319](https://github.com/axe319)) + Dan Miller ([@danx0r(https://github.com/danx0r)) ++ Alex Herrera ([@aherrera1721](https://github.com/aherrera1721)) ## Full timeline of vpython development