Übersetzung der Fehlermeldungen
This commit is contained in:
@@ -7,10 +7,10 @@ class Vector(object):
|
|||||||
self.dimension = len(coordinates)
|
self.dimension = len(coordinates)
|
||||||
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise ValueError('The coordinates must be nonempty')
|
raise ValueError('Die Koordinaten dürfen nicht leer sein')
|
||||||
|
|
||||||
except TypeError:
|
except TypeError:
|
||||||
raise TypeError('The coordinates must be an iterable')
|
raise TypeError('Die Koordinaten müssen iterierbar sein')
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user