projects
/
linpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b595ada
)
Make coordinates mandatory in Point constructor
author
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Fri, 11 Jul 2014 15:10:49 +0000
(17:10 +0200)
committer
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Fri, 11 Jul 2014 15:10:49 +0000
(17:10 +0200)
pypol/coordinates.py
patch
|
blob
|
history
diff --git
a/pypol/coordinates.py
b/pypol/coordinates.py
index
7923648
..
f76b30a
100644
(file)
--- 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)