summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pyx
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-12-17 15:40:10 -0500
committerTavian Barnes <tavianator@gmail.com>2011-12-17 15:40:10 -0500
commit65b1d1998f560c03c7cc204b0ee4f5c9c4f517e0 (patch)
tree2eea4da16c7a0d87da177f0c37fee3ad6394cf53 /libdimension-python/dimension.pyx
parentbc5457ce38af0543b971884cf11824c3fdc34248 (diff)
downloaddimension-65b1d1998f560c03c7cc204b0ee4f5c9c4f517e0.tar.xz
Allow one-element CSG operations.
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r--libdimension-python/dimension.pyx16
1 files changed, 8 insertions, 8 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index 1e79620..6a76974 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -1273,8 +1273,8 @@ cdef class Union(Object):
Additionally, Union() accepts any arguments that Object() accepts.
"""
- if len(objects) < 2:
- raise TypeError("expected a list of two or more Objects")
+ if len(objects) < 1:
+ raise TypeError("expected a list of one or more Objects")
cdef dmnsn_array *array = dmnsn_new_array(sizeof(dmnsn_object *))
cdef dmnsn_object *o
@@ -1302,8 +1302,8 @@ cdef class Intersection(Object):
Additionally, Intersection() accepts any arguments that Object() accepts.
"""
- if len(objects) < 2:
- raise TypeError("expected a list of two or more Objects")
+ if len(objects) < 1:
+ raise TypeError("expected a list of one or more Objects")
cdef dmnsn_object *o
@@ -1329,8 +1329,8 @@ cdef class Difference(Object):
Additionally, Difference() accepts any arguments that Object() accepts.
"""
- if len(objects) < 2:
- raise TypeError("expected a list of two or more Objects")
+ if len(objects) < 1:
+ raise TypeError("expected a list of one or more Objects")
cdef dmnsn_object *o
@@ -1356,8 +1356,8 @@ cdef class Merge(Object):
Additionally, Merge() accepts any arguments that Object() accepts.
"""
- if len(objects) < 2:
- raise TypeError("expected a list of two or more Objects")
+ if len(objects) < 1:
+ raise TypeError("expected a list of one or more Objects")
cdef dmnsn_object *o