From: Vivien Maisonneuve Date: Fri, 11 Jul 2014 15:10:49 +0000 (+0200) Subject: Make coordinates mandatory in Point constructor X-Git-Tag: 1.0~125 X-Git-Url: https://scm.cri.ensmp.fr/git/linpy.git/commitdiff_plain/aa599e7cf61fd5c6c5453ba13c3fbc2d178144de?ds=sidebyside Make coordinates mandatory in Point constructor --- diff --git a/pypol/coordinates.py b/pypol/coordinates.py index 7923648..f76b30a 100644 --- a/pypol/coordinates.py +++ b/pypol/coordinates.py @@ -74,7 +74,7 @@ class Point(Coordinates): This class represents points in space. """ - def __new__(cls, coordinates=None): + def __new__(cls, coordinates): if isinstance(coordinates, Mapping): coordinates = coordinates.items() self = object().__new__(cls)